| 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 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 __ TryAllocateArray(kContextCid, instance_size, slow_path->entry_label(), | 2605 __ TryAllocateArray(kContextCid, instance_size, slow_path->entry_label(), |
| 2606 result, // instance | 2606 result, // instance |
| 2607 temp0, | 2607 temp0, |
| 2608 temp1, | 2608 temp1, |
| 2609 temp2); | 2609 temp2); |
| 2610 | 2610 |
| 2611 // Setup up number of context variables field. | 2611 // Setup up number of context variables field. |
| 2612 __ LoadImmediate(temp0, num_context_variables()); | 2612 __ LoadImmediate(temp0, num_context_variables()); |
| 2613 __ str(temp0, FieldAddress(result, Context::num_variables_offset())); | 2613 __ str(temp0, FieldAddress(result, Context::num_variables_offset())); |
| 2614 | 2614 |
| 2615 // Setup isolate field. | |
| 2616 __ ldr(temp0, FieldAddress(CTX, Context::isolate_offset())); | |
| 2617 __ str(temp0, FieldAddress(result, Context::isolate_offset())); | |
| 2618 | |
| 2619 __ Bind(slow_path->exit_label()); | 2615 __ Bind(slow_path->exit_label()); |
| 2620 } | 2616 } |
| 2621 | 2617 |
| 2622 | 2618 |
| 2623 LocationSummary* AllocateContextInstr::MakeLocationSummary(Isolate* isolate, | 2619 LocationSummary* AllocateContextInstr::MakeLocationSummary(Isolate* isolate, |
| 2624 bool opt) const { | 2620 bool opt) const { |
| 2625 const intptr_t kNumInputs = 0; | 2621 const intptr_t kNumInputs = 0; |
| 2626 const intptr_t kNumTemps = 1; | 2622 const intptr_t kNumTemps = 1; |
| 2627 LocationSummary* locs = new(isolate) LocationSummary( | 2623 LocationSummary* locs = new(isolate) LocationSummary( |
| 2628 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); | 2624 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); |
| (...skipping 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6989 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6985 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 6990 #if defined(DEBUG) | 6986 #if defined(DEBUG) |
| 6991 __ LoadImmediate(R4, kInvalidObjectPointer); | 6987 __ LoadImmediate(R4, kInvalidObjectPointer); |
| 6992 __ LoadImmediate(R5, kInvalidObjectPointer); | 6988 __ LoadImmediate(R5, kInvalidObjectPointer); |
| 6993 #endif | 6989 #endif |
| 6994 } | 6990 } |
| 6995 | 6991 |
| 6996 } // namespace dart | 6992 } // namespace dart |
| 6997 | 6993 |
| 6998 #endif // defined TARGET_ARCH_ARM | 6994 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |