| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index f1759ee3601058c46acd9112c8dcc25efb8b67e7..68d18c7a93860f73b2679fc2c7258f657a7b8fab 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -2873,7 +2873,9 @@ class ToBooleanStub: public HydrogenCodeStub {
|
|
|
| bool UpdateStatus(Handle<Object> object);
|
| bool NeedsMap() const;
|
| - bool CanBeUndetectable() const;
|
| + bool CanBeUndetectable() const {
|
| + return Contains(ToBooleanStub::SPEC_OBJECT);
|
| + }
|
| bool IsGeneric() const { return ToIntegral() == Generic().ToIntegral(); }
|
|
|
| static Types Generic() { return Types((1 << NUMBER_OF_TYPES) - 1); }
|
|
|