Index: test/cctest/compiler/test-js-typed-lowering.cc |
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc |
index 0bee87ac83e729d9cf0928291667f8b010f377f6..9d0d720d26afba20504d5992f101ad83a7872464 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -506,7 +506,8 @@ TEST(JSToBoolean) { |
TEST(JSToBoolean_replacement) { |
JSTypedLoweringTester R; |
- Type* types[] = {Type::Null(), Type::Undefined(), Type::Boolean(), |
+ Type* types[] = {Type::Null(), Type::Undefined(), |
+ Type::Boolean(), Type::Number(), |
Type::DetectableObject(), Type::Undetectable()}; |
for (size_t i = 0; i < arraysize(types); i++) { |
@@ -521,6 +522,8 @@ TEST(JSToBoolean_replacement) { |
if (types[i]->Is(Type::Boolean())) { |
CHECK_EQ(n, r); |
+ } else if (types[i]->Is(Type::Number())) { |
+ CHECK_EQ(IrOpcode::kBooleanNot, r->opcode()); |
titzer
2014/09/03 11:24:49
Check it's actually BooleanNot(NumberEqual(x, 0))
Michael Starzinger
2014/09/03 11:33:00
As discussed offline: This is already checked in t
|
} else { |
CHECK_EQ(IrOpcode::kHeapConstant, r->opcode()); |
} |