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

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

Issue 1665853002: [Interpreter] Add explicit StackCheck bytecodes on function entry and back branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittests. Created 4 years, 10 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.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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 \ 252 \
253 /* Complex flow control For..in */ \ 253 /* Complex flow control For..in */ \
254 V(ForInPrepare, OperandType::kRegOutTriple8) \ 254 V(ForInPrepare, OperandType::kRegOutTriple8) \
255 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ 255 V(ForInPrepareWide, OperandType::kRegOutTriple16) \
256 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ 256 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \
257 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ 257 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \
258 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ 258 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \
259 OperandType::kRegPair16) \ 259 OperandType::kRegPair16) \
260 V(ForInStep, OperandType::kReg8) \ 260 V(ForInStep, OperandType::kReg8) \
261 \ 261 \
262 /* Perform a stack guard check */ \
263 V(StackCheck, OperandType::kNone) \
264 \
262 /* Non-local flow control */ \ 265 /* Non-local flow control */ \
263 V(Throw, OperandType::kNone) \ 266 V(Throw, OperandType::kNone) \
264 V(ReThrow, OperandType::kNone) \ 267 V(ReThrow, OperandType::kNone) \
265 V(Return, OperandType::kNone) 268 V(Return, OperandType::kNone)
266 269
267 // Enumeration of the size classes of operand types used by bytecodes. 270 // Enumeration of the size classes of operand types used by bytecodes.
268 enum class OperandSize : uint8_t { 271 enum class OperandSize : uint8_t {
269 kNone = 0, 272 kNone = 0,
270 kByte = 1, 273 kByte = 1,
271 kShort = 2, 274 kShort = 2,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 487
485 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 488 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
486 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 489 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
487 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 490 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
488 491
489 } // namespace interpreter 492 } // namespace interpreter
490 } // namespace internal 493 } // namespace internal
491 } // namespace v8 494 } // namespace v8
492 495
493 #endif // V8_INTERPRETER_BYTECODES_H_ 496 #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