/external/v8/test/mjsunit/ |
object-prevent-extensions.js | 47 var obj2 = {}; 48 assertTrue(Object.isExtensible(obj2)); 49 obj2.x = 42; 50 assertEquals(42, obj2.x); 51 assertTrue(Object.isExtensible(obj2)); 53 Object.preventExtensions(obj2); 54 assertEquals(42, obj2.x); 56 obj2.y = 42; 57 // obj2.y should still be undefined. 58 assertEquals(undefined, obj2.y) [all...] |
function-bind.js | 184 var obj2 = new f(1,2,3); 185 assertEquals(1, obj2.x); 186 assertEquals(2, obj2.y); 187 assertEquals(3, obj2.z); 190 obj2 = new f(2,3); 191 assertEquals(1, obj2.x); 192 assertEquals(2, obj2.y); 193 assertEquals(3, obj2.z); 196 obj2 = new f(3); 197 assertEquals(1, obj2.x) [all...] |
object-seal.js | 101 var obj2 = {}; 104 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true }); 106 desc = Object.getOwnPropertyDescriptor(obj2, 'x'); 112 assertTrue(Object.isExtensible(obj2)); 113 assertFalse(Object.isSealed(obj2)); 114 Object.seal(obj2); 118 assertTrue(Object.isFrozen(obj2)); 119 assertFalse(Object.isExtensible(obj2)); 120 assertTrue(Object.isSealed(obj2)); 122 desc = Object.getOwnPropertyDescriptor(obj2, 'x') [all...] |
object-freeze.js | 98 var obj2 = {}; 101 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true }); 103 desc = Object.getOwnPropertyDescriptor(obj2, 'x'); 109 assertTrue(Object.isExtensible(obj2)); 110 assertFalse(Object.isFrozen(obj2)); 111 Object.freeze(obj2); 112 assertTrue(Object.isFrozen(obj2)); 113 assertFalse(Object.isExtensible(obj2)); 115 desc = Object.getOwnPropertyDescriptor(obj2, 'x'); 121 obj2.foo = 42 [all...] |
/external/clang/test/Rewriter/ |
properties.m | 44 Foo *obj1, *obj2; 46 if (obj1.i == obj2.rrrr) 48 obj1.i = func(obj2.rrrr); 49 obj1.i = obj2.rrrr; 50 obj1.i = (obj2.rrrr); 51 [obj1 setI:[obj2 rrrr]]; 52 obj1.i = [obj2 rrrr]; 53 obj1.i = 3 + [obj2 rrrr];
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Object/ |
regress-96284-001.js | 28 * Method: define obj2 = eval(obj1.toSource()) and verify that 29 * obj2.toSource() == obj1.toSource(). 42 var obj2 = {}; 49 obj2 = eval(obj1.toSource()); 50 actual = obj2.toSource(); 56 obj2 = eval(obj1.toSource()); 57 actual = obj2.toSource(); 63 obj2 = eval(obj1.toSource()); 64 actual = obj2.toSource(); 70 obj2 = eval(obj1.toSource()) [all...] |
regress-96284-002.js | 28 * Method: define obj2 = eval(uneval(obj1)) and verify that 29 * obj2.toSource() == obj1.toSource(). 42 var obj2 = {}; 49 obj2 = eval(uneval(obj1)); 50 actual = obj2.toSource(); 56 obj2 = eval(uneval(obj1)); 57 actual = obj2.toSource(); 63 obj2 = eval(uneval(obj1)); 64 actual = obj2.toSource(); 70 obj2 = eval(uneval(obj1)) [all...] |
/external/jdiff/src/jdiff/ |
CompareClassPdiffs.java | 16 public int compare(Object obj1, Object obj2){ 18 ClassDiff c2 = (ClassDiff)obj2;
|
ComparePkgPdiffs.java | 16 public int compare(Object obj1, Object obj2){ 18 PackageDiff p2 = (PackageDiff)obj2;
|
/external/clang/test/SemaObjC/ |
block-as-object.m | 7 typedef long (^MyBlock)(id obj1, id obj2);
|
/dalvik/tests/088-monitor-verification/src/ |
Main.java | 53 Object obj2 = new Object(); local 55 m.twoPath(obj1, obj2, 0); 58 m.triplet(obj1, obj2, 0); 184 public void twoPath(Object obj1, Object obj2, int x) { 188 synchronized(obj2) { 190 localObj = obj2; 204 public void triplet(Object obj1, Object obj2, int x) { 211 localObj = obj2;
|
/external/apache-xml/src/main/java/org/apache/xpath/objects/ |
XRTreeFrag.java | 249 * @param obj2 Object to compare this to 255 public boolean equals(XObject obj2) 260 if (XObject.CLASS_NODESET == obj2.getType()) 266 return obj2.equals(this); 268 else if (XObject.CLASS_BOOLEAN == obj2.getType()) 270 return bool() == obj2.bool(); 272 else if (XObject.CLASS_NUMBER == obj2.getType()) 274 return num() == obj2.num(); 276 else if (XObject.CLASS_NODESET == obj2.getType()) 278 return xstr().equals(obj2.xstr()) [all...] |
XBooleanStatic.java | 52 * @param obj2 Object to compare to this 58 public boolean equals(XObject obj2) 62 return m_val == obj2.bool();
|
XBoolean.java | 143 * @param obj2 Object to compare to this 149 public boolean equals(XObject obj2) 155 if (obj2.getType() == XObject.CLASS_NODESET) 156 return obj2.equals(this); 160 return m_val == obj2.bool();
|
XObject.java | 531 * @param obj2 Object to compare this to 537 public boolean lessThan(XObject obj2) 546 if (obj2.getType() == XObject.CLASS_NODESET) 547 return obj2.greaterThan(this); 549 return this.num() < obj2.num(); 555 * @param obj2 Object to compare this to 561 public boolean lessThanOrEqual(XObject obj2) 570 if (obj2.getType() == XObject.CLASS_NODESET) 571 return obj2.greaterThanOrEqual(this); 573 return this.num() <= obj2.num() [all...] |
/external/chromium/base/ |
id_map_unittest.cc | 31 TestObject obj2; local 38 int32 id2 = map.Add(&obj2); 43 EXPECT_EQ(&obj2, map.Lookup(id2)); 54 map.AddWithID(&obj2, 2); 56 EXPECT_EQ(&obj2, map.Lookup(2)); 63 TestObject obj2; local 67 map.Add(&obj2);
|
/external/llvm/test/CodeGen/X86/ |
rd-mod-wr-eflags.ll | 69 %struct.obj2 = type { i64, i32, i16, i8 } 71 declare void @other(%struct.obj2* ) nounwind; 74 define void @example_dec(%struct.obj2* %o) nounwind uwtable ssp { 77 %s64 = getelementptr inbounds %struct.obj2* %o, i64 0, i32 0 88 %s32 = getelementptr inbounds %struct.obj2* %o, i64 0, i32 1 99 %s16 = getelementptr inbounds %struct.obj2* %o, i64 0, i32 2 110 %s8 = getelementptr inbounds %struct.obj2* %o, i64 0, i32 3 120 tail call void @other(%struct.obj2* %o) nounwind 128 define void @example_inc(%struct.obj2* %o) nounwind uwtable ssp { 131 %s64 = getelementptr inbounds %struct.obj2* %o, i64 0, i32 [all...] |
/packages/apps/Email/src/org/apache/commons/io/comparator/ |
ReverseComparator.java | 49 * @param obj2 The second object to compare
53 public int compare(T obj1, T obj2) {
54 return delegate.compare(obj2, obj1); // parameters switched round
|
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
AttributeTypeAndValueComparator.java | 42 * @param obj2 47 public int compare(Object obj1, Object obj2) { 48 if (obj1 == obj2) { 53 AttributeTypeAndValue atav2 = (AttributeTypeAndValue) obj2;
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/GetSet/ |
getset-003.js | 39 var obj2 = {}; 139 obj2 = new TestObject(); 140 status = 'obj2 = new TestObject() after 1 set, 0 gets'; 141 actual = [obj2.nameSETS,obj2.nameGETS]; 145 // Use both obj and obj2 - 146 obj2.name = obj.name + obj2.name; 147 status = 'obj2 = new TestObject() after 2 sets, 1 get'; 148 actual = [obj2.nameSETS,obj2.nameGETS] [all...] |
getset-004.js | 39 var obj2 = {}; 139 obj2 = new TestObject(); 140 status = 'obj2 = new TestObject() after 1 set, 0 gets'; 141 actual = [obj2.nameSETS,obj2.nameGETS]; 145 // Use both obj and obj2 - 146 obj2.name = obj.name + obj2.name; 147 status = 'obj2 = new TestObject() after 2 sets, 1 get'; 148 actual = [obj2.nameSETS,obj2.nameGETS] [all...] |
getset-005.js | 43 var obj2 = {}; 148 obj2 = new TestObject(); 149 status = 'obj2 = new TestObject() after 1 set, 0 gets'; 150 actual = [obj2.nameSETS,obj2.nameGETS]; 154 // Use both obj and obj2 - 155 obj2.name = obj.name + obj2.name; 156 status = 'obj2 = new TestObject() after 2 sets, 1 get'; 157 actual = [obj2.nameSETS,obj2.nameGETS] [all...] |
/external/libxslt/libxslt/ |
functions.c | 227 xmlXPathObjectPtr obj, obj2 = NULL; local 253 obj2 = valuePop(ctxt); 269 valuePush(ctxt, xmlXPathObjectCopy(obj2)); 284 if (obj2 != NULL) 285 xmlXPathFreeObject(obj2); 297 if (obj2 != NULL) 298 xmlXPathFreeObject(obj2); 305 if ((obj2 != NULL) && (obj2->nodesetval != NULL) && 306 (obj2->nodesetval->nodeNr > 0) & 353 xmlXPathObjectPtr obj1, obj2; local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
15.10.4.1-2.js | 42 * We check that a new RegExp object obj2 defined from these parameters 49 * obj2 = new RegExp(obj1, undefined); 53 * obj2 = new RegExp(obj1); 62 var obj1 = {}; var obj2 = {}; 93 obj2 = new RegExp(obj1, undefined); // see introduction to bug 95 for (prop in obj2) 98 actual = obj2[prop];
|
15.10.4.1-4.js | 42 * We check that a new RegExp object obj2 defined from these parameters 49 * obj2 = new RegExp(obj1, undefined); 53 * obj2 = new RegExp(obj1); 63 var obj1 = {}; var obj2 = {}; 105 obj2 = new RegExp(obj1, undefined); // see introduction to bug 107 for (prop in obj2) 110 actual = obj2[prop];
|