Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 574) |
+++ src/factory.cc (working copy) |
@@ -685,7 +685,7 @@ |
} |
int instance_size = kPointerSize * internal_field_count; |
- InstanceType type = JS_OBJECT_TYPE; // initialize to a valid value |
+ InstanceType type = INVALID_TYPE; |
switch (instance_type) { |
case JavaScriptObject: |
type = JS_OBJECT_TYPE; |
@@ -700,9 +700,9 @@ |
instance_size += JSGlobalProxy::kSize; |
break; |
default: |
- ASSERT(false); |
break; |
} |
+ ASSERT(type != INVALID_TYPE); |
Handle<JSFunction> result = |
Factory::NewFunction(Factory::empty_symbol(), type, instance_size, |