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

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

Issue 1361113002: [Interpreter] Add support for loading globals in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments and fix ASAN 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 18 matching lines...) Expand all
29 /* Loading the accumulator */ \ 29 /* Loading the accumulator */ \
30 V(LdaZero, OperandType::kNone) \ 30 V(LdaZero, OperandType::kNone) \
31 V(LdaSmi8, OperandType::kImm8) \ 31 V(LdaSmi8, OperandType::kImm8) \
32 V(LdaConstant, OperandType::kIdx) \ 32 V(LdaConstant, OperandType::kIdx) \
33 V(LdaUndefined, OperandType::kNone) \ 33 V(LdaUndefined, OperandType::kNone) \
34 V(LdaNull, OperandType::kNone) \ 34 V(LdaNull, OperandType::kNone) \
35 V(LdaTheHole, OperandType::kNone) \ 35 V(LdaTheHole, OperandType::kNone) \
36 V(LdaTrue, OperandType::kNone) \ 36 V(LdaTrue, OperandType::kNone) \
37 V(LdaFalse, OperandType::kNone) \ 37 V(LdaFalse, OperandType::kNone) \
38 \ 38 \
39 /* Load globals */ \
40 V(LdaGlobal, OperandType::kIdx) \
41 \
39 /* Register-accumulator transfers */ \ 42 /* Register-accumulator transfers */ \
40 V(Ldar, OperandType::kReg) \ 43 V(Ldar, OperandType::kReg) \
41 V(Star, OperandType::kReg) \ 44 V(Star, OperandType::kReg) \
42 \ 45 \
43 /* LoadIC operations */ \ 46 /* LoadIC operations */ \
44 V(LoadIC, OperandType::kReg, OperandType::kIdx) \ 47 V(LoadIC, OperandType::kReg, OperandType::kIdx) \
45 V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \ 48 V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \
46 \ 49 \
47 /* StoreIC operations */ \ 50 /* StoreIC operations */ \
48 V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ 51 V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 }; 166 };
164 167
165 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 168 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
166 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 169 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
167 170
168 } // namespace interpreter 171 } // namespace interpreter
169 } // namespace internal 172 } // namespace internal
170 } // namespace v8 173 } // namespace v8
171 174
172 #endif // V8_INTERPRETER_BYTECODES_H_ 175 #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