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 6914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6925 ASSERT(!compiler->is_optimizing()); | 6925 ASSERT(!compiler->is_optimizing()); |
6926 StubCode* stub_code = compiler->isolate()->stub_code(); | 6926 StubCode* stub_code = compiler->isolate()->stub_code(); |
6927 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 6927 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
6928 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6928 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
6929 #if defined(DEBUG) | 6929 #if defined(DEBUG) |
6930 __ LoadImmediate(R4, kInvalidObjectPointer); | 6930 __ LoadImmediate(R4, kInvalidObjectPointer); |
6931 __ LoadImmediate(R5, kInvalidObjectPointer); | 6931 __ LoadImmediate(R5, kInvalidObjectPointer); |
6932 #endif | 6932 #endif |
6933 } | 6933 } |
6934 | 6934 |
| 6935 |
| 6936 LocationSummary* GrowTypedDataInstr::MakeLocationSummary( |
| 6937 Zone* zone, bool opt) const { |
| 6938 const intptr_t kNumInputs = 1; |
| 6939 const intptr_t kNumTemps = 0; |
| 6940 LocationSummary* locs = new(zone) LocationSummary( |
| 6941 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 6942 locs->set_in(0, Location::RegisterLocation(R0)); |
| 6943 locs->set_out(0, Location::RegisterLocation(R0)); |
| 6944 return locs; |
| 6945 } |
| 6946 |
| 6947 |
| 6948 void GrowTypedDataInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6949 const Register typed_data = locs()->in(0).reg(); |
| 6950 const Register result = locs()->out(0).reg(); |
| 6951 __ PushObject(Object::null_object()); |
| 6952 __ Push(typed_data); |
| 6953 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. |
| 6954 deopt_id(), |
| 6955 kGrowTypedDataRuntimeEntry, |
| 6956 1, |
| 6957 locs()); |
| 6958 __ Drop(1); |
| 6959 __ Pop(result); |
| 6960 } |
| 6961 |
| 6962 |
6935 } // namespace dart | 6963 } // namespace dart |
6936 | 6964 |
6937 #endif // defined TARGET_ARCH_ARM | 6965 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |