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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 409183003: In code comments print also deopt reason for deoptimization stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_arm64.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 return builder->CreateDeoptInfo(deopt_table); 156 return builder->CreateDeoptInfo(deopt_table);
157 } 157 }
158 158
159 159
160 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 160 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
161 intptr_t stub_ix) { 161 intptr_t stub_ix) {
162 // Calls do not need stubs, they share a deoptimization trampoline. 162 // Calls do not need stubs, they share a deoptimization trampoline.
163 ASSERT(reason() != ICData::kDeoptAtCall); 163 ASSERT(reason() != ICData::kDeoptAtCall);
164 Assembler* assem = compiler->assembler(); 164 Assembler* assem = compiler->assembler();
165 #define __ assem-> 165 #define __ assem->
166 __ Comment("Deopt stub for id %" Pd "", deopt_id()); 166 __ Comment("%s", Name());
167 __ Bind(entry_label()); 167 __ Bind(entry_label());
168 if (FLAG_trap_on_deoptimization) { 168 if (FLAG_trap_on_deoptimization) {
169 __ bkpt(0); 169 __ bkpt(0);
170 } 170 }
171 171
172 ASSERT(deopt_env() != NULL); 172 ASSERT(deopt_env() != NULL);
173 173
174 StubCode* stub_code = compiler->isolate()->stub_code(); 174 StubCode* stub_code = compiler->isolate()->stub_code();
175 __ BranchLink(&stub_code->DeoptimizeLabel()); 175 __ BranchLink(&stub_code->DeoptimizeLabel());
176 set_pc_offset(assem->CodeSize()); 176 set_pc_offset(assem->CodeSize());
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 DRegister dreg = EvenDRegisterOf(reg); 1772 DRegister dreg = EvenDRegisterOf(reg);
1773 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1773 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1774 } 1774 }
1775 1775
1776 1776
1777 #undef __ 1777 #undef __
1778 1778
1779 } // namespace dart 1779 } // namespace dart
1780 1780
1781 #endif // defined TARGET_ARCH_ARM 1781 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698