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

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

Issue 2651833003: [wasm] Move protected instruction info to RelocInfo (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into trap-relocinfo Created 3 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/code-generator.cc ('k') | src/compiler/wasm-compiler.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 <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 } 1416 }
1417 } 1417 }
1418 }; 1418 };
1419 1419
1420 1420
1421 struct GenerateCodePhase { 1421 struct GenerateCodePhase {
1422 static const char* phase_name() { return "generate code"; } 1422 static const char* phase_name() { return "generate code"; }
1423 1423
1424 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) { 1424 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) {
1425 CodeGenerator generator(data->frame(), linkage, data->sequence(), 1425 CodeGenerator generator(data->frame(), linkage, data->sequence(),
1426 data->info(), data->protected_instructions()); 1426 data->info());
1427 data->set_code(generator.GenerateCode()); 1427 data->set_code(generator.GenerateCode());
1428 } 1428 }
1429 }; 1429 };
1430 1430
1431 1431
1432 struct PrintGraphPhase { 1432 struct PrintGraphPhase {
1433 static const char* phase_name() { return nullptr; } 1433 static const char* phase_name() { return nullptr; }
1434 1434
1435 void Run(PipelineData* data, Zone* temp_zone, const char* phase) { 1435 void Run(PipelineData* data, Zone* temp_zone, const char* phase) {
1436 CompilationInfo* info = data->info(); 1436 CompilationInfo* info = data->info();
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2016 data->DeleteRegisterAllocationZone(); 2016 data->DeleteRegisterAllocationZone();
2017 } 2017 }
2018 2018
2019 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2019 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2020 2020
2021 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2021 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2022 2022
2023 } // namespace compiler 2023 } // namespace compiler
2024 } // namespace internal 2024 } // namespace internal
2025 } // namespace v8 2025 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/wasm-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698