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

Side by Side Diff: src/compiler/source-position.cc

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/source-position.h ('k') | src/compiler/typer.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 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/source-position.h" 5 #include "src/compiler/source-position.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/node-aux-data.h" 7 #include "src/compiler/node-aux-data.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 namespace compiler { 11 namespace compiler {
12 12
13 class SourcePositionTable::Decorator FINAL : public GraphDecorator { 13 class SourcePositionTable::Decorator final : public GraphDecorator {
14 public: 14 public:
15 explicit Decorator(SourcePositionTable* source_positions) 15 explicit Decorator(SourcePositionTable* source_positions)
16 : source_positions_(source_positions) {} 16 : source_positions_(source_positions) {}
17 17
18 void Decorate(Node* node, bool incomplete) FINAL { 18 void Decorate(Node* node, bool incomplete) final {
19 DCHECK(!source_positions_->current_position_.IsInvalid()); 19 DCHECK(!source_positions_->current_position_.IsInvalid());
20 source_positions_->table_.Set(node, source_positions_->current_position_); 20 source_positions_->table_.Set(node, source_positions_->current_position_);
21 } 21 }
22 22
23 private: 23 private:
24 SourcePositionTable* source_positions_; 24 SourcePositionTable* source_positions_;
25 }; 25 };
26 26
27 27
28 SourcePositionTable::SourcePositionTable(Graph* graph) 28 SourcePositionTable::SourcePositionTable(Graph* graph)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 << ":" << pos.raw(); 64 << ":" << pos.raw();
65 needs_comma = true; 65 needs_comma = true;
66 } 66 }
67 } 67 }
68 os << "}"; 68 os << "}";
69 } 69 }
70 70
71 } // namespace compiler 71 } // namespace compiler
72 } // namespace internal 72 } // namespace internal
73 } // namespace v8 73 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/source-position.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698