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

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: 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.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index f7adb887791cb671165703e1b0df60644f8bdaf7..d412d3480c640230645f305c17e85f53e5c1f5bb 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(GrowTypedData) \
M(Deoptimize)
#define FOR_EACH_ABSTRACT_INSTRUCTION(M) \
@@ -7793,6 +7794,24 @@ class UnboxedIntConverterInstr : public TemplateDefinition<1, NoThrow> {
};
+class GrowTypedDataInstr : public TemplateDefinition<1, Throws> {
+ public:
+ explicit GrowTypedDataInstr(Value* typed_data) {
+ SetInputAt(0, typed_data);
+ }
+
+ Value* typed_data() const { return inputs_[0]; }
+
+ virtual bool CanDeoptimize() const { return MayThrow(); }
+ virtual EffectSet Effects() const { return EffectSet::None(); }
+
+ DECLARE_INSTRUCTION(GrowTypedData);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GrowTypedDataInstr);
+};
+
+
#undef DECLARE_INSTRUCTION
class Environment : public ZoneAllocated {

Powered by Google App Engine
This is Rietveld 408576698