Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index 8c1699384c8f51de775768c65063124a73379987..931082171f9a0d8cfdf09c99e4c20f21a27a78c2 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -679,29 +679,36 @@ class TranslationIterator BASE_EMBEDDED { |
}; |
+#define TRANSLATION_OPCODE_LIST(V) \ |
+ V(BEGIN) \ |
+ V(JS_FRAME) \ |
+ V(CONSTRUCT_STUB_FRAME) \ |
+ V(GETTER_STUB_FRAME) \ |
+ V(SETTER_STUB_FRAME) \ |
+ V(ARGUMENTS_ADAPTOR_FRAME) \ |
+ V(COMPILED_STUB_FRAME) \ |
+ V(DUPLICATED_OBJECT) \ |
+ V(ARGUMENTS_OBJECT) \ |
+ V(CAPTURED_OBJECT) \ |
+ V(REGISTER) \ |
+ V(INT32_REGISTER) \ |
+ V(UINT32_REGISTER) \ |
+ V(DOUBLE_REGISTER) \ |
+ V(STACK_SLOT) \ |
+ V(INT32_STACK_SLOT) \ |
+ V(UINT32_STACK_SLOT) \ |
+ V(DOUBLE_STACK_SLOT) \ |
+ V(LITERAL) |
+ |
+ |
class Translation BASE_EMBEDDED { |
public: |
+#define DECLARE_TRANSLATION_OPCODE_ENUM(item) item, |
enum Opcode { |
- BEGIN, |
- JS_FRAME, |
- CONSTRUCT_STUB_FRAME, |
- GETTER_STUB_FRAME, |
- SETTER_STUB_FRAME, |
- ARGUMENTS_ADAPTOR_FRAME, |
- COMPILED_STUB_FRAME, |
- DUPLICATED_OBJECT, |
- ARGUMENTS_OBJECT, |
- CAPTURED_OBJECT, |
- REGISTER, |
- INT32_REGISTER, |
- UINT32_REGISTER, |
- DOUBLE_REGISTER, |
- STACK_SLOT, |
- INT32_STACK_SLOT, |
- UINT32_STACK_SLOT, |
- DOUBLE_STACK_SLOT, |
- LITERAL |
+ TRANSLATION_OPCODE_LIST(DECLARE_TRANSLATION_OPCODE_ENUM) |
+ LAST = LITERAL |
}; |
+#undef DECLARE_TRANSLATION_OPCODE_ENUM |
Translation(TranslationBuffer* buffer, int frame_count, int jsframe_count, |
Zone* zone) |