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

Unified Diff: runtime/vm/intermediate_language_arm.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.h ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_arm.cc
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc
index 26fc2ce5d4bf45b76b514541e6b0680a3ceaaec6..40cddcfaae0747fab48c879073e091f82ebfe93f 100644
--- a/runtime/vm/intermediate_language_arm.cc
+++ b/runtime/vm/intermediate_language_arm.cc
@@ -6938,6 +6938,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(R0));
+ locs->set_out(0, Location::RegisterLocation(R0));
+ 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());
+ __ Push(typed_data);
+ compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position.
+ deopt_id(),
+ kGrowRegExpStackRuntimeEntry,
+ 1,
+ locs());
+ __ Drop(1);
+ __ Pop(result);
+}
+
+
} // namespace dart
#endif // defined TARGET_ARCH_ARM
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698