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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 if (FLAG_trace_opt) { | 433 if (FLAG_trace_opt) { |
434 OFStream os(stdout); | 434 OFStream os(stdout); |
435 os << "[compiling method " << Brief(*info()->closure()) | 435 os << "[compiling method " << Brief(*info()->closure()) |
436 << " using TurboFan"; | 436 << " using TurboFan"; |
437 if (info()->is_osr()) os << " OSR"; | 437 if (info()->is_osr()) os << " OSR"; |
438 os << "]" << std::endl; | 438 os << "]" << std::endl; |
439 } | 439 } |
440 | 440 |
441 if (info()->shared_info()->asm_function()) { | 441 if (info()->shared_info()->asm_function()) { |
442 info()->MarkAsContextSpecializing(); | 442 info()->MarkAsContextSpecializing(); |
| 443 } else if (FLAG_turbo_type_feedback) { |
| 444 info()->MarkAsTypeFeedbackEnabled(); |
443 } | 445 } |
444 | 446 |
445 Timer t(this, &time_taken_to_create_graph_); | 447 Timer t(this, &time_taken_to_create_graph_); |
446 compiler::Pipeline pipeline(info()); | 448 compiler::Pipeline pipeline(info()); |
447 pipeline.GenerateCode(); | 449 pipeline.GenerateCode(); |
448 if (!info()->code().is_null()) { | 450 if (!info()->code().is_null()) { |
449 return SetLastStatus(SUCCEEDED); | 451 return SetLastStatus(SUCCEEDED); |
450 } | 452 } |
451 } | 453 } |
452 | 454 |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 } | 1577 } |
1576 | 1578 |
1577 | 1579 |
1578 #if DEBUG | 1580 #if DEBUG |
1579 void CompilationInfo::PrintAstForTesting() { | 1581 void CompilationInfo::PrintAstForTesting() { |
1580 PrintF("--- Source from AST ---\n%s\n", | 1582 PrintF("--- Source from AST ---\n%s\n", |
1581 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1583 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
1582 } | 1584 } |
1583 #endif | 1585 #endif |
1584 } } // namespace v8::internal | 1586 } } // namespace v8::internal |
OLD | NEW |