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

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

Issue 2199753002: [turbofan] Inline bunch of ArrayBuffer view accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment. Created 4 years, 4 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/js-builtin-reducer.cc ('k') | src/compiler/js-graph.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Accesses the heap to inspect the object and determine whether one of the 66 // Accesses the heap to inspect the object and determine whether one of the
67 // canonicalized globals or a number constant should be returned. 67 // canonicalized globals or a number constant should be returned.
68 Node* Constant(Handle<Object> value); 68 Node* Constant(Handle<Object> value);
69 69
70 // Creates a NumberConstant node, usually canonicalized. 70 // Creates a NumberConstant node, usually canonicalized.
71 Node* Constant(double value); 71 Node* Constant(double value);
72 72
73 // Creates a NumberConstant node, usually canonicalized. 73 // Creates a NumberConstant node, usually canonicalized.
74 Node* Constant(int32_t value); 74 Node* Constant(int32_t value);
75 75
76 // Creates a NumberConstant node, usually canonicalized.
77 Node* Constant(uint32_t value);
78
76 // Creates a Int32Constant node, usually canonicalized. 79 // Creates a Int32Constant node, usually canonicalized.
77 Node* Int32Constant(int32_t value); 80 Node* Int32Constant(int32_t value);
78 Node* Uint32Constant(uint32_t value) { 81 Node* Uint32Constant(uint32_t value) {
79 return Int32Constant(bit_cast<int32_t>(value)); 82 return Int32Constant(bit_cast<int32_t>(value));
80 } 83 }
81 84
82 // Creates a HeapConstant node for either true or false. 85 // Creates a HeapConstant node for either true or false.
83 Node* BooleanConstant(bool is_true) { 86 Node* BooleanConstant(bool is_true) {
84 return is_true ? TrueConstant() : FalseConstant(); 87 return is_true ? TrueConstant() : FalseConstant();
85 } 88 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 Node* NumberConstant(double value); 184 Node* NumberConstant(double value);
182 185
183 DISALLOW_COPY_AND_ASSIGN(JSGraph); 186 DISALLOW_COPY_AND_ASSIGN(JSGraph);
184 }; 187 };
185 188
186 } // namespace compiler 189 } // namespace compiler
187 } // namespace internal 190 } // namespace internal
188 } // namespace v8 191 } // namespace v8
189 192
190 #endif 193 #endif
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698