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

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

Issue 1400753003: [Interpreter] Add array literal support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_literal
Patch Set: Rebase Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ 60 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \
61 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ 61 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \
62 \ 62 \
63 /* StoreIC operations */ \ 63 /* StoreIC operations */ \
64 V(StoreICSloppy, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ 64 V(StoreICSloppy, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \
65 V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ 65 V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \
66 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ 66 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \
67 OperandType::kIdx8) \ 67 OperandType::kIdx8) \
68 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ 68 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \
69 OperandType::kIdx8) \ 69 OperandType::kIdx8) \
70 /* TODO(rmcilroy): Remove once literal stores have type feedback slots. */ \
71 V(KeyedStoreICGeneric, OperandType::kReg8, OperandType::kReg8) \
70 \ 72 \
71 /* Context operations */ \ 73 /* Context operations */ \
72 V(PushContext, OperandType::kReg8) \ 74 V(PushContext, OperandType::kReg8) \
73 V(PopContext, OperandType::kReg8) \ 75 V(PopContext, OperandType::kReg8) \
74 \ 76 \
75 /* Binary Operators */ \ 77 /* Binary Operators */ \
76 V(Add, OperandType::kReg8) \ 78 V(Add, OperandType::kReg8) \
77 V(Sub, OperandType::kReg8) \ 79 V(Sub, OperandType::kReg8) \
78 V(Mul, OperandType::kReg8) \ 80 V(Mul, OperandType::kReg8) \
79 V(Div, OperandType::kReg8) \ 81 V(Div, OperandType::kReg8) \
(...skipping 22 matching lines...) Expand all
102 V(TestLessThan, OperandType::kReg8) \ 104 V(TestLessThan, OperandType::kReg8) \
103 V(TestGreaterThan, OperandType::kReg8) \ 105 V(TestGreaterThan, OperandType::kReg8) \
104 V(TestLessThanOrEqual, OperandType::kReg8) \ 106 V(TestLessThanOrEqual, OperandType::kReg8) \
105 V(TestGreaterThanOrEqual, OperandType::kReg8) \ 107 V(TestGreaterThanOrEqual, OperandType::kReg8) \
106 V(TestInstanceOf, OperandType::kReg8) \ 108 V(TestInstanceOf, OperandType::kReg8) \
107 V(TestIn, OperandType::kReg8) \ 109 V(TestIn, OperandType::kReg8) \
108 \ 110 \
109 /* Cast operators */ \ 111 /* Cast operators */ \
110 V(ToBoolean, OperandType::kNone) \ 112 V(ToBoolean, OperandType::kNone) \
111 \ 113 \
114 /* Literals */ \
115 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \
116 \
112 /* Closure allocation */ \ 117 /* Closure allocation */ \
113 V(CreateClosure, OperandType::kImm8) \ 118 V(CreateClosure, OperandType::kImm8) \
114 \ 119 \
115 /* Control Flow */ \ 120 /* Control Flow */ \
116 V(Jump, OperandType::kImm8) \ 121 V(Jump, OperandType::kImm8) \
117 V(JumpConstant, OperandType::kIdx8) \ 122 V(JumpConstant, OperandType::kIdx8) \
118 V(JumpIfTrue, OperandType::kImm8) \ 123 V(JumpIfTrue, OperandType::kImm8) \
119 V(JumpIfTrueConstant, OperandType::kIdx8) \ 124 V(JumpIfTrueConstant, OperandType::kIdx8) \
120 V(JumpIfFalse, OperandType::kImm8) \ 125 V(JumpIfFalse, OperandType::kImm8) \
121 V(JumpIfFalseConstant, OperandType::kIdx8) \ 126 V(JumpIfFalseConstant, OperandType::kIdx8) \
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 266
262 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 267 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
263 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 268 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
264 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 269 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
265 270
266 } // namespace interpreter 271 } // namespace interpreter
267 } // namespace internal 272 } // namespace internal
268 } // namespace v8 273 } // namespace v8
269 274
270 #endif // V8_INTERPRETER_BYTECODES_H_ 275 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698