Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index d3d64bf68eaa61370503cbf649e8544d9c0b24d4..090f88423a70c1830dca40be5434556a10772464 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -403,18 +403,6 @@ class CodeStub BASE_EMBEDDED { |
void GenerateAssembly(CodeStubAssembler* assembler) const override; \ |
DEFINE_CODE_STUB(NAME, SUPER) |
-#define DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(NAME, SUPER) \ |
- public: \ |
- static compiler::Node* Generate(CodeStubAssembler* assembler, \ |
- compiler::Node* left, compiler::Node* right, \ |
- compiler::Node* context); \ |
- void GenerateAssembly(CodeStubAssembler* assembler) const override { \ |
- assembler->Return(Generate(assembler, assembler->Parameter(0), \ |
- assembler->Parameter(1), \ |
- assembler->Parameter(2))); \ |
- } \ |
- DEFINE_CODE_STUB(NAME, SUPER) |
- |
#define DEFINE_HANDLER_CODE_STUB(NAME, SUPER) \ |
public: \ |
Handle<Code> GenerateCode() override; \ |
@@ -694,7 +682,7 @@ class AddStub final : public TurboFanCodeStub { |
explicit AddStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(Add, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(Add, TurboFanCodeStub); |
}; |
class SubtractStub final : public TurboFanCodeStub { |
@@ -702,7 +690,7 @@ class SubtractStub final : public TurboFanCodeStub { |
explicit SubtractStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(Subtract, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(Subtract, TurboFanCodeStub); |
}; |
class MultiplyStub final : public TurboFanCodeStub { |
@@ -710,7 +698,7 @@ class MultiplyStub final : public TurboFanCodeStub { |
explicit MultiplyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(Multiply, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(Multiply, TurboFanCodeStub); |
}; |
class DivideStub final : public TurboFanCodeStub { |
@@ -718,7 +706,7 @@ class DivideStub final : public TurboFanCodeStub { |
explicit DivideStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(Divide, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(Divide, TurboFanCodeStub); |
}; |
class ModulusStub final : public TurboFanCodeStub { |
@@ -726,7 +714,7 @@ class ModulusStub final : public TurboFanCodeStub { |
explicit ModulusStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(Modulus, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(Modulus, TurboFanCodeStub); |
}; |
class ShiftRightStub final : public TurboFanCodeStub { |
@@ -734,7 +722,7 @@ class ShiftRightStub final : public TurboFanCodeStub { |
explicit ShiftRightStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(ShiftRight, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(ShiftRight, TurboFanCodeStub); |
}; |
class ShiftRightLogicalStub final : public TurboFanCodeStub { |
@@ -743,7 +731,7 @@ class ShiftRightLogicalStub final : public TurboFanCodeStub { |
: TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(ShiftRightLogical, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(ShiftRightLogical, TurboFanCodeStub); |
}; |
class ShiftLeftStub final : public TurboFanCodeStub { |
@@ -751,7 +739,7 @@ class ShiftLeftStub final : public TurboFanCodeStub { |
explicit ShiftLeftStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(ShiftLeft, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(ShiftLeft, TurboFanCodeStub); |
}; |
class BitwiseAndStub final : public TurboFanCodeStub { |
@@ -759,7 +747,7 @@ class BitwiseAndStub final : public TurboFanCodeStub { |
explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseAnd, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub); |
}; |
class BitwiseOrStub final : public TurboFanCodeStub { |
@@ -767,7 +755,7 @@ class BitwiseOrStub final : public TurboFanCodeStub { |
explicit BitwiseOrStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseOr, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(BitwiseOr, TurboFanCodeStub); |
}; |
class BitwiseXorStub final : public TurboFanCodeStub { |
@@ -775,7 +763,7 @@ class BitwiseXorStub final : public TurboFanCodeStub { |
explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
- DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseXor, TurboFanCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub); |
}; |
class IncStub final : public TurboFanCodeStub { |