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

Side by Side Diff: src/compiler/js-graph.h

Issue 681263004: Run ControlReducer early after graph building, then again later. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix the glitch. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/pipeline.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 #ifndef V8_COMPILER_JS_GRAPH_H_ 5 #ifndef V8_COMPILER_JS_GRAPH_H_
6 #define V8_COMPILER_JS_GRAPH_H_ 6 #define V8_COMPILER_JS_GRAPH_H_
7 7
8 #include "src/compiler/common-node-cache.h" 8 #include "src/compiler/common-node-cache.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Creates a NumberConstant node, usually canonicalized. 61 // Creates a NumberConstant node, usually canonicalized.
62 Node* Constant(int32_t value); 62 Node* Constant(int32_t value);
63 63
64 // Creates a Int32Constant node, usually canonicalized. 64 // Creates a Int32Constant node, usually canonicalized.
65 Node* Int32Constant(int32_t value); 65 Node* Int32Constant(int32_t value);
66 Node* Uint32Constant(uint32_t value) { 66 Node* Uint32Constant(uint32_t value) {
67 return Int32Constant(bit_cast<int32_t>(value)); 67 return Int32Constant(bit_cast<int32_t>(value));
68 } 68 }
69 69
70 // Creates a HeapConstant node for either true or false.
71 Node* BooleanConstant(bool is_true) {
72 return is_true ? TrueConstant() : FalseConstant();
73 }
74
70 // Creates a Int64Constant node, usually canonicalized. 75 // Creates a Int64Constant node, usually canonicalized.
71 Node* Int64Constant(int64_t value); 76 Node* Int64Constant(int64_t value);
72 Node* Uint64Constant(uint64_t value) { 77 Node* Uint64Constant(uint64_t value) {
73 return Int64Constant(bit_cast<int64_t>(value)); 78 return Int64Constant(bit_cast<int64_t>(value));
74 } 79 }
75 80
76 // Creates a Int32Constant/Int64Constant node, depending on the word size of 81 // Creates a Int32Constant/Int64Constant node, depending on the word size of
77 // the target machine. 82 // the target machine.
78 // TODO(turbofan): Code using Int32Constant/Int64Constant to store pointer 83 // TODO(turbofan): Code using Int32Constant/Int64Constant to store pointer
79 // constants is probably not serializable. 84 // constants is probably not serializable.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Factory* factory() { return isolate()->factory(); } 135 Factory* factory() { return isolate()->factory(); }
131 136
132 DISALLOW_COPY_AND_ASSIGN(JSGraph); 137 DISALLOW_COPY_AND_ASSIGN(JSGraph);
133 }; 138 };
134 139
135 } // namespace compiler 140 } // namespace compiler
136 } // namespace internal 141 } // namespace internal
137 } // namespace v8 142 } // namespace v8
138 143
139 #endif 144 #endif
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698