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

Side by Side Diff: src/compiler.cc

Issue 1021713005: [turbofan]: Integrate basic type feedback for property accesses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if (FLAG_trace_opt) { 411 if (FLAG_trace_opt) {
412 OFStream os(stdout); 412 OFStream os(stdout);
413 os << "[compiling method " << Brief(*info()->closure()) 413 os << "[compiling method " << Brief(*info()->closure())
414 << " using TurboFan"; 414 << " using TurboFan";
415 if (info()->is_osr()) os << " OSR"; 415 if (info()->is_osr()) os << " OSR";
416 os << "]" << std::endl; 416 os << "]" << std::endl;
417 } 417 }
418 418
419 if (info()->shared_info()->asm_function()) { 419 if (info()->shared_info()->asm_function()) {
420 info()->MarkAsContextSpecializing(); 420 info()->MarkAsContextSpecializing();
421 } else if (FLAG_turbo_type_feedback) {
Michael Starzinger 2015/03/24 09:06:39 Can we please move this into the CompilationInfo c
titzer 2015/03/24 10:49:31 As discussed in person, we only want to enable typ
Michael Starzinger 2015/03/24 12:11:17 Acknowledged.
422 info()->MarkAsTypeFeedbackEnabled();
421 } 423 }
422 424
423 Timer t(this, &time_taken_to_create_graph_); 425 Timer t(this, &time_taken_to_create_graph_);
424 compiler::Pipeline pipeline(info()); 426 compiler::Pipeline pipeline(info());
425 pipeline.GenerateCode(); 427 pipeline.GenerateCode();
426 if (!info()->code().is_null()) { 428 if (!info()->code().is_null()) {
427 return SetLastStatus(SUCCEEDED); 429 return SetLastStatus(SUCCEEDED);
428 } 430 }
429 } 431 }
430 432
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 parse_info_ = nullptr; 1567 parse_info_ = nullptr;
1566 } 1568 }
1567 1569
1568 #if DEBUG 1570 #if DEBUG
1569 void CompilationInfo::PrintAstForTesting() { 1571 void CompilationInfo::PrintAstForTesting() {
1570 PrintF("--- Source from AST ---\n%s\n", 1572 PrintF("--- Source from AST ---\n%s\n",
1571 PrettyPrinter(isolate(), zone()).PrintProgram(function())); 1573 PrettyPrinter(isolate(), zone()).PrintProgram(function()));
1572 } 1574 }
1573 #endif 1575 #endif
1574 } } // namespace v8::internal 1576 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698