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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

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-array-builder.h ('k') | src/interpreter/bytecode-generator.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 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace interpreter { 9 namespace interpreter {
10 10
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfNull(BytecodeLabel* label) { 957 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfNull(BytecodeLabel* label) {
958 return OutputJump(Bytecode::kJumpIfNull, label); 958 return OutputJump(Bytecode::kJumpIfNull, label);
959 } 959 }
960 960
961 961
962 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfUndefined( 962 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfUndefined(
963 BytecodeLabel* label) { 963 BytecodeLabel* label) {
964 return OutputJump(Bytecode::kJumpIfUndefined, label); 964 return OutputJump(Bytecode::kJumpIfUndefined, label);
965 } 965 }
966 966
967 BytecodeArrayBuilder& BytecodeArrayBuilder::StackCheck() {
968 Output(Bytecode::kStackCheck);
969 return *this;
970 }
967 971
968 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { 972 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() {
969 Output(Bytecode::kThrow); 973 Output(Bytecode::kThrow);
970 exit_seen_in_block_ = true; 974 exit_seen_in_block_ = true;
971 return *this; 975 return *this;
972 } 976 }
973 977
974 978
975 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { 979 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() {
976 Output(Bytecode::kReThrow); 980 Output(Bytecode::kReThrow);
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 } 1679 }
1676 1680
1677 // static 1681 // static
1678 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { 1682 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) {
1679 return value.is_short_operand(); 1683 return value.is_short_operand();
1680 } 1684 }
1681 1685
1682 } // namespace interpreter 1686 } // namespace interpreter
1683 } // namespace internal 1687 } // namespace internal
1684 } // namespace v8 1688 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698