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

Unified Diff: src/compiler/pipeline.cc

Issue 2398603002: [turbofan][x64] Improve code generation for external reference access. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 53c138fe238f3612838cd786b6ebca44345d5fe7..9e61eeed5ea0878c8a1334e93cf24d4394949e67 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -1255,7 +1255,14 @@ struct InstructionSelectionPhase {
data->schedule(), data->source_positions(), data->frame(),
data->info()->is_source_positions_enabled()
? InstructionSelector::kAllSourcePositions
- : InstructionSelector::kCallSourcePositions);
+ : InstructionSelector::kCallSourcePositions,
+ InstructionSelector::SupportedFeatures(),
+ FLAG_turbo_instruction_scheduling
+ ? InstructionSelector::kEnableScheduling
+ : InstructionSelector::kDisableScheduling,
+ data->info()->will_serialize()
+ ? InstructionSelector::kEnableSerialization
+ : InstructionSelector::kDisableSerialization);
if (!selector.SelectInstructions()) {
data->set_compilation_failed();
}
@@ -1661,6 +1668,7 @@ Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate,
Code::Flags flags,
const char* debug_name) {
CompilationInfo info(CStrVector(debug_name), isolate, graph->zone(), flags);
+ if (isolate->serializer_enabled()) info.PrepareForSerializing();
// Construct a pipeline for scheduling and code generation.
ZonePool zone_pool(isolate->allocator());
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698