summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/int64-lowering.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/int64-lowering.h')
-rw-r--r--deps/v8/src/compiler/int64-lowering.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/deps/v8/src/compiler/int64-lowering.h b/deps/v8/src/compiler/int64-lowering.h
index 98d090b2d4..e170a3fb16 100644
--- a/deps/v8/src/compiler/int64-lowering.h
+++ b/deps/v8/src/compiler/int64-lowering.h
@@ -21,21 +21,24 @@ class Signature;
namespace compiler {
-// Struct for CallDescriptors that need special lowering.
-struct V8_EXPORT_PRIVATE Int64LoweringSpecialCase {
- // Map from CallDescriptors that should be replaced, to the replacement
- // CallDescriptors.
- std::unordered_map<const CallDescriptor*, const CallDescriptor*> replacements;
+#if !V8_TARGET_ARCH_32_BIT
+class Int64Lowering {
+ public:
+ Int64Lowering(Graph* graph, MachineOperatorBuilder* machine,
+ CommonOperatorBuilder* common,
+ SimplifiedOperatorBuilder* simplified_, Zone* zone,
+ Signature<MachineRepresentation>* signature) {}
+
+ void LowerGraph() {}
};
+#else
class V8_EXPORT_PRIVATE Int64Lowering {
public:
- Int64Lowering(
- Graph* graph, MachineOperatorBuilder* machine,
- CommonOperatorBuilder* common, SimplifiedOperatorBuilder* simplified_,
- Zone* zone, const wasm::WasmModule* module,
- Signature<MachineRepresentation>* signature,
- std::unique_ptr<Int64LoweringSpecialCase> special_case = nullptr);
+ Int64Lowering(Graph* graph, MachineOperatorBuilder* machine,
+ CommonOperatorBuilder* common,
+ SimplifiedOperatorBuilder* simplified_, Zone* zone,
+ Signature<MachineRepresentation>* signature);
void LowerGraph();
@@ -71,8 +74,6 @@ class V8_EXPORT_PRIVATE Int64Lowering {
const CallDescriptor* LowerCallDescriptor(
const CallDescriptor* call_descriptor);
- Node* SetInt32Type(Node* node);
- Node* SetFloat64Type(Node* node);
void ReplaceNode(Node* old, Node* new_low, Node* new_high);
bool HasReplacementLow(Node* node);
@@ -95,16 +96,14 @@ class V8_EXPORT_PRIVATE Int64Lowering {
SimplifiedOperatorBuilder* simplified_;
Zone* zone_;
Signature<MachineRepresentation>* signature_;
- std::unique_ptr<Int64LoweringSpecialCase> special_case_;
std::vector<State> state_;
ZoneDeque<NodeState> stack_;
Replacement* replacements_;
Node* placeholder_;
- // Caches for node types, so we do not waste memory.
- Type int32_type_;
- Type float64_type_;
};
+#endif // V8_TARGET_ARCH_32_BIT
+
} // namespace compiler
} // namespace internal
} // namespace v8