Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 959203002: CpuProfiler: replace raw position with SourcePosition for DeoptReason (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for win32 Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 __ Pop(x2, x1, x0); 1051 __ Pop(x2, x1, x0);
1052 } 1052 }
1053 1053
1054 if (info()->ShouldTrapOnDeopt()) { 1054 if (info()->ShouldTrapOnDeopt()) {
1055 Label dont_trap; 1055 Label dont_trap;
1056 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); 1056 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit);
1057 __ Debug("trap_on_deopt", __LINE__, BREAK); 1057 __ Debug("trap_on_deopt", __LINE__, BREAK);
1058 __ Bind(&dont_trap); 1058 __ Bind(&dont_trap);
1059 } 1059 }
1060 1060
1061 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), 1061 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(),
1062 instr->Mnemonic(), deopt_reason); 1062 instr->Mnemonic(), deopt_reason);
1063 DCHECK(info()->IsStub() || frame_is_built_); 1063 DCHECK(info()->IsStub() || frame_is_built_);
1064 // Go through jump table if we need to build frame, or restore caller doubles. 1064 // Go through jump table if we need to build frame, or restore caller doubles.
1065 if (branch_type == always && 1065 if (branch_type == always &&
1066 frame_is_built_ && !info()->saves_caller_doubles()) { 1066 frame_is_built_ && !info()->saves_caller_doubles()) {
1067 DeoptComment(deopt_info); 1067 DeoptComment(deopt_info);
1068 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 1068 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
1069 } else { 1069 } else {
1070 Deoptimizer::JumpTableEntry* table_entry = 1070 Deoptimizer::JumpTableEntry* table_entry =
1071 new (zone()) Deoptimizer::JumpTableEntry( 1071 new (zone()) Deoptimizer::JumpTableEntry(
(...skipping 5035 matching lines...) Expand 10 before | Expand all | Expand 10 after
6107 Handle<ScopeInfo> scope_info = instr->scope_info(); 6107 Handle<ScopeInfo> scope_info = instr->scope_info();
6108 __ Push(scope_info); 6108 __ Push(scope_info);
6109 __ Push(ToRegister(instr->function())); 6109 __ Push(ToRegister(instr->function()));
6110 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6110 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6111 RecordSafepoint(Safepoint::kNoLazyDeopt); 6111 RecordSafepoint(Safepoint::kNoLazyDeopt);
6112 } 6112 }
6113 6113
6114 6114
6115 6115
6116 } } // namespace v8::internal 6116 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698