Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index b468e687c8a60d60e3a30eefec2807619d970a75..22595e03b3f1e46e249ed86fcee5943d7889a550 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -402,18 +402,6 @@ |
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; \ |
@@ -693,7 +681,7 @@ |
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 { |
@@ -701,7 +689,7 @@ |
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 { |
@@ -709,7 +697,7 @@ |
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 { |
@@ -717,7 +705,7 @@ |
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 { |
@@ -725,7 +713,7 @@ |
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 { |
@@ -733,7 +721,7 @@ |
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 { |
@@ -742,7 +730,7 @@ |
: 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 { |
@@ -750,7 +738,7 @@ |
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 { |
@@ -758,7 +746,7 @@ |
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 { |
@@ -766,7 +754,7 @@ |
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 { |
@@ -774,7 +762,7 @@ |
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 { |