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

Unified Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | runtime/vm/regexp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index ca58c7a565ad347dcdf65d95cf5e551ac1f21e77..893e662c0c1e05b9fd266bb6b47567e976da8dca 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -6414,6 +6414,34 @@ 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(RAX));
+ locs->set_out(0, Location::RegisterLocation(RAX));
+ return locs;
+}
+
+
+void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ const Register typed_data = locs()->in(0).reg();
+ const Register result = locs()->out(0).reg();
+ __ PushObject(Object::null_object(), PP);
+ __ pushq(typed_data);
+ compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position.
+ deopt_id(),
+ kGrowRegExpStackRuntimeEntry,
+ 1,
+ locs());
+ __ Drop(1);
+ __ popq(result);
+}
+
+
} // namespace dart
#undef __
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/regexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698