diff options
Diffstat (limited to 'deps/v8/src/codegen.cc')
-rw-r--r-- | deps/v8/src/codegen.cc | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/deps/v8/src/codegen.cc b/deps/v8/src/codegen.cc index bda697abaf..e954dd66c1 100644 --- a/deps/v8/src/codegen.cc +++ b/deps/v8/src/codegen.cc @@ -70,9 +70,10 @@ void CodeGenerator::ProcessDeferred() { DeferredCode* code = deferred_.RemoveLast(); ASSERT(masm_ == code->masm()); // Record position of deferred code stub. - masm_->RecordStatementPosition(code->statement_position()); + masm_->positions_recorder()->RecordStatementPosition( + code->statement_position()); if (code->position() != RelocInfo::kNoPosition) { - masm_->RecordPosition(code->position()); + masm_->positions_recorder()->RecordPosition(code->position()); } // Generate the code. Comment cmnt(masm_, code->comment()); @@ -402,10 +403,10 @@ bool CodeGenerator::RecordPositions(MacroAssembler* masm, int pos, bool right_here) { if (pos != RelocInfo::kNoPosition) { - masm->RecordStatementPosition(pos); - masm->RecordPosition(pos); + masm->positions_recorder()->RecordStatementPosition(pos); + masm->positions_recorder()->RecordPosition(pos); if (right_here) { - return masm->WriteRecordedPositions(); + return masm->positions_recorder()->WriteRecordedPositions(); } } return false; @@ -435,7 +436,7 @@ void CodeGenerator::CodeForDoWhileConditionPosition(DoWhileStatement* stmt) { void CodeGenerator::CodeForSourcePosition(int pos) { if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { - masm()->RecordPosition(pos); + masm()->positions_recorder()->RecordPosition(pos); } } @@ -481,8 +482,8 @@ int CEntryStub::MinorKey() { } -bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { - Object* cache = info()->load_stub_cache(); +// Implementation of CodeStub::GetCustomCache. +static bool GetCustomCacheHelper(Object* cache, Code** code_out) { if (cache->IsUndefined()) { return false; } else { @@ -492,9 +493,24 @@ bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { } +bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { + return GetCustomCacheHelper(info()->load_stub_cache(), code_out); +} + + void ApiGetterEntryStub::SetCustomCache(Code* value) { info()->set_load_stub_cache(value); } +bool ApiCallEntryStub::GetCustomCache(Code** code_out) { + return GetCustomCacheHelper(info()->call_stub_cache(), code_out); +} + + +void ApiCallEntryStub::SetCustomCache(Code* value) { + info()->set_call_stub_cache(value); +} + + } } // namespace v8::internal |