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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 os << "[compiling method " << Brief(*info()->closure()) | 385 os << "[compiling method " << Brief(*info()->closure()) |
386 << " using TurboFan"; | 386 << " using TurboFan"; |
387 if (info()->is_osr()) os << " OSR"; | 387 if (info()->is_osr()) os << " OSR"; |
388 os << "]" << std::endl; | 388 os << "]" << std::endl; |
389 } | 389 } |
390 | 390 |
391 if (info()->shared_info()->asm_function()) { | 391 if (info()->shared_info()->asm_function()) { |
392 info()->MarkAsContextSpecializing(); | 392 info()->MarkAsContextSpecializing(); |
393 } else if (FLAG_turbo_type_feedback) { | 393 } else if (FLAG_turbo_type_feedback) { |
394 info()->MarkAsTypeFeedbackEnabled(); | 394 info()->MarkAsTypeFeedbackEnabled(); |
| 395 info()->EnsureFeedbackVector(); |
395 } | 396 } |
396 | 397 |
397 Timer t(this, &time_taken_to_create_graph_); | 398 Timer t(this, &time_taken_to_create_graph_); |
398 compiler::Pipeline pipeline(info()); | 399 compiler::Pipeline pipeline(info()); |
399 pipeline.GenerateCode(); | 400 pipeline.GenerateCode(); |
400 if (!info()->code().is_null()) { | 401 if (!info()->code().is_null()) { |
401 return SetLastStatus(SUCCEEDED); | 402 return SetLastStatus(SUCCEEDED); |
402 } | 403 } |
403 } | 404 } |
404 | 405 |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1539 } | 1540 } |
1540 | 1541 |
1541 | 1542 |
1542 #if DEBUG | 1543 #if DEBUG |
1543 void CompilationInfo::PrintAstForTesting() { | 1544 void CompilationInfo::PrintAstForTesting() { |
1544 PrintF("--- Source from AST ---\n%s\n", | 1545 PrintF("--- Source from AST ---\n%s\n", |
1545 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1546 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
1546 } | 1547 } |
1547 #endif | 1548 #endif |
1548 } } // namespace v8::internal | 1549 } } // namespace v8::internal |
OLD | NEW |