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

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, 8 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 | « src/compiler.h ('k') | src/compiler/access-builder.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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/access-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698