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

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

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/schedule.h ('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 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class Heap; 14 class Heap;
15 15
16 namespace compiler { 16 namespace compiler {
17 17
18 // Forward declarations. 18 // Forward declarations.
19 class JSGraph; 19 class JSGraph;
20 class MachineOperatorBuilder; 20 class MachineOperatorBuilder;
21 21
22 class SimplifiedOperatorReducer V8_FINAL : public Reducer { 22 class SimplifiedOperatorReducer FINAL : public Reducer {
23 public: 23 public:
24 SimplifiedOperatorReducer(JSGraph* jsgraph, MachineOperatorBuilder* machine) 24 SimplifiedOperatorReducer(JSGraph* jsgraph, MachineOperatorBuilder* machine)
25 : jsgraph_(jsgraph), machine_(machine) {} 25 : jsgraph_(jsgraph), machine_(machine) {}
26 virtual ~SimplifiedOperatorReducer(); 26 virtual ~SimplifiedOperatorReducer();
27 27
28 virtual Reduction Reduce(Node* node) V8_OVERRIDE; 28 virtual Reduction Reduce(Node* node) OVERRIDE;
29 29
30 private: 30 private:
31 Reduction Change(Node* node, Operator* op, Node* a); 31 Reduction Change(Node* node, Operator* op, Node* a);
32 Reduction ReplaceFloat64(double value); 32 Reduction ReplaceFloat64(double value);
33 Reduction ReplaceInt32(int32_t value); 33 Reduction ReplaceInt32(int32_t value);
34 Reduction ReplaceUint32(uint32_t value) { 34 Reduction ReplaceUint32(uint32_t value) {
35 return ReplaceInt32(static_cast<int32_t>(value)); 35 return ReplaceInt32(static_cast<int32_t>(value));
36 } 36 }
37 Reduction ReplaceNumber(double value); 37 Reduction ReplaceNumber(double value);
38 Reduction ReplaceNumber(int32_t value); 38 Reduction ReplaceNumber(int32_t value);
39 39
40 Graph* graph() const; 40 Graph* graph() const;
41 Heap* heap() const; 41 Heap* heap() const;
42 JSGraph* jsgraph() const { return jsgraph_; } 42 JSGraph* jsgraph() const { return jsgraph_; }
43 MachineOperatorBuilder* machine() const { return machine_; } 43 MachineOperatorBuilder* machine() const { return machine_; }
44 44
45 JSGraph* jsgraph_; 45 JSGraph* jsgraph_;
46 MachineOperatorBuilder* machine_; 46 MachineOperatorBuilder* machine_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); 48 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer);
49 }; 49 };
50 50
51 } // namespace compiler 51 } // namespace compiler
52 } // namespace internal 52 } // namespace internal
53 } // namespace v8 53 } // namespace v8
54 54
55 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ 55 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/schedule.h ('k') | src/compiler/source-position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698