Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: runtime/vm/intermediate_language_arm64.cc

Issue 800433004: Use a typed array for the irregexp stack. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: naming Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698