Index: src/runtime/runtime-interpreter.cc |
diff --git a/src/runtime/runtime-interpreter.cc b/src/runtime/runtime-interpreter.cc |
index 3280a854cfdcea1fb6b3219763b5568c9081a39b..c22e6808c3e19c763b35ab61d559b236638c5116 100644 |
--- a/src/runtime/runtime-interpreter.cc |
+++ b/src/runtime/runtime-interpreter.cc |
@@ -175,9 +175,8 @@ RUNTIME_FUNCTION(Runtime_InterpreterForInPrepare) { |
cache_array = Handle<FixedArray>::cast(cache_type); |
cache_length = cache_array->length(); |
- STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
- if (receiver_map->instance_type() <= LAST_JS_PROXY_TYPE) { |
- DCHECK_GE(receiver_map->instance_type(), LAST_JS_PROXY_TYPE); |
+ STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
+ if (receiver_map->instance_type() == JS_PROXY_TYPE) { |
// Zero indicates proxy |
cache_type = Handle<Object>(Smi::FromInt(0), isolate); |
} else { |