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

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

Issue 1846083005: Revert of [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/instruction-selector-impl.h ('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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // constants is probably not serializable. 89 // constants is probably not serializable.
90 Node* IntPtrConstant(intptr_t value) { 90 Node* IntPtrConstant(intptr_t value) {
91 return machine()->Is32() ? Int32Constant(static_cast<int32_t>(value)) 91 return machine()->Is32() ? Int32Constant(static_cast<int32_t>(value))
92 : Int64Constant(static_cast<int64_t>(value)); 92 : Int64Constant(static_cast<int64_t>(value));
93 } 93 }
94 template <typename T> 94 template <typename T>
95 Node* PointerConstant(T* value) { 95 Node* PointerConstant(T* value) {
96 return IntPtrConstant(bit_cast<intptr_t>(value)); 96 return IntPtrConstant(bit_cast<intptr_t>(value));
97 } 97 }
98 98
99 Node* RelocatableInt32Constant(int32_t value, RelocInfo::Mode rmode);
100 Node* RelocatableInt64Constant(int64_t value, RelocInfo::Mode rmode);
101 Node* RelocatableIntPtrConstant(intptr_t value, RelocInfo::Mode rmode);
102
103 // Creates a Float32Constant node, usually canonicalized. 99 // Creates a Float32Constant node, usually canonicalized.
104 Node* Float32Constant(float value); 100 Node* Float32Constant(float value);
105 101
106 // Creates a Float64Constant node, usually canonicalized. 102 // Creates a Float64Constant node, usually canonicalized.
107 Node* Float64Constant(double value); 103 Node* Float64Constant(double value);
108 104
109 // Creates an ExternalConstant node, usually canonicalized. 105 // Creates an ExternalConstant node, usually canonicalized.
110 Node* ExternalConstant(ExternalReference ref); 106 Node* ExternalConstant(ExternalReference ref);
111 Node* ExternalConstant(Runtime::FunctionId function_id); 107 Node* ExternalConstant(Runtime::FunctionId function_id);
112 108
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 Node* NumberConstant(double value); 163 Node* NumberConstant(double value);
168 164
169 DISALLOW_COPY_AND_ASSIGN(JSGraph); 165 DISALLOW_COPY_AND_ASSIGN(JSGraph);
170 }; 166 };
171 167
172 } // namespace compiler 168 } // namespace compiler
173 } // namespace internal 169 } // namespace internal
174 } // namespace v8 170 } // namespace v8
175 171
176 #endif 172 #endif
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698