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

Side by Side Diff: src/compiler/simplified-operator-reducer.h

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/simplified-operator.cc ('k') | src/compiler/source-position.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 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class Factory; 15 class Factory;
16 class Heap; 16 class Heap;
17 17
18 namespace compiler { 18 namespace compiler {
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class JSGraph; 21 class JSGraph;
22 class MachineOperatorBuilder; 22 class MachineOperatorBuilder;
23 23
24 class SimplifiedOperatorReducer FINAL : public Reducer { 24 class SimplifiedOperatorReducer final : public Reducer {
25 public: 25 public:
26 explicit SimplifiedOperatorReducer(JSGraph* jsgraph); 26 explicit SimplifiedOperatorReducer(JSGraph* jsgraph);
27 ~SimplifiedOperatorReducer() FINAL; 27 ~SimplifiedOperatorReducer() final;
28 28
29 Reduction Reduce(Node* node) FINAL; 29 Reduction Reduce(Node* node) final;
30 30
31 private: 31 private:
32 Reduction Change(Node* node, const Operator* op, Node* a); 32 Reduction Change(Node* node, const Operator* op, Node* a);
33 Reduction ReplaceFloat64(double value); 33 Reduction ReplaceFloat64(double value);
34 Reduction ReplaceInt32(int32_t value); 34 Reduction ReplaceInt32(int32_t value);
35 Reduction ReplaceUint32(uint32_t value) { 35 Reduction ReplaceUint32(uint32_t value) {
36 return ReplaceInt32(bit_cast<int32_t>(value)); 36 return ReplaceInt32(bit_cast<int32_t>(value));
37 } 37 }
38 Reduction ReplaceNumber(double value); 38 Reduction ReplaceNumber(double value);
39 Reduction ReplaceNumber(int32_t value); 39 Reduction ReplaceNumber(int32_t value);
40 40
41 Graph* graph() const; 41 Graph* graph() const;
42 Factory* factory() const; 42 Factory* factory() const;
43 JSGraph* jsgraph() const { return jsgraph_; } 43 JSGraph* jsgraph() const { return jsgraph_; }
44 MachineOperatorBuilder* machine() const; 44 MachineOperatorBuilder* machine() const;
45 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 45 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
46 46
47 JSGraph* jsgraph_; 47 JSGraph* jsgraph_;
48 SimplifiedOperatorBuilder simplified_; 48 SimplifiedOperatorBuilder simplified_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); 50 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer);
51 }; 51 };
52 52
53 } // namespace compiler 53 } // namespace compiler
54 } // namespace internal 54 } // namespace internal
55 } // namespace v8 55 } // namespace v8
56 56
57 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ 57 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/source-position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698