Commit 72ccad7d authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[interpreter] Remove unused helper generators.

BUG=v8:6116

Change-Id: I4e521d2fb3964e0d3615ef1deea6b3418fc77c50
Reviewed-on: https://chromium-review.googlesource.com/458400
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44051}
parent 4a5d1e25
...@@ -338,15 +338,6 @@ class CodeStub BASE_EMBEDDED { ...@@ -338,15 +338,6 @@ class CodeStub BASE_EMBEDDED {
void GenerateAssembly(compiler::CodeAssemblerState* state) const override; \ void GenerateAssembly(compiler::CodeAssemblerState* state) const override; \
DEFINE_CODE_STUB(NAME, SUPER) DEFINE_CODE_STUB(NAME, SUPER)
#define DEFINE_TURBOFAN_UNARY_OP_CODE_STUB_WITH_FEEDBACK(NAME, SUPER) \
public: \
static compiler::Node* Generate( \
CodeStubAssembler* assembler, compiler::Node* value, \
compiler::Node* context, compiler::Node* feedback_vector, \
compiler::Node* slot_id); \
void GenerateAssembly(compiler::CodeAssemblerState* state) const override; \
DEFINE_CODE_STUB(NAME, SUPER)
#define DEFINE_HANDLER_CODE_STUB(NAME, SUPER) \ #define DEFINE_HANDLER_CODE_STUB(NAME, SUPER) \
public: \ public: \
Handle<Code> GenerateCode() override; \ Handle<Code> GenerateCode() override; \
......
...@@ -45,11 +45,11 @@ class InterpreterGenerator { ...@@ -45,11 +45,11 @@ class InterpreterGenerator {
Node* slot, Node* slot,
Node* vector); Node* vector);
// Generates code to perform the binary operation via |Generator|. // Generates code to perform the binary operation via |generator|.
void DoBinaryOpWithFeedback(InterpreterAssembler* assembler, void DoBinaryOpWithFeedback(InterpreterAssembler* assembler,
BinaryOpGenerator generator); BinaryOpGenerator generator);
// Generates code to perform the comparison via |Generator| while gathering // Generates code to perform the |compare_op| comparison while gathering
// type feedback. // type feedback.
void DoCompareOpWithFeedback(Token::Value compare_op, void DoCompareOpWithFeedback(Token::Value compare_op,
InterpreterAssembler* assembler); InterpreterAssembler* assembler);
...@@ -59,16 +59,6 @@ class InterpreterGenerator { ...@@ -59,16 +59,6 @@ class InterpreterGenerator {
void DoBitwiseBinaryOp(Token::Value bitwise_op, void DoBitwiseBinaryOp(Token::Value bitwise_op,
InterpreterAssembler* assembler); InterpreterAssembler* assembler);
// Generates code to perform the binary operation via |Generator| using
// an immediate value rather the accumulator as the rhs operand.
template <class Generator>
void DoBinaryOpWithImmediate(InterpreterAssembler* assembler);
// Generates code to perform the unary operation via |Generator| while
// gatering type feedback.
template <class Generator>
void DoUnaryOpWithFeedback(InterpreterAssembler* assembler);
// Generates code to perform the comparison operation associated with // Generates code to perform the comparison operation associated with
// |compare_op|. // |compare_op|.
void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler);
...@@ -1562,19 +1552,6 @@ Node* InterpreterGenerator::BuildUnaryOp(Callable callable, ...@@ -1562,19 +1552,6 @@ Node* InterpreterGenerator::BuildUnaryOp(Callable callable,
return __ CallStub(callable.descriptor(), target, context, accumulator); return __ CallStub(callable.descriptor(), target, context, accumulator);
} }
template <class Generator>
void InterpreterGenerator::DoUnaryOpWithFeedback(
InterpreterAssembler* assembler) {
Node* value = __ GetAccumulator();
Node* context = __ GetContext();
Node* slot_index = __ BytecodeOperandIdx(0);
Node* feedback_vector = __ LoadFeedbackVector();
Node* result = Generator::Generate(assembler, value, context, feedback_vector,
slot_index);
__ SetAccumulator(result);
__ Dispatch();
}
// ToName // ToName
// //
// Convert the object referenced by the accumulator to a name. // Convert the object referenced by the accumulator to a name.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment