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

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

Issue 1011733005: CpuProfiler: extract DeoptInfo fill in code into a static function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/arm/lithium-codegen-arm.cc ('k') | src/deoptimizer.h » ('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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 __ Pop(x2, x1, x0); 1046 __ Pop(x2, x1, x0);
1047 } 1047 }
1048 1048
1049 if (info()->ShouldTrapOnDeopt()) { 1049 if (info()->ShouldTrapOnDeopt()) {
1050 Label dont_trap; 1050 Label dont_trap;
1051 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); 1051 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit);
1052 __ Debug("trap_on_deopt", __LINE__, BREAK); 1052 __ Debug("trap_on_deopt", __LINE__, BREAK);
1053 __ Bind(&dont_trap); 1053 __ Bind(&dont_trap);
1054 } 1054 }
1055 1055
1056 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), 1056 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
1057 instr->Mnemonic(), deopt_reason); 1057
1058 DCHECK(info()->IsStub() || frame_is_built_); 1058 DCHECK(info()->IsStub() || frame_is_built_);
1059 // Go through jump table if we need to build frame, or restore caller doubles. 1059 // Go through jump table if we need to build frame, or restore caller doubles.
1060 if (branch_type == always && 1060 if (branch_type == always &&
1061 frame_is_built_ && !info()->saves_caller_doubles()) { 1061 frame_is_built_ && !info()->saves_caller_doubles()) {
1062 DeoptComment(deopt_info); 1062 DeoptComment(deopt_info);
1063 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 1063 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
1064 } else { 1064 } else {
1065 Deoptimizer::JumpTableEntry* table_entry = 1065 Deoptimizer::JumpTableEntry* table_entry =
1066 new (zone()) Deoptimizer::JumpTableEntry( 1066 new (zone()) Deoptimizer::JumpTableEntry(
1067 entry, deopt_info, bailout_type, !frame_is_built_); 1067 entry, deopt_info, bailout_type, !frame_is_built_);
(...skipping 5034 matching lines...) Expand 10 before | Expand all | Expand 10 after
6102 Handle<ScopeInfo> scope_info = instr->scope_info(); 6102 Handle<ScopeInfo> scope_info = instr->scope_info();
6103 __ Push(scope_info); 6103 __ Push(scope_info);
6104 __ Push(ToRegister(instr->function())); 6104 __ Push(ToRegister(instr->function()));
6105 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6105 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6106 RecordSafepoint(Safepoint::kNoLazyDeopt); 6106 RecordSafepoint(Safepoint::kNoLazyDeopt);
6107 } 6107 }
6108 6108
6109 6109
6110 6110
6111 } } // namespace v8::internal 6111 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698