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

Side by Side Diff: runtime/vm/intermediate_language_mips.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_ia32.cc ('k') | runtime/vm/intermediate_language_x64.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) 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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 5572 matching lines...) Expand 10 before | Expand all | Expand 10 after
5583 ASSERT(!compiler->is_optimizing()); 5583 ASSERT(!compiler->is_optimizing());
5584 StubCode* stub_code = compiler->isolate()->stub_code(); 5584 StubCode* stub_code = compiler->isolate()->stub_code();
5585 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); 5585 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint());
5586 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5586 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5587 #if defined(DEBUG) 5587 #if defined(DEBUG)
5588 __ LoadImmediate(S4, kInvalidObjectPointer); 5588 __ LoadImmediate(S4, kInvalidObjectPointer);
5589 __ LoadImmediate(S5, kInvalidObjectPointer); 5589 __ LoadImmediate(S5, kInvalidObjectPointer);
5590 #endif 5590 #endif
5591 } 5591 }
5592 5592
5593
5594 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(
5595 Zone* zone, bool opt) const {
5596 const intptr_t kNumInputs = 1;
5597 const intptr_t kNumTemps = 0;
5598 LocationSummary* locs = new(zone) LocationSummary(
5599 zone, kNumInputs, kNumTemps, LocationSummary::kCall);
5600 locs->set_in(0, Location::RegisterLocation(T0));
5601 locs->set_out(0, Location::RegisterLocation(T0));
5602 return locs;
5603 }
5604
5605
5606 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5607 const Register typed_data = locs()->in(0).reg();
5608 const Register result = locs()->out(0).reg();
5609 __ TraceSimMsg("GrowRegExpStackInstr");
5610 __ addiu(SP, SP, Immediate(-2 * kWordSize));
5611 __ LoadObject(TMP, Object::null_object());
5612 __ sw(TMP, Address(SP, 1 * kWordSize));
5613 __ sw(typed_data, Address(SP, 0 * kWordSize));
5614 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position.
5615 deopt_id(),
5616 kGrowRegExpStackRuntimeEntry,
5617 1,
5618 locs());
5619 __ lw(result, Address(SP, 1 * kWordSize));
5620 __ addiu(SP, SP, Immediate(2 * kWordSize));
5621 }
5622
5623
5593 } // namespace dart 5624 } // namespace dart
5594 5625
5595 #endif // defined TARGET_ARCH_MIPS 5626 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698