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

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

Issue 1355953002: Fix lazy deoptimization from deferred code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: speed up ia32 disassembler Created 5 years, 3 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 | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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"
11 #include "vm/compiler.h" 11 #include "vm/compiler.h"
12 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
13 #include "vm/deopt_instructions.h" 13 #include "vm/deopt_instructions.h"
14 #include "vm/il_printer.h" 14 #include "vm/il_printer.h"
15 #include "vm/instructions.h"
15 #include "vm/locations.h" 16 #include "vm/locations.h"
16 #include "vm/object_store.h" 17 #include "vm/object_store.h"
17 #include "vm/parser.h" 18 #include "vm/parser.h"
18 #include "vm/stack_frame.h" 19 #include "vm/stack_frame.h"
19 #include "vm/stub_code.h" 20 #include "vm/stub_code.h"
20 #include "vm/symbols.h" 21 #include "vm/symbols.h"
21 22
22 namespace dart { 23 namespace dart {
23 24
24 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); 25 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization.");
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 } 1120 }
1120 } 1121 }
1121 } 1122 }
1122 1123
1123 VisitBlocks(); 1124 VisitBlocks();
1124 1125
1125 __ break_(0); 1126 __ break_(0);
1126 GenerateDeferredCode(); 1127 GenerateDeferredCode();
1127 1128
1128 if (is_optimizing()) { 1129 if (is_optimizing()) {
1130 // Leave enough space for patching in case of lazy deoptimization from
1131 // deferred code.
1132 for (intptr_t i = 0;
1133 i < CallPattern::kDeoptCallLengthInInstructions;
1134 ++i) {
1135 __ nop();
1136 }
1129 lazy_deopt_pc_offset_ = assembler()->CodeSize(); 1137 lazy_deopt_pc_offset_ = assembler()->CodeSize();
1130 __ Branch(*StubCode::DeoptimizeLazy_entry()); 1138 __ Branch(*StubCode::DeoptimizeLazy_entry());
1131 } 1139 }
1132 } 1140 }
1133 1141
1134 1142
1135 void FlowGraphCompiler::GenerateCall(intptr_t token_pos, 1143 void FlowGraphCompiler::GenerateCall(intptr_t token_pos,
1136 const StubEntry& stub_entry, 1144 const StubEntry& stub_entry,
1137 RawPcDescriptors::Kind kind, 1145 RawPcDescriptors::Kind kind,
1138 LocationSummary* locs) { 1146 LocationSummary* locs) {
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 __ AddImmediate(SP, kDoubleSize); 1841 __ AddImmediate(SP, kDoubleSize);
1834 } 1842 }
1835 1843
1836 1844
1837 #undef __ 1845 #undef __
1838 1846
1839 1847
1840 } // namespace dart 1848 } // namespace dart
1841 1849
1842 #endif // defined TARGET_ARCH_MIPS 1850 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698