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

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

Issue 1406113008: [turbofan] Fix inlining with --trace-turbo flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 SourcePositionWrapper(Reducer* reducer, SourcePositionTable* table) 386 SourcePositionWrapper(Reducer* reducer, SourcePositionTable* table)
387 : reducer_(reducer), table_(table) {} 387 : reducer_(reducer), table_(table) {}
388 ~SourcePositionWrapper() final {} 388 ~SourcePositionWrapper() final {}
389 389
390 Reduction Reduce(Node* node) final { 390 Reduction Reduce(Node* node) final {
391 SourcePosition const pos = table_->GetSourcePosition(node); 391 SourcePosition const pos = table_->GetSourcePosition(node);
392 SourcePositionTable::Scope position(table_, pos); 392 SourcePositionTable::Scope position(table_, pos);
393 return reducer_->Reduce(node); 393 return reducer_->Reduce(node);
394 } 394 }
395 395
396 void Finalize() final { reducer_->Finalize(); }
397
396 private: 398 private:
397 Reducer* const reducer_; 399 Reducer* const reducer_;
398 SourcePositionTable* const table_; 400 SourcePositionTable* const table_;
399 401
400 DISALLOW_COPY_AND_ASSIGN(SourcePositionWrapper); 402 DISALLOW_COPY_AND_ASSIGN(SourcePositionWrapper);
401 }; 403 };
402 404
403 405
404 class JSGraphReducer final : public GraphReducer { 406 class JSGraphReducer final : public GraphReducer {
405 public: 407 public:
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 tcf << AsC1VRegisterAllocationData("CodeGen", 1430 tcf << AsC1VRegisterAllocationData("CodeGen",
1429 data->register_allocation_data()); 1431 data->register_allocation_data());
1430 } 1432 }
1431 1433
1432 data->DeleteRegisterAllocationZone(); 1434 data->DeleteRegisterAllocationZone();
1433 } 1435 }
1434 1436
1435 } // namespace compiler 1437 } // namespace compiler
1436 } // namespace internal 1438 } // namespace internal
1437 } // namespace v8 1439 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698