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

Unified Diff: src/interpreter/bytecodes.h

Issue 1266713004: [Intepreter] Addition of BytecodeArrayBuilder and accumulator based bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak BytecodeArray::Disassemble(). Created 5 years, 5 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: src/interpreter/bytecodes.h
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
index b4c0d9c4446b7eda2ac1a99a683d29e018c519b2..977751fd8e92a7e8fa4fffee7878a887955cc2e8 100644
--- a/src/interpreter/bytecodes.h
+++ b/src/interpreter/bytecodes.h
@@ -22,9 +22,20 @@ namespace interpreter {
V(Reg)
// The list of bytecodes which are interpreted by the interpreter.
-#define BYTECODE_LIST(V) \
- V(LoadLiteral0, OperandType::kReg) \
- V(LoadSmi8, OperandType::kReg, OperandType::kImm8) \
+#define BYTECODE_LIST(V) \
+ V(LoadLiteral0, OperandType::kNone) \
+ V(LoadSmi8, OperandType::kImm8) \
rmcilroy 2015/07/30 10:12:25 nit - can we update the bytecodes above to be in t
oth 2015/07/30 15:38:42 Done.
oth 2015/07/30 15:38:43 The pattern has been to add instructions as needed
+ V(LdaUndefined, OperandType::kNone) \
+ V(LdaNull, OperandType::kNone) \
+ V(LdaTheHole, OperandType::kNone) \
+ V(LdaTrue, OperandType::kNone) \
+ V(LdaFalse, OperandType::kNone) \
+ V(Ldar, OperandType::kReg) \
+ V(Stra, OperandType::kReg) \
+ V(Add, OperandType::kReg) \
+ V(Sub, OperandType::kReg) \
+ V(Mul, OperandType::kReg) \
+ V(Div, OperandType::kReg) \
V(Return, OperandType::kNone)

Powered by Google App Engine
This is Rietveld 408576698