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

Side by Side Diff: src/interpreter/control-flow-builders.cc

Issue 1695613002: Revert of [interpreter] Correctly thread through catch prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/control-flow-builders.h ('k') | src/objects.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/control-flow-builders.h" 5 #include "src/interpreter/control-flow-builders.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace interpreter { 9 namespace interpreter {
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 167
168 void TryFinallyBuilder::EndTry() { 168 void TryFinallyBuilder::EndTry() {
169 builder()->MarkTryEnd(handler_id_); 169 builder()->MarkTryEnd(handler_id_);
170 } 170 }
171 171
172 172
173 void TryFinallyBuilder::BeginHandler() { 173 void TryFinallyBuilder::BeginHandler() {
174 builder()->Bind(&handler_); 174 builder()->Bind(&handler_);
175 builder()->MarkHandler(handler_id_, will_catch_); 175 builder()->MarkHandler(handler_id_, false);
176 } 176 }
177 177
178 178
179 void TryFinallyBuilder::BeginFinally() { 179 void TryFinallyBuilder::BeginFinally() {
180 for (size_t i = 0; i < finalization_sites_.size(); i++) { 180 for (size_t i = 0; i < finalization_sites_.size(); i++) {
181 BytecodeLabel& site = finalization_sites_.at(i); 181 BytecodeLabel& site = finalization_sites_.at(i);
182 builder()->Bind(&site); 182 builder()->Bind(&site);
183 } 183 }
184 } 184 }
185 185
186 186
187 void TryFinallyBuilder::EndFinally() { 187 void TryFinallyBuilder::EndFinally() {
188 // Nothing to be done here. 188 // Nothing to be done here.
189 } 189 }
190 190
191 } // namespace interpreter 191 } // namespace interpreter
192 } // namespace internal 192 } // namespace internal
193 } // namespace v8 193 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/control-flow-builders.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698