| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void ConstantInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 151 void ConstantInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 152 // The register allocator drops constant definitions that have no uses. | 152 // The register allocator drops constant definitions that have no uses. |
| 153 if (!locs()->out().IsInvalid()) { | 153 if (!locs()->out().IsInvalid()) { |
| 154 Register result = locs()->out().reg(); | 154 Register result = locs()->out().reg(); |
| 155 __ LoadObject(result, value()); | 155 __ LoadObject(result, value()); |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 | 158 |
| 159 | 159 |
| 160 LocationSummary* AssertAssignableInstr::MakeLocationSummary() const { | 160 LocationSummary* AssertAssignableInstr::MakeLocationSummary() const { |
| 161 UNIMPLEMENTED(); | 161 const intptr_t kNumInputs = 3; |
| 162 return NULL; | 162 const intptr_t kNumTemps = 0; |
| 163 LocationSummary* summary = |
| 164 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); |
| 165 summary->set_in(0, Location::RegisterLocation(A0)); // Value. |
| 166 summary->set_in(1, Location::RegisterLocation(A1)); // Instantiator. |
| 167 summary->set_in(2, Location::RegisterLocation(A2)); // Type arguments. |
| 168 summary->set_out(Location::RegisterLocation(A0)); |
| 169 return summary; |
| 163 } | 170 } |
| 164 | 171 |
| 165 | 172 |
| 166 LocationSummary* AssertBooleanInstr::MakeLocationSummary() const { | 173 LocationSummary* AssertBooleanInstr::MakeLocationSummary() const { |
| 167 UNIMPLEMENTED(); | 174 UNIMPLEMENTED(); |
| 168 return NULL; | 175 return NULL; |
| 169 } | 176 } |
| 170 | 177 |
| 171 | 178 |
| 172 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 179 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 | 919 |
| 913 | 920 |
| 914 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 921 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 915 UNIMPLEMENTED(); | 922 UNIMPLEMENTED(); |
| 916 } | 923 } |
| 917 | 924 |
| 918 } // namespace dart | 925 } // namespace dart |
| 919 | 926 |
| 920 #endif // defined TARGET_ARCH_MIPS | 927 #endif // defined TARGET_ARCH_MIPS |
| 921 | 928 |
| OLD | NEW |