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

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

Issue 1524803003: [Interpreter] Add support for Load / Store to Lookup slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@init_eval_impl
Patch Set: rebased the patch and fixed tests. Created 5 years 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ 59 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \
60 V(StaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \ 60 V(StaGlobalSloppyWide, OperandType::kIdx16, OperandType::kIdx16) \
61 V(StaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \ 61 V(StaGlobalStrictWide, OperandType::kIdx16, OperandType::kIdx16) \
62 \ 62 \
63 /* Context operations */ \ 63 /* Context operations */ \
64 V(PushContext, OperandType::kReg8) \ 64 V(PushContext, OperandType::kReg8) \
65 V(PopContext, OperandType::kReg8) \ 65 V(PopContext, OperandType::kReg8) \
66 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 66 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
67 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 67 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
68 \ 68 \
69 /* Load-Store LookupSlots */ \
rmcilroy 2015/12/15 16:44:32 /s/LookupSlots/lookup slots/
mythria 2015/12/16 09:54:21 Done.
70 V(LdaLookupSlot, OperandType::kIdx8) \
71 V(LdaLookupSlotInsideTypeof, OperandType::kIdx8) \
72 V(StaLookupSlotSloppy, OperandType::kIdx8) \
73 V(StaLookupSlotStrict, OperandType::kIdx8) \
74 \
69 /* Register-accumulator transfers */ \ 75 /* Register-accumulator transfers */ \
70 V(Ldar, OperandType::kReg8) \ 76 V(Ldar, OperandType::kReg8) \
71 V(Star, OperandType::kReg8) \ 77 V(Star, OperandType::kReg8) \
72 \ 78 \
73 /* Register-register transfers */ \ 79 /* Register-register transfers */ \
74 V(Mov, OperandType::kReg8, OperandType::kReg8) \ 80 V(Mov, OperandType::kReg8, OperandType::kReg8) \
75 \ 81 \
76 /* LoadIC operations */ \ 82 /* LoadIC operations */ \
77 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 83 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
78 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 84 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 364
359 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 365 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
360 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 366 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
361 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 367 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
362 368
363 } // namespace interpreter 369 } // namespace interpreter
364 } // namespace internal 370 } // namespace internal
365 } // namespace v8 371 } // namespace v8
366 372
367 #endif // V8_INTERPRETER_BYTECODES_H_ 373 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698