| 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 "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2314 | 2314 |
| 2315 compiler->SaveLiveRegisters(locs); | 2315 compiler->SaveLiveRegisters(locs); |
| 2316 | 2316 |
| 2317 __ LoadImmediate(T1, instruction_->num_context_variables()); | 2317 __ LoadImmediate(T1, instruction_->num_context_variables()); |
| 2318 StubCode* stub_code = compiler->isolate()->stub_code(); | 2318 StubCode* stub_code = compiler->isolate()->stub_code(); |
| 2319 const ExternalLabel label(stub_code->AllocateContextEntryPoint()); | 2319 const ExternalLabel label(stub_code->AllocateContextEntryPoint()); |
| 2320 compiler->GenerateCall(instruction_->token_pos(), | 2320 compiler->GenerateCall(instruction_->token_pos(), |
| 2321 &label, | 2321 &label, |
| 2322 RawPcDescriptors::kOther, | 2322 RawPcDescriptors::kOther, |
| 2323 locs); | 2323 locs); |
| 2324 ASSERT(instruction_->locs()->out(0).reg() == R0); | 2324 ASSERT(instruction_->locs()->out(0).reg() == V0); |
| 2325 compiler->RestoreLiveRegisters(instruction_->locs()); | 2325 compiler->RestoreLiveRegisters(instruction_->locs()); |
| 2326 __ b(exit_label()); | 2326 __ b(exit_label()); |
| 2327 } | 2327 } |
| 2328 | 2328 |
| 2329 private: | 2329 private: |
| 2330 AllocateUninitializedContextInstr* instruction_; | 2330 AllocateUninitializedContextInstr* instruction_; |
| 2331 }; | 2331 }; |
| 2332 | 2332 |
| 2333 | 2333 |
| 2334 void AllocateUninitializedContextInstr::EmitNativeCode( | 2334 void AllocateUninitializedContextInstr::EmitNativeCode( |
| (...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4826 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 4826 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 4827 #if defined(DEBUG) | 4827 #if defined(DEBUG) |
| 4828 __ LoadImmediate(S4, kInvalidObjectPointer); | 4828 __ LoadImmediate(S4, kInvalidObjectPointer); |
| 4829 __ LoadImmediate(S5, kInvalidObjectPointer); | 4829 __ LoadImmediate(S5, kInvalidObjectPointer); |
| 4830 #endif | 4830 #endif |
| 4831 } | 4831 } |
| 4832 | 4832 |
| 4833 } // namespace dart | 4833 } // namespace dart |
| 4834 | 4834 |
| 4835 #endif // defined TARGET_ARCH_MIPS | 4835 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |