| 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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 6198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6209 | 6209 |
| 6210 | 6210 |
| 6211 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6211 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6212 Register offset_reg = locs()->in(0).reg(); | 6212 Register offset_reg = locs()->in(0).reg(); |
| 6213 Register target_address_reg = locs()->temp_slot(0)->reg(); | 6213 Register target_address_reg = locs()->temp_slot(0)->reg(); |
| 6214 | 6214 |
| 6215 // Load from [current frame pointer] + kPcMarkerSlotFromFp. | 6215 // Load from [current frame pointer] + kPcMarkerSlotFromFp. |
| 6216 __ movq(target_address_reg, Address(RBP, kPcMarkerSlotFromFp * kWordSize)); | 6216 __ movq(target_address_reg, Address(RBP, kPcMarkerSlotFromFp * kWordSize)); |
| 6217 | 6217 |
| 6218 // Calculate the final absolute address. | 6218 // Calculate the final absolute address. |
| 6219 __ SmiUntag(offset_reg); | 6219 if (offset()->definition()->representation() == kTagged) { |
| 6220 __ SmiUntag(offset_reg); |
| 6221 } |
| 6220 __ addq(target_address_reg, offset_reg); | 6222 __ addq(target_address_reg, offset_reg); |
| 6221 | 6223 |
| 6222 // Jump to the absolute address. | 6224 // Jump to the absolute address. |
| 6223 __ jmp(target_address_reg); | 6225 __ jmp(target_address_reg); |
| 6224 } | 6226 } |
| 6225 | 6227 |
| 6226 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, | 6228 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, |
| 6227 bool opt) const { | 6229 bool opt) const { |
| 6228 const intptr_t kNumInputs = 2; | 6230 const intptr_t kNumInputs = 2; |
| 6229 const intptr_t kNumTemps = 0; | 6231 const intptr_t kNumTemps = 0; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6410 __ movq(R10, Immediate(kInvalidObjectPointer)); | 6412 __ movq(R10, Immediate(kInvalidObjectPointer)); |
| 6411 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 6413 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
| 6412 #endif | 6414 #endif |
| 6413 } | 6415 } |
| 6414 | 6416 |
| 6415 } // namespace dart | 6417 } // namespace dart |
| 6416 | 6418 |
| 6417 #undef __ | 6419 #undef __ |
| 6418 | 6420 |
| 6419 #endif // defined TARGET_ARCH_X64 | 6421 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |