| 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 4352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4363 | 4363 |
| 4364 | 4364 |
| 4365 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4365 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4366 __ MoveRegister(locs()->out().reg(), CTX); | 4366 __ MoveRegister(locs()->out().reg(), CTX); |
| 4367 } | 4367 } |
| 4368 | 4368 |
| 4369 | 4369 |
| 4370 LocationSummary* StrictCompareInstr::MakeLocationSummary() const { | 4370 LocationSummary* StrictCompareInstr::MakeLocationSummary() const { |
| 4371 const intptr_t kNumInputs = 2; | 4371 const intptr_t kNumInputs = 2; |
| 4372 const intptr_t kNumTemps = 0; | 4372 const intptr_t kNumTemps = 0; |
| 4373 if (needs_number_check()) { |
| 4374 LocationSummary* locs = |
| 4375 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); |
| 4376 locs->set_in(0, Location::RegisterLocation(RAX)); |
| 4377 locs->set_in(1, Location::RegisterLocation(RCX)); |
| 4378 locs->set_out(Location::RegisterLocation(RAX)); |
| 4379 return locs; |
| 4380 } |
| 4373 LocationSummary* locs = | 4381 LocationSummary* locs = |
| 4374 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 4382 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 4375 locs->set_in(0, Location::RegisterOrConstant(left())); | 4383 locs->set_in(0, Location::RegisterOrConstant(left())); |
| 4376 locs->set_in(1, Location::RegisterOrConstant(right())); | 4384 locs->set_in(1, Location::RegisterOrConstant(right())); |
| 4377 locs->set_out(Location::RequiresRegister()); | 4385 locs->set_out(Location::RequiresRegister()); |
| 4378 return locs; | 4386 return locs; |
| 4379 } | 4387 } |
| 4380 | 4388 |
| 4381 | 4389 |
| 4382 // Special code for numbers (compare values instead of references.) | 4390 // Special code for numbers (compare values instead of references.) |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4570 PcDescriptors::kOther, | 4578 PcDescriptors::kOther, |
| 4571 locs()); | 4579 locs()); |
| 4572 __ Drop(2); // Discard type arguments and receiver. | 4580 __ Drop(2); // Discard type arguments and receiver. |
| 4573 } | 4581 } |
| 4574 | 4582 |
| 4575 } // namespace dart | 4583 } // namespace dart |
| 4576 | 4584 |
| 4577 #undef __ | 4585 #undef __ |
| 4578 | 4586 |
| 4579 #endif // defined TARGET_ARCH_X64 | 4587 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |