| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return builder->CreateDeoptInfo(deopt_table); | 150 return builder->CreateDeoptInfo(deopt_table); |
| 151 } | 151 } |
| 152 | 152 |
| 153 | 153 |
| 154 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 154 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
| 155 intptr_t stub_ix) { | 155 intptr_t stub_ix) { |
| 156 // Calls do not need stubs, they share a deoptimization trampoline. | 156 // Calls do not need stubs, they share a deoptimization trampoline. |
| 157 ASSERT(reason() != ICData::kDeoptAtCall); | 157 ASSERT(reason() != ICData::kDeoptAtCall); |
| 158 Assembler* assem = compiler->assembler(); | 158 Assembler* assem = compiler->assembler(); |
| 159 #define __ assem-> | 159 #define __ assem-> |
| 160 __ Comment("Deopt stub for id %" Pd "", deopt_id()); | 160 __ Comment("%s", Name()); |
| 161 __ Bind(entry_label()); | 161 __ Bind(entry_label()); |
| 162 if (FLAG_trap_on_deoptimization) { | 162 if (FLAG_trap_on_deoptimization) { |
| 163 __ int3(); | 163 __ int3(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 ASSERT(deopt_env() != NULL); | 166 ASSERT(deopt_env() != NULL); |
| 167 | 167 |
| 168 StubCode* stub_code = compiler->isolate()->stub_code(); | 168 StubCode* stub_code = compiler->isolate()->stub_code(); |
| 169 __ Call(&stub_code->DeoptimizeLabel(), PP); | 169 __ Call(&stub_code->DeoptimizeLabel(), PP); |
| 170 set_pc_offset(assem->CodeSize()); | 170 set_pc_offset(assem->CodeSize()); |
| (...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1726 __ movups(reg, Address(RSP, 0)); | 1726 __ movups(reg, Address(RSP, 0)); |
| 1727 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1727 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1728 } | 1728 } |
| 1729 | 1729 |
| 1730 | 1730 |
| 1731 #undef __ | 1731 #undef __ |
| 1732 | 1732 |
| 1733 } // namespace dart | 1733 } // namespace dart |
| 1734 | 1734 |
| 1735 #endif // defined TARGET_ARCH_X64 | 1735 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |