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

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

Issue 2122183002: [Interpreter] Collect type feedback for calls in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed few comments. Created 4 years, 5 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 V(Inc, AccumulatorUse::kReadWrite) \ 173 V(Inc, AccumulatorUse::kReadWrite) \
174 V(Dec, AccumulatorUse::kReadWrite) \ 174 V(Dec, AccumulatorUse::kReadWrite) \
175 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ 175 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \
176 V(LogicalNot, AccumulatorUse::kReadWrite) \ 176 V(LogicalNot, AccumulatorUse::kReadWrite) \
177 V(TypeOf, AccumulatorUse::kReadWrite) \ 177 V(TypeOf, AccumulatorUse::kReadWrite) \
178 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ 178 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \
179 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ 179 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \
180 \ 180 \
181 /* Call operations */ \ 181 /* Call operations */ \
182 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ 182 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \
183 OperandType::kRegCount, OperandType::kIdx) \ 183 OperandType::kRegCount) \
184 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ 184 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \
185 OperandType::kRegCount, OperandType::kIdx) \ 185 OperandType::kRegCount) \
186 V(CallWithFeedback, AccumulatorUse::kWrite, OperandType::kReg, \
187 OperandType::kReg, OperandType::kRegCount, OperandType::kIdx) \
188 V(TailCallWithFeedback, AccumulatorUse::kWrite, OperandType::kReg, \
189 OperandType::kReg, OperandType::kRegCount, OperandType::kIdx) \
186 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ 190 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \
187 OperandType::kMaybeReg, OperandType::kRegCount) \ 191 OperandType::kMaybeReg, OperandType::kRegCount) \
188 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ 192 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \
189 OperandType::kMaybeReg, OperandType::kRegCount, OperandType::kRegOutPair) \ 193 OperandType::kMaybeReg, OperandType::kRegCount, OperandType::kRegOutPair) \
190 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \ 194 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \
191 OperandType::kReg, OperandType::kRegCount) \ 195 OperandType::kReg, OperandType::kRegCount) \
192 \ 196 \
193 /* Intrinsics */ \ 197 /* Intrinsics */ \
194 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kIntrinsicId, \ 198 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kIntrinsicId, \
195 OperandType::kMaybeReg, OperandType::kRegCount) \ 199 OperandType::kMaybeReg, OperandType::kRegCount) \
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 592
589 // Returns the equivalent jump bytecode without the accumulator coercion. 593 // Returns the equivalent jump bytecode without the accumulator coercion.
590 static Bytecode GetJumpWithoutToBoolean(Bytecode bytecode); 594 static Bytecode GetJumpWithoutToBoolean(Bytecode bytecode);
591 595
592 // Returns true if the bytecode is a conditional jump, a jump, or a return. 596 // Returns true if the bytecode is a conditional jump, a jump, or a return.
593 static bool IsJumpOrReturn(Bytecode bytecode); 597 static bool IsJumpOrReturn(Bytecode bytecode);
594 598
595 // Returns true if the bytecode is a call or a constructor call. 599 // Returns true if the bytecode is a call or a constructor call.
596 static bool IsCallOrNew(Bytecode bytecode); 600 static bool IsCallOrNew(Bytecode bytecode);
597 601
602 // Returns true if the bytecode is a tail call.
603 static bool IsTailCall(Bytecode bytecode);
604
598 // Returns true if the bytecode is a call to the runtime. 605 // Returns true if the bytecode is a call to the runtime.
599 static bool IsCallRuntime(Bytecode bytecode); 606 static bool IsCallRuntime(Bytecode bytecode);
600 607
601 // Returns true if the bytecode is a debug break. 608 // Returns true if the bytecode is a debug break.
602 static bool IsDebugBreak(Bytecode bytecode); 609 static bool IsDebugBreak(Bytecode bytecode);
603 610
604 // Returns true if the bytecode is Ldar or Star. 611 // Returns true if the bytecode is Ldar or Star.
605 static bool IsLdarOrStar(Bytecode bytecode); 612 static bool IsLdarOrStar(Bytecode bytecode);
606 613
607 // Returns true if the bytecode is LdaSmi or LdaZero. 614 // Returns true if the bytecode is LdaSmi or LdaZero.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 706 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
700 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 707 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
701 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 708 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
702 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 709 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
703 710
704 } // namespace interpreter 711 } // namespace interpreter
705 } // namespace internal 712 } // namespace internal
706 } // namespace v8 713 } // namespace v8
707 714
708 #endif // V8_INTERPRETER_BYTECODES_H_ 715 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698