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 __ |