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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_mips.cc
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc
index 9ee2f40fd2c48943c5df5f2a90994c558ff3e977..9ad50ae70d59e7b43f6cabda08289acc59fc203f 100644
--- a/runtime/vm/intermediate_language_mips.cc
+++ b/runtime/vm/intermediate_language_mips.cc
@@ -5590,6 +5590,37 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
#endif
}
+
+LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(
+ Zone* zone, bool opt) const {
+ const intptr_t kNumInputs = 1;
+ const intptr_t kNumTemps = 0;
+ LocationSummary* locs = new(zone) LocationSummary(
+ zone, kNumInputs, kNumTemps, LocationSummary::kCall);
+ locs->set_in(0, Location::RegisterLocation(T0));
+ locs->set_out(0, Location::RegisterLocation(T0));
+ return locs;
+}
+
+
+void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ const Register typed_data = locs()->in(0).reg();
+ const Register result = locs()->out(0).reg();
+ __ TraceSimMsg("GrowRegExpStackInstr");
+ __ addiu(SP, SP, Immediate(-2 * kWordSize));
+ __ LoadObject(TMP, Object::null_object());
+ __ sw(TMP, Address(SP, 1 * kWordSize));
+ __ sw(typed_data, Address(SP, 0 * kWordSize));
+ compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position.
+ deopt_id(),
+ kGrowRegExpStackRuntimeEntry,
+ 1,
+ locs());
+ __ lw(result, Address(SP, 1 * kWordSize));
+ __ addiu(SP, SP, Immediate(2 * kWordSize));
+}
+
+
} // namespace dart
#endif // defined TARGET_ARCH_MIPS
« 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