| 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 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3409 __ movsxd(out, value); | 3409 __ movsxd(out, value); |
| 3410 } else { | 3410 } else { |
| 3411 ASSERT(from_representation() == kUnboxedUint32); | 3411 ASSERT(from_representation() == kUnboxedUint32); |
| 3412 __ movl(out, value); | 3412 __ movl(out, value); |
| 3413 } | 3413 } |
| 3414 __ SmiTag(out); | 3414 __ SmiTag(out); |
| 3415 } | 3415 } |
| 3416 | 3416 |
| 3417 | 3417 |
| 3418 LocationSummary* BoxInt64Instr::MakeLocationSummary(Isolate* isolate, | 3418 LocationSummary* BoxInt64Instr::MakeLocationSummary(Isolate* isolate, |
| 3419 bool opt) const { | 3419 bool opt) const { |
| 3420 const intptr_t kNumInputs = 1; | 3420 const intptr_t kNumInputs = 1; |
| 3421 const intptr_t kNumTemps = 0; | 3421 const intptr_t kNumTemps = 0; |
| 3422 LocationSummary* summary = new(isolate) LocationSummary( | 3422 LocationSummary* summary = new(isolate) LocationSummary( |
| 3423 isolate, | 3423 isolate, |
| 3424 kNumInputs, | 3424 kNumInputs, |
| 3425 kNumTemps, | 3425 kNumTemps, |
| 3426 ValueFitsSmi() ? LocationSummary::kNoCall | 3426 ValueFitsSmi() ? LocationSummary::kNoCall |
| 3427 : LocationSummary::kCallOnSlowPath); | 3427 : LocationSummary::kCallOnSlowPath); |
| 3428 summary->set_in(0, Location::RequiresRegister()); | 3428 summary->set_in(0, Location::RequiresRegister()); |
| 3429 summary->set_out(0, Location::RequiresRegister()); | 3429 summary->set_out(0, Location::RequiresRegister()); |
| (...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6268 __ movq(R10, Immediate(kInvalidObjectPointer)); | 6268 __ movq(R10, Immediate(kInvalidObjectPointer)); |
| 6269 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 6269 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
| 6270 #endif | 6270 #endif |
| 6271 } | 6271 } |
| 6272 | 6272 |
| 6273 } // namespace dart | 6273 } // namespace dart |
| 6274 | 6274 |
| 6275 #undef __ | 6275 #undef __ |
| 6276 | 6276 |
| 6277 #endif // defined TARGET_ARCH_X64 | 6277 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |