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

Side by Side Diff: src/compiler.cc

Issue 899433005: [turbofan] Split pure nodes in the scheduler if beneficial. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments Created 5 years, 10 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/common-operator.cc » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/ast-this-access-visitor.h" 10 #include "src/ast-this-access-visitor.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // compiling later on. This means that code recompiled with deoptimization 179 // compiling later on. This means that code recompiled with deoptimization
180 // support won't be "equivalent" (as defined by SharedFunctionInfo:: 180 // support won't be "equivalent" (as defined by SharedFunctionInfo::
181 // EnableDeoptimizationSupport), so it will replace the old code and all 181 // EnableDeoptimizationSupport), so it will replace the old code and all
182 // its type feedback. To avoid this, always compile functions in the snapshot 182 // its type feedback. To avoid this, always compile functions in the snapshot
183 // with deoptimization support. 183 // with deoptimization support.
184 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); 184 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport();
185 185
186 if (isolate_->debug()->is_active()) MarkAsDebug(); 186 if (isolate_->debug()->is_active()) MarkAsDebug();
187 if (FLAG_context_specialization) MarkAsContextSpecializing(); 187 if (FLAG_context_specialization) MarkAsContextSpecializing();
188 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); 188 if (FLAG_turbo_inlining) MarkAsInliningEnabled();
189 if (FLAG_turbo_splitting) MarkAsSplittingEnabled();
189 if (FLAG_turbo_types) MarkAsTypingEnabled(); 190 if (FLAG_turbo_types) MarkAsTypingEnabled();
190 191
191 if (!shared_info_.is_null()) { 192 if (!shared_info_.is_null()) {
192 DCHECK(strict_mode() == SLOPPY); 193 DCHECK(strict_mode() == SLOPPY);
193 SetStrictMode(shared_info_->strict_mode()); 194 SetStrictMode(shared_info_->strict_mode());
194 } 195 }
195 bailout_reason_ = kNoReason; 196 bailout_reason_ = kNoReason;
196 197
197 if (!shared_info().is_null() && shared_info()->is_compiled()) { 198 if (!shared_info().is_null() && shared_info()->is_compiled()) {
198 // We should initialize the CompilationInfo feedback vector from the 199 // We should initialize the CompilationInfo feedback vector from the
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 } 1602 }
1602 1603
1603 1604
1604 #if DEBUG 1605 #if DEBUG
1605 void CompilationInfo::PrintAstForTesting() { 1606 void CompilationInfo::PrintAstForTesting() {
1606 PrintF("--- Source from AST ---\n%s\n", 1607 PrintF("--- Source from AST ---\n%s\n",
1607 PrettyPrinter(isolate(), zone()).PrintProgram(function())); 1608 PrettyPrinter(isolate(), zone()).PrintProgram(function()));
1608 } 1609 }
1609 #endif 1610 #endif
1610 } } // namespace v8::internal 1611 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698