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