Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index e1f462bcc742af754172b46f5d5784e1a92eb744..7c73c86403a2506700ca46704978dbd2bd8f9d2b 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -6819,6 +6819,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(EAX)); |
+ locs->set_out(0, Location::RegisterLocation(EAX)); |
+ 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()); |
+ __ pushl(typed_data); |
+ compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. |
+ deopt_id(), |
+ kGrowRegExpStackRuntimeEntry, |
+ 1, |
+ locs()); |
+ __ Drop(1); |
+ __ popl(result); |
+} |
+ |
+ |
} // namespace dart |
#undef __ |