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

Unified Diff: runtime/vm/intermediate_language.h

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/constant_propagator.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index f7adb887791cb671165703e1b0df60644f8bdaf7..609f89e41a6a2930440ca2cd7fd9486a5c10dfc8 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -561,6 +561,7 @@ class EmbeddedArray<T, 0> {
M(BoxInt32) \
M(UnboxInt32) \
M(UnboxedIntConverter) \
+ M(GrowRegExpStack) \
M(Deoptimize)
#define FOR_EACH_ABSTRACT_INSTRUCTION(M) \
@@ -7793,6 +7794,24 @@ class UnboxedIntConverterInstr : public TemplateDefinition<1, NoThrow> {
};
+class GrowRegExpStackInstr : public TemplateDefinition<1, Throws> {
+ public:
+ explicit GrowRegExpStackInstr(Value* typed_data_cell) {
+ SetInputAt(0, typed_data_cell);
+ }
+
+ Value* typed_data_cell() const { return inputs_[0]; }
+
+ virtual bool CanDeoptimize() const { return MayThrow(); }
+ virtual EffectSet Effects() const { return EffectSet::None(); }
+
+ DECLARE_INSTRUCTION(GrowRegExpStack);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GrowRegExpStackInstr);
+};
+
+
#undef DECLARE_INSTRUCTION
class Environment : public ZoneAllocated {
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698