Index: src/interpreter/interpreter.h |
diff --git a/src/interpreter/interpreter.h b/src/interpreter/interpreter.h |
index d774d8bb7de14afc4e9f218ddd576944afbf2cff..0cfae7904ea693f4925d575df1a8ee349b7040bc 100644 |
--- a/src/interpreter/interpreter.h |
+++ b/src/interpreter/interpreter.h |
@@ -73,14 +73,13 @@ class Interpreter { |
// Generates code to perform the binary operation via |callable|. |
void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); |
- // Generates code to perform the binary operation via |function_id|. |
- void DoBinaryOp(Runtime::FunctionId function_id, |
- InterpreterAssembler* assembler); |
- |
// Generates code to perform the binary operation via |Generator|. |
template <class Generator> |
void DoBinaryOp(InterpreterAssembler* assembler); |
+ // Generates code to perform the unary operation via |callable|. |
+ void DoUnaryOp(Callable callable, InterpreterAssembler* assembler); |
+ |
// Generates code to perform the unary operation via |Generator|. |
template <class Generator> |
void DoUnaryOp(InterpreterAssembler* assembler); |
@@ -125,12 +124,6 @@ class Interpreter { |
// Generates code to perform a constructor call. |
void DoCallConstruct(InterpreterAssembler* assembler); |
- // Generates code to perform a type conversion. |
- void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); |
- |
- // Generates code to perform logical-not on boolean |value|. |
- void DoLogicalNotOp(compiler::Node* value, InterpreterAssembler* assembler); |
- |
// Generates code to perform delete via function_id. |
void DoDelete(Runtime::FunctionId function_id, |
InterpreterAssembler* assembler); |
@@ -143,6 +136,16 @@ class Interpreter { |
void DoStoreLookupSlot(LanguageMode language_mode, |
InterpreterAssembler* assembler); |
+ // Generates code to perform logical-not on boolean |value| and returns the |
+ // result. |
+ compiler::Node* BuildLogicalNot(compiler::Node* value, |
+ InterpreterAssembler* assembler); |
+ |
+ // Generates code to convert |value| to a boolean and returns the |
+ // result. |
+ compiler::Node* BuildToBoolean(compiler::Node* value, |
+ InterpreterAssembler* assembler); |
+ |
uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const; |
// Get dispatch table index of bytecode. |