| Index: src/crankshaft/hydrogen-instructions.cc
|
| diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc
|
| index a9c6228cd35c096636a22d9e2358434dfd48e5cc..729fc588bcb7c2bc3373d116a321c49098e0fe2a 100644
|
| --- a/src/crankshaft/hydrogen-instructions.cc
|
| +++ b/src/crankshaft/hydrogen-instructions.cc
|
| @@ -1283,7 +1283,6 @@ namespace {
|
| String* TypeOfString(HConstant* constant, Isolate* isolate) {
|
| Heap* heap = isolate->heap();
|
| if (constant->HasNumberValue()) return heap->number_string();
|
| - if (constant->IsUndetectable()) return heap->undefined_string();
|
| if (constant->HasStringValue()) return heap->string_string();
|
| switch (constant->GetInstanceType()) {
|
| case ODDBALL_TYPE: {
|
| @@ -1312,6 +1311,7 @@ String* TypeOfString(HConstant* constant, Isolate* isolate) {
|
| return nullptr;
|
| }
|
| default:
|
| + if (constant->IsUndetectable()) return heap->undefined_string();
|
| if (constant->IsCallable()) return heap->function_string();
|
| return heap->object_string();
|
| }
|
|
|