Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index b521dece71f644e9e2e88948ad0de5381fba0330..40b02dd59d849fa1955fa6e8e45214155a6d46c7 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -134,6 +134,18 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::BinaryOperation(Token::Value op, |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { |
+ Output(Bytecode::kLogicalNot); |
+ return *this; |
+} |
+ |
+ |
+BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { |
+ Output(Bytecode::kTypeOf); |
+ return *this; |
+} |
+ |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( |
Token::Value op, Register reg, LanguageMode language_mode) { |
if (!is_sloppy(language_mode)) { |
@@ -299,6 +311,7 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToBoolean() { |
UNREACHABLE(); |
case Bytecode::kLdaTrue: |
case Bytecode::kLdaFalse: |
+ case Bytecode::kLogicalNot: |
case Bytecode::kTestEqual: |
case Bytecode::kTestNotEqual: |
case Bytecode::kTestEqualStrict: |