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

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

Issue 1621673002: [interpreter] Add ReThrow bytecode for try-finally support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_int-6
Patch Set: Rebased. Created 4 years, 11 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.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 #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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 } 953 }
954 954
955 955
956 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { 956 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() {
957 Output(Bytecode::kThrow); 957 Output(Bytecode::kThrow);
958 exit_seen_in_block_ = true; 958 exit_seen_in_block_ = true;
959 return *this; 959 return *this;
960 } 960 }
961 961
962 962
963 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() {
964 Output(Bytecode::kReThrow);
965 exit_seen_in_block_ = true;
966 return *this;
967 }
968
969
963 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { 970 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() {
964 Output(Bytecode::kReturn); 971 Output(Bytecode::kReturn);
965 exit_seen_in_block_ = true; 972 exit_seen_in_block_ = true;
966 return *this; 973 return *this;
967 } 974 }
968 975
969 976
970 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( 977 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
971 Register cache_info_triple) { 978 Register cache_info_triple) {
972 if (FitsInReg8Operand(cache_info_triple)) { 979 if (FitsInReg8Operand(cache_info_triple)) {
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 1685
1679 1686
1680 // static 1687 // static
1681 bool BytecodeArrayBuilder::FitsInReg16Operand(Register value) { 1688 bool BytecodeArrayBuilder::FitsInReg16Operand(Register value) {
1682 return kMinInt16 <= value.index() && value.index() <= kMaxInt16; 1689 return kMinInt16 <= value.index() && value.index() <= kMaxInt16;
1683 } 1690 }
1684 1691
1685 } // namespace interpreter 1692 } // namespace interpreter
1686 } // namespace internal 1693 } // namespace internal
1687 } // namespace v8 1694 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698