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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Convert GetSuperConstructor to a new interpreter bytecode Created 4 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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 OperandType::kReg, OperandType::kIdx) \ 134 OperandType::kReg, OperandType::kIdx) \
135 \ 135 \
136 /* Unary Operators */ \ 136 /* Unary Operators */ \
137 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 137 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \
138 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 138 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \
139 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ 139 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \
140 V(LogicalNot, AccumulatorUse::kReadWrite) \ 140 V(LogicalNot, AccumulatorUse::kReadWrite) \
141 V(TypeOf, AccumulatorUse::kReadWrite) \ 141 V(TypeOf, AccumulatorUse::kReadWrite) \
142 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ 142 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \
143 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ 143 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \
144 V(GetSuperConstructor, AccumulatorUse::kReadWrite) \
rmcilroy 2016/11/23 21:55:37 This isn't really a unary op (in the sense of JS u
144 \ 145 \
145 /* Call operations */ \ 146 /* Call operations */ \
146 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kRegList, \ 147 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kRegList, \
147 OperandType::kRegCount, OperandType::kIdx) \ 148 OperandType::kRegCount, OperandType::kIdx) \
148 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, \ 149 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, \
149 OperandType::kRegList, OperandType::kRegCount, OperandType::kIdx) \ 150 OperandType::kRegList, OperandType::kRegCount, OperandType::kIdx) \
150 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ 151 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \
151 OperandType::kRegList, OperandType::kRegCount) \ 152 OperandType::kRegList, OperandType::kRegCount) \
152 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ 153 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \
153 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \ 154 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 #undef CONSTEXPR 735 #undef CONSTEXPR
735 736
736 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, 737 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
737 const Bytecode& bytecode); 738 const Bytecode& bytecode);
738 739
739 } // namespace interpreter 740 } // namespace interpreter
740 } // namespace internal 741 } // namespace internal
741 } // namespace v8 742 } // namespace v8
742 743
743 #endif // V8_INTERPRETER_BYTECODES_H_ 744 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698