Fix build.
authorDavid Anderson <danderson@mozilla.com>
Thu, 28 Jun 2012 15:19:36 -0700
changeset 106485 0cb6898fc0266e964938ee4895722e9c8dc52cc2
parent 106484 0a0ecbc48d9a4cce919af89ed3b8cb813a78bdbd
child 106486 f79d7ca811e626f9f302ef92436c28d9cb91146d
push id23447
push userdanderson@mozilla.com
push dateTue, 11 Sep 2012 17:34:27 +0000
treeherdermozilla-central@fdfaef738a00 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix build.
js/src/ion/IonBuilder.cpp
--- a/js/src/ion/IonBuilder.cpp
+++ b/js/src/ion/IonBuilder.cpp
@@ -3327,17 +3327,17 @@ IonBuilder::jsop_compare(JSOp op)
 }
 
 bool
 IonBuilder::jsop_newarray(uint32 count)
 {
     JS_ASSERT(script->hasGlobal());
 
     types::TypeObject *type = NULL;
-    if (!types::UseNewTypeForInitializer(cx, script, pc)) {
+    if (!types::UseNewTypeForInitializer(cx, script, pc, JSProto_Array)) {
         type = types::TypeScript::InitObject(cx, script, pc, JSProto_Array);
         if (!type)
             return false;
     }
 
     MNewArray *ins = new MNewArray(count, type, MNewArray::NewArray_Allocating);
 
     current->add(ins);
@@ -3348,17 +3348,17 @@ IonBuilder::jsop_newarray(uint32 count)
 
 bool
 IonBuilder::jsop_newobject(HandleObject baseObj)
 {
     // Don't bake in the TypeObject for non-CNG scripts.
     JS_ASSERT(script->hasGlobal());
 
     types::TypeObject *type = NULL;
-    if (!types::UseNewTypeForInitializer(cx, script, pc)) {
+    if (!types::UseNewTypeForInitializer(cx, script, pc, JSProto_Object)) {
         type = types::TypeScript::InitObject(cx, script, pc, JSProto_Object);
         if (!type)
             return false;
     }
 
     MNewObject *ins = MNewObject::New(baseObj, type);
 
     current->add(ins);