OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
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 5592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5603 ASSERT(!compiler->is_optimizing()); | 5603 ASSERT(!compiler->is_optimizing()); |
5604 StubCode* stub_code = compiler->isolate()->stub_code(); | 5604 StubCode* stub_code = compiler->isolate()->stub_code(); |
5605 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 5605 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
5606 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 5606 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
5607 #if defined(DEBUG) | 5607 #if defined(DEBUG) |
5608 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); | 5608 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); |
5609 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); | 5609 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); |
5610 #endif | 5610 #endif |
5611 } | 5611 } |
5612 | 5612 |
| 5613 |
| 5614 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( |
| 5615 Zone* zone, bool opt) const { |
| 5616 const intptr_t kNumInputs = 1; |
| 5617 const intptr_t kNumTemps = 0; |
| 5618 LocationSummary* locs = new(zone) LocationSummary( |
| 5619 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 5620 locs->set_in(0, Location::RegisterLocation(R0)); |
| 5621 locs->set_out(0, Location::RegisterLocation(R0)); |
| 5622 return locs; |
| 5623 } |
| 5624 |
| 5625 |
| 5626 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 5627 const Register typed_data = locs()->in(0).reg(); |
| 5628 const Register result = locs()->out(0).reg(); |
| 5629 __ PushObject(Object::null_object(), PP); |
| 5630 __ Push(typed_data); |
| 5631 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. |
| 5632 deopt_id(), |
| 5633 kGrowRegExpStackRuntimeEntry, |
| 5634 1, |
| 5635 locs()); |
| 5636 __ Drop(1); |
| 5637 __ Pop(result); |
| 5638 } |
| 5639 |
| 5640 |
5613 } // namespace dart | 5641 } // namespace dart |
5614 | 5642 |
5615 #endif // defined TARGET_ARCH_ARM64 | 5643 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |