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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.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, 2 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_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 } 1103 }
1104 } 1104 }
1105 } 1105 }
1106 1106
1107 VisitBlocks(); 1107 VisitBlocks();
1108 1108
1109 __ brk(0); 1109 __ brk(0);
1110 ASSERT(assembler()->constant_pool_allowed()); 1110 ASSERT(assembler()->constant_pool_allowed());
1111 GenerateDeferredCode(); 1111 GenerateDeferredCode();
1112 1112
1113 if (is_optimizing()) { 1113 if (is_optimizing() && Compiler::allow_recompilation()) {
1114 // Leave enough space for patching in case of lazy deoptimization from 1114 // Leave enough space for patching in case of lazy deoptimization from
1115 // deferred code. 1115 // deferred code.
1116 for (intptr_t i = 0; 1116 for (intptr_t i = 0;
1117 i < CallPattern::kDeoptCallLengthInInstructions; 1117 i < CallPattern::kDeoptCallLengthInInstructions;
1118 ++i) { 1118 ++i) {
1119 __ orr(R0, ZR, Operand(R0)); // nop 1119 __ orr(R0, ZR, Operand(R0)); // nop
1120 } 1120 }
1121 lazy_deopt_pc_offset_ = assembler()->CodeSize(); 1121 lazy_deopt_pc_offset_ = assembler()->CodeSize();
1122 __ BranchPatchable(*StubCode::DeoptimizeLazy_entry()); 1122 __ BranchPatchable(*StubCode::DeoptimizeLazy_entry());
1123 } 1123 }
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1819 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1820 __ PopDouble(reg); 1820 __ PopDouble(reg);
1821 } 1821 }
1822 1822
1823 1823
1824 #undef __ 1824 #undef __
1825 1825
1826 } // namespace dart 1826 } // namespace dart
1827 1827
1828 #endif // defined TARGET_ARCH_ARM64 1828 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698