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

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: whitespace 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
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..c26b1b9815cb3fdaaa573f2fe40312f75edeed77 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* GrowTypedDataInstr::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 GrowTypedDataInstr::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(),
+ kGrowTypedDataRuntimeEntry,
+ 1,
+ locs());
+ __ Drop(1);
+ __ popq(result);
+}
+
+
} // namespace dart
#undef __

Powered by Google App Engine
This is Rietveld 408576698