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

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

Issue 2347143002: [interpreter] Add fast path for dynamic global lookups (Closed)
Patch Set: Fix bytecode operand documentation Created 4 years, 3 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.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 <cstdint> 8 #include <cstdint>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <string> 10 #include <string>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 OperandType::kIdx, OperandType::kUImm) \ 110 OperandType::kIdx, OperandType::kUImm) \
111 V(LdrContextSlot, AccumulatorUse::kNone, OperandType::kReg, \ 111 V(LdrContextSlot, AccumulatorUse::kNone, OperandType::kReg, \
112 OperandType::kIdx, OperandType::kUImm, OperandType::kRegOut) \ 112 OperandType::kIdx, OperandType::kUImm, OperandType::kRegOut) \
113 V(StaContextSlot, AccumulatorUse::kRead, OperandType::kReg, \ 113 V(StaContextSlot, AccumulatorUse::kRead, OperandType::kReg, \
114 OperandType::kIdx, OperandType::kUImm) \ 114 OperandType::kIdx, OperandType::kUImm) \
115 \ 115 \
116 /* Load-Store lookup slots */ \ 116 /* Load-Store lookup slots */ \
117 V(LdaLookupSlot, AccumulatorUse::kWrite, OperandType::kIdx) \ 117 V(LdaLookupSlot, AccumulatorUse::kWrite, OperandType::kIdx) \
118 V(LdaLookupContextSlot, AccumulatorUse::kWrite, OperandType::kIdx, \ 118 V(LdaLookupContextSlot, AccumulatorUse::kWrite, OperandType::kIdx, \
119 OperandType::kIdx, OperandType::kUImm) \ 119 OperandType::kIdx, OperandType::kUImm) \
120 V(LdaLookupGlobalSlot, AccumulatorUse::kWrite, OperandType::kIdx, \
121 OperandType::kIdx, OperandType::kUImm) \
120 V(LdaLookupSlotInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx) \ 122 V(LdaLookupSlotInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx) \
121 V(LdaLookupContextSlotInsideTypeof, AccumulatorUse::kWrite, \ 123 V(LdaLookupContextSlotInsideTypeof, AccumulatorUse::kWrite, \
122 OperandType::kIdx, OperandType::kIdx, OperandType::kUImm) \ 124 OperandType::kIdx, OperandType::kIdx, OperandType::kUImm) \
125 V(LdaLookupGlobalSlotInsideTypeof, AccumulatorUse::kWrite, \
126 OperandType::kIdx, OperandType::kIdx, OperandType::kUImm) \
123 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 127 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \
124 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 128 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \
125 \ 129 \
126 /* Register-accumulator transfers */ \ 130 /* Register-accumulator transfers */ \
127 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ 131 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \
128 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ 132 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \
129 \ 133 \
130 /* Register-register transfers */ \ 134 /* Register-register transfers */ \
131 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ 135 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \
132 \ 136 \
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 602 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
599 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 603 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
600 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 604 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
601 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 605 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
602 606
603 } // namespace interpreter 607 } // namespace interpreter
604 } // namespace internal 608 } // namespace internal
605 } // namespace v8 609 } // namespace v8
606 610
607 #endif // V8_INTERPRETER_BYTECODES_H_ 611 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698