| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 6852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6863 } | 6863 } |
| 6864 | 6864 |
| 6865 // We can fall through if the successor is the next block in the list. | 6865 // We can fall through if the successor is the next block in the list. |
| 6866 // Otherwise, we need a jump. | 6866 // Otherwise, we need a jump. |
| 6867 if (!compiler->CanFallThroughTo(successor())) { | 6867 if (!compiler->CanFallThroughTo(successor())) { |
| 6868 __ b(compiler->GetJumpLabel(successor())); | 6868 __ b(compiler->GetJumpLabel(successor())); |
| 6869 } | 6869 } |
| 6870 } | 6870 } |
| 6871 | 6871 |
| 6872 | 6872 |
| 6873 LocationSummary* CurrentContextInstr::MakeLocationSummary(Isolate* isolate, | |
| 6874 bool opt) const { | |
| 6875 return LocationSummary::Make(isolate, | |
| 6876 0, | |
| 6877 Location::RequiresRegister(), | |
| 6878 LocationSummary::kNoCall); | |
| 6879 } | |
| 6880 | |
| 6881 | |
| 6882 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 6883 __ mov(locs()->out(0).reg(), Operand(CTX)); | |
| 6884 } | |
| 6885 | |
| 6886 | |
| 6887 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, | 6873 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, |
| 6888 bool opt) const { | 6874 bool opt) const { |
| 6889 const intptr_t kNumInputs = 2; | 6875 const intptr_t kNumInputs = 2; |
| 6890 const intptr_t kNumTemps = 0; | 6876 const intptr_t kNumTemps = 0; |
| 6891 if (needs_number_check()) { | 6877 if (needs_number_check()) { |
| 6892 LocationSummary* locs = new(isolate) LocationSummary( | 6878 LocationSummary* locs = new(isolate) LocationSummary( |
| 6893 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); | 6879 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 6894 locs->set_in(0, Location::RegisterLocation(R0)); | 6880 locs->set_in(0, Location::RegisterLocation(R0)); |
| 6895 locs->set_in(1, Location::RegisterLocation(R1)); | 6881 locs->set_in(1, Location::RegisterLocation(R1)); |
| 6896 locs->set_out(0, Location::RegisterLocation(R0)); | 6882 locs->set_out(0, Location::RegisterLocation(R0)); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7019 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 7005 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 7020 #if defined(DEBUG) | 7006 #if defined(DEBUG) |
| 7021 __ LoadImmediate(R4, kInvalidObjectPointer); | 7007 __ LoadImmediate(R4, kInvalidObjectPointer); |
| 7022 __ LoadImmediate(R5, kInvalidObjectPointer); | 7008 __ LoadImmediate(R5, kInvalidObjectPointer); |
| 7023 #endif | 7009 #endif |
| 7024 } | 7010 } |
| 7025 | 7011 |
| 7026 } // namespace dart | 7012 } // namespace dart |
| 7027 | 7013 |
| 7028 #endif // defined TARGET_ARCH_ARM | 7014 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |