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

Side by Side Diff: src/compiler.cc

Issue 1403223003: [turbofan] Make native context specialization dependent on the typed pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | src/compiler/js-global-specialization.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 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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 if (info()->is_osr()) os << " OSR"; 435 if (info()->is_osr()) os << " OSR";
436 os << "]" << std::endl; 436 os << "]" << std::endl;
437 } 437 }
438 438
439 if (info()->shared_info()->asm_function()) { 439 if (info()->shared_info()->asm_function()) {
440 if (info()->osr_frame()) info()->MarkAsFrameSpecializing(); 440 if (info()->osr_frame()) info()->MarkAsFrameSpecializing();
441 info()->MarkAsFunctionContextSpecializing(); 441 info()->MarkAsFunctionContextSpecializing();
442 } else if (info()->has_global_object() && 442 } else if (info()->has_global_object() &&
443 FLAG_native_context_specialization) { 443 FLAG_native_context_specialization) {
444 info()->MarkAsNativeContextSpecializing(); 444 info()->MarkAsNativeContextSpecializing();
445 info()->MarkAsTypingEnabled();
445 } else if (FLAG_turbo_type_feedback) { 446 } else if (FLAG_turbo_type_feedback) {
446 info()->MarkAsTypeFeedbackEnabled(); 447 info()->MarkAsTypeFeedbackEnabled();
447 info()->EnsureFeedbackVector(); 448 info()->EnsureFeedbackVector();
448 } 449 }
449 if (!info()->shared_info()->asm_function() || 450 if (!info()->shared_info()->asm_function() ||
450 FLAG_turbo_asm_deoptimization) { 451 FLAG_turbo_asm_deoptimization) {
451 info()->MarkAsDeoptimizationEnabled(); 452 info()->MarkAsDeoptimizationEnabled();
452 } 453 }
453 454
454 Timer t(this, &time_taken_to_create_graph_); 455 Timer t(this, &time_taken_to_create_graph_);
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 } 1791 }
1791 1792
1792 #if DEBUG 1793 #if DEBUG
1793 void CompilationInfo::PrintAstForTesting() { 1794 void CompilationInfo::PrintAstForTesting() {
1794 PrintF("--- Source from AST ---\n%s\n", 1795 PrintF("--- Source from AST ---\n%s\n",
1795 PrettyPrinter(isolate(), zone()).PrintProgram(literal())); 1796 PrettyPrinter(isolate(), zone()).PrintProgram(literal()));
1796 } 1797 }
1797 #endif 1798 #endif
1798 } // namespace internal 1799 } // namespace internal
1799 } // namespace v8 1800 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-global-specialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698