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

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

Issue 1422443006: [Intepreter] Don't throw reference errors for globals in typeof. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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-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 29 matching lines...) Expand all
40 V(LdaNull, OperandType::kNone) \ 40 V(LdaNull, OperandType::kNone) \
41 V(LdaTheHole, OperandType::kNone) \ 41 V(LdaTheHole, OperandType::kNone) \
42 V(LdaTrue, OperandType::kNone) \ 42 V(LdaTrue, OperandType::kNone) \
43 V(LdaFalse, OperandType::kNone) \ 43 V(LdaFalse, OperandType::kNone) \
44 V(LdaConstant, OperandType::kIdx8) \ 44 V(LdaConstant, OperandType::kIdx8) \
45 V(LdaConstantWide, OperandType::kIdx16) \ 45 V(LdaConstantWide, OperandType::kIdx16) \
46 \ 46 \
47 /* Globals */ \ 47 /* Globals */ \
48 V(LdaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ 48 V(LdaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \
49 V(LdaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ 49 V(LdaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \
50 V(LdaGlobalInsideTypeofSloppy, OperandType::kIdx8, OperandType::kIdx8) \
51 V(LdaGlobalInsideTypeofStrict, OperandType::kIdx8, OperandType::kIdx8) \
50 V(LdaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \ 52 V(LdaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
51 V(LdaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \ 53 V(LdaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
54 V(LdaGlobalInsideTypeofSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
55 V(LdaGlobalInsideTypeofStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
52 V(StaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ 56 V(StaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \
53 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ 57 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \
54 V(StaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \ 58 V(StaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
55 V(StaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \ 59 V(StaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
56 \ 60 \
57 /* Context operations */ \ 61 /* Context operations */ \
58 V(PushContext, OperandType::kReg8) \ 62 V(PushContext, OperandType::kReg8) \
59 V(PopContext, OperandType::kReg8) \ 63 V(PopContext, OperandType::kReg8) \
60 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 64 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
61 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 65 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 341
338 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 342 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
339 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 343 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
340 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 344 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
341 345
342 } // namespace interpreter 346 } // namespace interpreter
343 } // namespace internal 347 } // namespace internal
344 } // namespace v8 348 } // namespace v8
345 349
346 #endif // V8_INTERPRETER_BYTECODES_H_ 350 #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