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

Side by Side Diff: src/isolate.cc

Issue 2557693006: [turbofan] Remove --turbo-asm-deoptimization flag. (Closed)
Patch Set: Remove implication. Created 4 years 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/frames.cc ('k') | src/runtime/runtime-test.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 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
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
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
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698