Home | History | Annotate | Download | only in cctest

Lines Matching refs:obj

44 static void CheckOddball(Object* obj, const char* string) {
45 CHECK(obj->IsOddball());
47 Object* print_string = *Execution::ToString(Handle<Object>(obj), &exc);
61 Object* obj = Heap::NumberFromDouble(value);
62 CHECK(obj->IsNumber());
64 Object* print_string = *Execution::ToString(Handle<Object>(obj), &exc);
85 HeapObject* obj = HeapObject::cast(code);
86 Address obj_addr = obj->address();
88 for (int i = 0; i < obj->Size(); i += kPointerSize) {
224 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(function));
225 obj->SetProperty(prop_name, Smi::FromInt(23), NONE);
226 obj->SetProperty(prop_namex, Smi::FromInt(24), NONE);
228 CHECK_EQ(Smi::FromInt(23), obj->GetProperty(prop_name));
229 CHECK_EQ(Smi::FromInt(24), obj->GetProperty(prop_namex));
243 obj = JSObject::cast(Heap::AllocateJSObject(function));
245 Top::context()->global()->SetProperty(obj_name, obj, NONE);
248 obj->SetProperty(prop_name, Smi::FromInt(23), NONE);
256 obj = JSObject::cast(Top::context()->global()->GetProperty(obj_name));
258 CHECK_EQ(Smi::FromInt(23), obj->GetProperty(prop_name));
524 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(function));
525 obj->SetProperty(prop_name, Smi::FromInt(23), NONE);
526 CHECK_EQ(Smi::FromInt(23), obj->GetProperty(prop_name));
541 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(constructor));
546 CHECK(!obj->HasLocalProperty(first));
549 obj->SetProperty(first, Smi::FromInt(1), NONE);
550 CHECK(obj->HasLocalProperty(first));
553 CHECK(obj->DeleteProperty(first, JSObject::NORMAL_DELETION));
554 CHECK(!obj->HasLocalProperty(first));
557 obj->SetProperty(first, Smi::FromInt(1), NONE);
558 obj->SetProperty(second, Smi::FromInt(2), NONE);
559 CHECK(obj->HasLocalProperty(first));
560 CHECK(obj->HasLocalProperty(second));
563 CHECK(obj
564 CHECK(obj->HasLocalProperty(second));
565 CHECK(obj->DeleteProperty(second, JSObject::NORMAL_DELETION));
566 CHECK(!obj->HasLocalProperty(first));
567 CHECK(!obj->HasLocalProperty(second));
570 obj->SetProperty(first, Smi::FromInt(1), NONE);
571 obj->SetProperty(second, Smi::FromInt(2), NONE);
572 CHECK(obj->HasLocalProperty(first));
573 CHECK(obj->HasLocalProperty(second));
576 CHECK(obj->DeleteProperty(second, JSObject::NORMAL_DELETION));
577 CHECK(obj->HasLocalProperty(first));
578 CHECK(obj->DeleteProperty(first, JSObject::NORMAL_DELETION));
579 CHECK(!obj->HasLocalProperty(first));
580 CHECK(!obj->HasLocalProperty(second));
586 obj->SetProperty(s1, Smi::FromInt(1), NONE);
587 CHECK(obj->HasLocalProperty(String::cast(Heap::LookupAsciiSymbol(string1))));
592 obj->SetProperty(s2, Smi::FromInt(1), NONE);
593 CHECK(obj->HasLocalProperty(
613 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(function));
616 obj->SetProperty(prop_name, Smi::FromInt(23), NONE);
617 CHECK_EQ(Smi::FromInt(23), obj->GetProperty(prop_name));
620 CHECK(initial_map != obj->map());
673 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(constructor));
677 obj->SetProperty(first, Smi::FromInt(1), NONE);
678 obj->SetProperty(second, Smi::FromInt(2), NONE);
680 obj->SetElement(0, first);
681 obj->SetElement(1, second);
684 JSObject* clone = JSObject::cast(Heap::CopyJSObject(obj));
685 CHECK(clone != obj);
687 CHECK_EQ(obj->GetElement(0), clone->GetElement(0));
688 CHECK_EQ(obj->GetElement(1), clone->GetElement(1));
690 CHECK_EQ(obj->GetProperty(first), clone->GetProperty(first));
691 CHECK_EQ(obj->GetProperty(second), clone->GetProperty(second));
700 CHECK_EQ(obj->GetElement(1), clone->GetElement(0));
701 CHECK_EQ(obj->GetElement(0), clone->GetElement(1));
703 CHECK_EQ(obj->GetProperty(second), clone->GetProperty(first));
704 CHECK_EQ(obj->GetProperty(first), clone->GetProperty(second));
749 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
751 if (*objs[i] == obj) {