| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 List<FrameSummary> summaries; | 1335 List<FrameSummary> summaries; |
| 1336 frame->Summarize(&summaries); | 1336 frame->Summarize(&summaries); |
| 1337 for (const FrameSummary& summary : summaries) { | 1337 for (const FrameSummary& summary : summaries) { |
| 1338 Handle<AbstractCode> code = summary.abstract_code(); | 1338 Handle<AbstractCode> code = summary.abstract_code(); |
| 1339 if (code->IsCode() && code->kind() == AbstractCode::BUILTIN && | 1339 if (code->IsCode() && code->kind() == AbstractCode::BUILTIN && |
| 1340 code->GetCode()->is_promise_rejection()) { | 1340 code->GetCode()->is_promise_rejection()) { |
| 1341 return HandlerTable::PROMISE; | 1341 return HandlerTable::PROMISE; |
| 1342 } | 1342 } |
| 1343 if (code->kind() == AbstractCode::OPTIMIZED_FUNCTION) { | 1343 if (code->kind() == AbstractCode::OPTIMIZED_FUNCTION) { |
| 1344 DCHECK(summary.function()->shared()->asm_function()); | 1344 DCHECK(summary.function()->shared()->asm_function()); |
| 1345 DCHECK(!FLAG_turbo_asm_deoptimization); | |
| 1346 // asm code cannot contain try-catch. | 1345 // asm code cannot contain try-catch. |
| 1347 continue; | 1346 continue; |
| 1348 } | 1347 } |
| 1349 // Must have been constructed from a bytecode array. | 1348 // Must have been constructed from a bytecode array. |
| 1350 CHECK_EQ(AbstractCode::INTERPRETED_FUNCTION, code->kind()); | 1349 CHECK_EQ(AbstractCode::INTERPRETED_FUNCTION, code->kind()); |
| 1351 int code_offset = summary.code_offset(); | 1350 int code_offset = summary.code_offset(); |
| 1352 BytecodeArray* bytecode = code->GetBytecodeArray(); | 1351 BytecodeArray* bytecode = code->GetBytecodeArray(); |
| 1353 HandlerTable* table = HandlerTable::cast(bytecode->handler_table()); | 1352 HandlerTable* table = HandlerTable::cast(bytecode->handler_table()); |
| 1354 int index = table->LookupRange(code_offset, nullptr, &prediction); | 1353 int index = table->LookupRange(code_offset, nullptr, &prediction); |
| 1355 if (index <= 0) continue; | 1354 if (index <= 0) continue; |
| (...skipping 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3517 // Then check whether this scope intercepts. | 3516 // Then check whether this scope intercepts. |
| 3518 if ((flag & intercept_mask_)) { | 3517 if ((flag & intercept_mask_)) { |
| 3519 intercepted_flags_ |= flag; | 3518 intercepted_flags_ |= flag; |
| 3520 return true; | 3519 return true; |
| 3521 } | 3520 } |
| 3522 return false; | 3521 return false; |
| 3523 } | 3522 } |
| 3524 | 3523 |
| 3525 } // namespace internal | 3524 } // namespace internal |
| 3526 } // namespace v8 | 3525 } // namespace v8 |
| OLD | NEW |