| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |