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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1698783002: [turbofan] Lower object and array literals in JSCreateLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Work-around for hole NaN on x86. Created 4 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/js-create-lowering.cc ('k') | src/flag-definitions.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 606
607 struct TypedLoweringPhase { 607 struct TypedLoweringPhase {
608 static const char* phase_name() { return "typed lowering"; } 608 static const char* phase_name() { return "typed lowering"; }
609 609
610 void Run(PipelineData* data, Zone* temp_zone) { 610 void Run(PipelineData* data, Zone* temp_zone) {
611 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 611 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
612 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 612 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
613 data->common()); 613 data->common());
614 LoadElimination load_elimination(&graph_reducer); 614 LoadElimination load_elimination(&graph_reducer);
615 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); 615 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph());
616 MaybeHandle<LiteralsArray> literals_array =
617 data->info()->is_native_context_specializing()
618 ? handle(data->info()->closure()->literals(), data->isolate())
619 : MaybeHandle<LiteralsArray>();
616 JSCreateLowering create_lowering( 620 JSCreateLowering create_lowering(
617 &graph_reducer, data->info()->dependencies(), data->jsgraph()); 621 &graph_reducer, data->info()->dependencies(), data->jsgraph(),
622 literals_array, temp_zone);
618 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; 623 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags;
619 if (data->info()->is_deoptimization_enabled()) { 624 if (data->info()->is_deoptimization_enabled()) {
620 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; 625 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled;
621 } 626 }
622 if (data->info()->shared_info()->HasBytecodeArray()) { 627 if (data->info()->shared_info()->HasBytecodeArray()) {
623 typed_lowering_flags |= JSTypedLowering::kDisableBinaryOpReduction; 628 typed_lowering_flags |= JSTypedLowering::kDisableBinaryOpReduction;
624 } 629 }
625 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), 630 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(),
626 typed_lowering_flags, data->jsgraph(), 631 typed_lowering_flags, data->jsgraph(),
627 temp_zone); 632 temp_zone);
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 tcf << AsC1VRegisterAllocationData("CodeGen", 1498 tcf << AsC1VRegisterAllocationData("CodeGen",
1494 data->register_allocation_data()); 1499 data->register_allocation_data());
1495 } 1500 }
1496 1501
1497 data->DeleteRegisterAllocationZone(); 1502 data->DeleteRegisterAllocationZone();
1498 } 1503 }
1499 1504
1500 } // namespace compiler 1505 } // namespace compiler
1501 } // namespace internal 1506 } // namespace internal
1502 } // namespace v8 1507 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698