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

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

Issue 1367573002: Don't emit the lazy deopt sequence when we can't deopt. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 } 1121 }
1122 } 1122 }
1123 } 1123 }
1124 1124
1125 ASSERT(!block_order().is_empty()); 1125 ASSERT(!block_order().is_empty());
1126 VisitBlocks(); 1126 VisitBlocks();
1127 1127
1128 __ int3(); 1128 __ int3();
1129 GenerateDeferredCode(); 1129 GenerateDeferredCode();
1130 1130
1131 if (is_optimizing()) { 1131 if (is_optimizing() && Compiler::allow_recompilation()) {
1132 // Leave enough space for patching in case of lazy deoptimization from 1132 // Leave enough space for patching in case of lazy deoptimization from
1133 // deferred code. 1133 // deferred code.
1134 __ nop(CallPattern::pattern_length_in_bytes()); 1134 __ nop(CallPattern::pattern_length_in_bytes());
1135 lazy_deopt_pc_offset_ = assembler()->CodeSize(); 1135 lazy_deopt_pc_offset_ = assembler()->CodeSize();
1136 __ Jmp(*StubCode::DeoptimizeLazy_entry()); 1136 __ Jmp(*StubCode::DeoptimizeLazy_entry());
1137 } 1137 }
1138 } 1138 }
1139 1139
1140 1140
1141 void FlowGraphCompiler::GenerateCall(intptr_t token_pos, 1141 void FlowGraphCompiler::GenerateCall(intptr_t token_pos,
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 __ movups(reg, Address(ESP, 0)); 1837 __ movups(reg, Address(ESP, 0));
1838 __ addl(ESP, Immediate(kFpuRegisterSize)); 1838 __ addl(ESP, Immediate(kFpuRegisterSize));
1839 } 1839 }
1840 1840
1841 1841
1842 #undef __ 1842 #undef __
1843 1843
1844 } // namespace dart 1844 } // namespace dart
1845 1845
1846 #endif // defined TARGET_ARCH_IA32 1846 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698