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