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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 1413863010: [Interpreter] Add wide varients of bytecodes with feedback and constant pool indexes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_fixbuiltinstacklimit
Patch Set: Rebased Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 18 matching lines...) Expand all
29 \ 29 \
30 /* Short operands. */ \ 30 /* Short operands. */ \
31 V(Idx16, OperandSize::kShort) 31 V(Idx16, OperandSize::kShort)
32 32
33 // The list of bytecodes which are interpreted by the interpreter. 33 // The list of bytecodes which are interpreted by the interpreter.
34 #define BYTECODE_LIST(V) \ 34 #define BYTECODE_LIST(V) \
35 \ 35 \
36 /* Loading the accumulator */ \ 36 /* Loading the accumulator */ \
37 V(LdaZero, OperandType::kNone) \ 37 V(LdaZero, OperandType::kNone) \
38 V(LdaSmi8, OperandType::kImm8) \ 38 V(LdaSmi8, OperandType::kImm8) \
39 V(LdaConstant, OperandType::kIdx8) \
40 V(LdaUndefined, OperandType::kNone) \ 39 V(LdaUndefined, OperandType::kNone) \
41 V(LdaNull, OperandType::kNone) \ 40 V(LdaNull, OperandType::kNone) \
42 V(LdaTheHole, OperandType::kNone) \ 41 V(LdaTheHole, OperandType::kNone) \
43 V(LdaTrue, OperandType::kNone) \ 42 V(LdaTrue, OperandType::kNone) \
44 V(LdaFalse, OperandType::kNone) \ 43 V(LdaFalse, OperandType::kNone) \
44 V(LdaConstant, OperandType::kIdx8) \
45 V(LdaConstantWide, OperandType::kIdx16) \
45 \ 46 \
46 /* Globals */ \ 47 /* Globals */ \
47 V(LdaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ 48 V(LdaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \
48 V(LdaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ 49 V(LdaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \
50 V(LdaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
51 V(LdaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
49 V(StaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ 52 V(StaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \
50 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ 53 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \
54 V(StaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
55 V(StaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
51 \ 56 \
52 /* Context operations */ \ 57 /* Context operations */ \
53 V(PushContext, OperandType::kReg8) \ 58 V(PushContext, OperandType::kReg8) \
54 V(PopContext, OperandType::kReg8) \ 59 V(PopContext, OperandType::kReg8) \
55 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 60 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
56 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 61 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
57 \ 62 \
58 /* Register-accumulator transfers */ \ 63 /* Register-accumulator transfers */ \
59 V(Ldar, OperandType::kReg8) \ 64 V(Ldar, OperandType::kReg8) \
60 V(Star, OperandType::kReg8) \ 65 V(Star, OperandType::kReg8) \
61 \ 66 \
62 /* LoadIC operations */ \ 67 /* LoadIC operations */ \
63 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 68 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
64 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 69 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
65 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ 70 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \
66 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ 71 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \
72 /* TODO(rmcilroy): Wide register operands too? */ \
73 V(LoadICSloppyWide, OperandType::kReg8, OperandType::kIdx16, \
74 OperandType::kIdx16) \
75 V(LoadICStrictWide, OperandType::kReg8, OperandType::kIdx16, \
76 OperandType::kIdx16) \
77 V(KeyedLoadICSloppyWide, OperandType::kReg8, OperandType::kIdx16) \
78 V(KeyedLoadICStrictWide, OperandType::kReg8, OperandType::kIdx16) \
67 \ 79 \
68 /* StoreIC operations */ \ 80 /* StoreIC operations */ \
69 V(StoreICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 81 V(StoreICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
70 V(StoreICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 82 V(StoreICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
71 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ 83 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \
72 OperandType::kIdx8) \ 84 OperandType::kIdx8) \
73 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ 85 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \
74 OperandType::kIdx8) \ 86 OperandType::kIdx8) \
87 /* TODO(rmcilroy): Wide register operands too? */ \
88 V(StoreICSloppyWide, OperandType::kReg8, OperandType::kIdx16, \
89 OperandType::kIdx16) \
90 V(StoreICStrictWide, OperandType::kReg8, OperandType::kIdx16, \
91 OperandType::kIdx16) \
92 V(KeyedStoreICSloppyWide, OperandType::kReg8, OperandType::kReg8, \
93 OperandType::kIdx16) \
94 V(KeyedStoreICStrictWide, OperandType::kReg8, OperandType::kReg8, \
95 OperandType::kIdx16) \
75 \ 96 \
76 /* Binary Operators */ \ 97 /* Binary Operators */ \
77 V(Add, OperandType::kReg8) \ 98 V(Add, OperandType::kReg8) \
78 V(Sub, OperandType::kReg8) \ 99 V(Sub, OperandType::kReg8) \
79 V(Mul, OperandType::kReg8) \ 100 V(Mul, OperandType::kReg8) \
80 V(Div, OperandType::kReg8) \ 101 V(Div, OperandType::kReg8) \
81 V(Mod, OperandType::kReg8) \ 102 V(Mod, OperandType::kReg8) \
82 V(BitwiseOr, OperandType::kReg8) \ 103 V(BitwiseOr, OperandType::kReg8) \
83 V(BitwiseXor, OperandType::kReg8) \ 104 V(BitwiseXor, OperandType::kReg8) \
84 V(BitwiseAnd, OperandType::kReg8) \ 105 V(BitwiseAnd, OperandType::kReg8) \
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 337
317 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 338 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
318 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 339 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
319 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 340 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
320 341
321 } // namespace interpreter 342 } // namespace interpreter
322 } // namespace internal 343 } // namespace internal
323 } // namespace v8 344 } // namespace v8
324 345
325 #endif // V8_INTERPRETER_BYTECODES_H_ 346 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698