R=ager@chromium.org
BUG=
TEST=
Review URL: http://codereview.chromium.org/7472034
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8713
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// Objects with a non-function constructor have class 'Object'.
__ bind(&non_function_constructor);
- __ LoadRoot(r0, Heap::kfunction_class_symbolRootIndex);
+ __ LoadRoot(r0, Heap::kObject_symbolRootIndex);
__ jmp(&done);
// Non-JS objects have class null.
if (IS_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
return '[object Undefined]';
}
- if (IS_NULL(this)) return '[object Null]';
+ if (IS_NULL(this)) return '[object Null]';
return "[object " + %_ClassOf(ToObject(this)) + "]";
}