OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |