Revision: 8713
Author: [email protected]
Date: Thu Jul 21 05:39:35 2011
Log: Fix ClassOf check on ARM.
[email protected]
BUG=
TEST=
Review URL: http://codereview.chromium.org/7472034
http://code.google.com/p/v8/source/detail?r=8713
Modified:
/branches/bleeding_edge/src/arm/full-codegen-arm.cc
/branches/bleeding_edge/src/v8natives.js
=======================================
--- /branches/bleeding_edge/src/arm/full-codegen-arm.cc Wed Jul 13 02:09:04
2011
+++ /branches/bleeding_edge/src/arm/full-codegen-arm.cc Thu Jul 21 05:39:35
2011
@@ -2753,7 +2753,7 @@
// 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.
=======================================
--- /branches/bleeding_edge/src/v8natives.js Thu Jul 21 04:20:27 2011
+++ /branches/bleeding_edge/src/v8natives.js Thu Jul 21 05:39:35 2011
@@ -209,7 +209,7 @@
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)) + "]";
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev