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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.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/disassembler_ia32.cc ('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"
11 #include "vm/compiler.h" 11 #include "vm/compiler.h"
12 #include "vm/cpu.h" 12 #include "vm/cpu.h"
13 #include "vm/dart_entry.h" 13 #include "vm/dart_entry.h"
14 #include "vm/deopt_instructions.h" 14 #include "vm/deopt_instructions.h"
15 #include "vm/il_printer.h" 15 #include "vm/il_printer.h"
16 #include "vm/instructions.h"
16 #include "vm/locations.h" 17 #include "vm/locations.h"
17 #include "vm/object_store.h" 18 #include "vm/object_store.h"
18 #include "vm/parser.h" 19 #include "vm/parser.h"
19 #include "vm/stack_frame.h" 20 #include "vm/stack_frame.h"
20 #include "vm/stub_code.h" 21 #include "vm/stub_code.h"
21 #include "vm/symbols.h" 22 #include "vm/symbols.h"
22 #include "vm/verified_memory.h" 23 #include "vm/verified_memory.h"
23 24
24 namespace dart { 25 namespace dart {
25 26
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 } 1103 }
1103 } 1104 }
1104 1105
1105 VisitBlocks(); 1106 VisitBlocks();
1106 1107
1107 __ bkpt(0); 1108 __ bkpt(0);
1108 ASSERT(assembler()->constant_pool_allowed()); 1109 ASSERT(assembler()->constant_pool_allowed());
1109 GenerateDeferredCode(); 1110 GenerateDeferredCode();
1110 1111
1111 if (is_optimizing()) { 1112 if (is_optimizing()) {
1113 // Leave enough space for patching in case of lazy deoptimization from
1114 // deferred code.
1115 for (intptr_t i = 0;
1116 i < CallPattern::DeoptCallPatternLengthInInstructions();
1117 ++i) {
1118 __ nop();
1119 }
1112 lazy_deopt_pc_offset_ = assembler()->CodeSize(); 1120 lazy_deopt_pc_offset_ = assembler()->CodeSize();
1113 __ Branch(*StubCode::DeoptimizeLazy_entry()); 1121 __ Branch(*StubCode::DeoptimizeLazy_entry());
1114 } 1122 }
1115 } 1123 }
1116 1124
1117 1125
1118 void FlowGraphCompiler::GenerateCall(intptr_t token_pos, 1126 void FlowGraphCompiler::GenerateCall(intptr_t token_pos,
1119 const StubEntry& stub_entry, 1127 const StubEntry& stub_entry,
1120 RawPcDescriptors::Kind kind, 1128 RawPcDescriptors::Kind kind,
1121 LocationSummary* locs) { 1129 LocationSummary* locs) {
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 DRegister dreg = EvenDRegisterOf(reg); 1878 DRegister dreg = EvenDRegisterOf(reg);
1871 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1879 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1872 } 1880 }
1873 1881
1874 1882
1875 #undef __ 1883 #undef __
1876 1884
1877 } // namespace dart 1885 } // namespace dart
1878 1886
1879 #endif // defined TARGET_ARCH_ARM 1887 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698