Searched refs:obj2 (Results 1 - 25 of 83) sorted by relevance

1234

/external/chromium_org/v8/test/webkit/
H A Dcodegen-assign-nontemporary-as-rexp.js36 var obj2 = {};
37 obj2.forward = (obj['slot'] = victim);
38 return obj2.forward;
51 var obj2 = {};
52 obj2.forward = (obj.slot = victim);
53 return obj2.forward;
/external/chromium_org/v8/test/mjsunit/
H A Dobject-prevent-extensions.js47 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
[all...]
H A Dcompare-known-objects-slow.js55 var obj2 = %OptimizeObjectForAddingMultipleProperties({}, 1); variable
58 assertTrue(%HaveSameMap(obj1, obj2));
59 test(obj1, obj2);
63 assertTrue(%HaveSameMap(obj1, obj2));
64 test(obj1, obj2);
67 obj2.y = 2;
68 assertTrue(%HaveSameMap(obj1, obj2));
69 test(obj1, obj2);
H A Daccessor-map-sharing.js38 var obj1, obj2, obj3, obj4;
43 obj2 = {};
44 dp(obj2, "alpha", { get: getter });
45 assertTrue(%HaveSameMap(obj1, obj2));
51 obj2 = {};
52 obj2.__defineGetter__("bravo", getter);
53 assertEquals(getter, obj2.__lookupGetter__("bravo"));
54 assertTrue(%HaveSameMap(obj1, obj2));
59 obj2 = {};
60 dp(obj2, "charli
[all...]
H A Dobject-seal.js101 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, '
[all...]
H A Dfunction-bind.js184 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
[all...]
H A Dobject-freeze.js99 var obj2 = {};
102 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
104 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
110 assertTrue(Object.isExtensible(obj2));
111 assertFalse(Object.isFrozen(obj2));
112 Object.freeze(obj2);
113 assertTrue(Object.isFrozen(obj2));
114 assertFalse(Object.isExtensible(obj2));
116 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
122 obj2
[all...]
/external/v8/test/mjsunit/
H A Dobject-prevent-extensions.js47 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
[all...]
H A Dobject-seal.js101 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, '
[all...]
H A Dobject-freeze.js98 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
[all...]
H A Dfunction-bind.js184 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
[all...]
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2163.js37 var obj1, obj2;
39 // obj1 and obj2 share the getter accessor.
42 obj2 = {}
43 dp(obj2, "alpha", { get: getter });
45 assertEquals(111, obj2.alpha);
47 assertEquals(111, obj2.alpha);
49 // obj1, obj2, and obj3 share the getter accessor.
52 obj2 = {}
53 dp(obj2, "alpha", { get: getter });
60 // obj1 and obj2 shar
[all...]
H A Dregress-2374.js31 var obj2 = JSON.parse(msg); variable
33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2));
34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2))
H A Dregress-2291.js31 var obj2 = new Object(); class
/external/apache-xml/src/main/java/org/apache/xpath/objects/
H A DXBooleanStatic.java52 * @param obj2 Object to compare to this
58 public boolean equals(XObject obj2) argument
62 return m_val == obj2.bool();
H A DXBoolean.java143 * @param obj2 Object to compare to this
149 public boolean equals(XObject obj2) argument
155 if (obj2.getType() == XObject.CLASS_NODESET)
156 return obj2.equals(this);
160 return m_val == obj2.bool();
H A DXObject.java531 * @param obj2 Object to compare this to
537 public boolean lessThan(XObject obj2) argument
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) argument
570 if (obj2.getType() == XObject.CLASS_NODESET)
571 return obj2.greaterThanOrEqual(this);
573 return this.num() <= obj2
585 greaterThan(XObject obj2) argument
609 greaterThanOrEqual(XObject obj2) argument
633 equals(XObject obj2) argument
661 notEquals(XObject obj2) argument
[all...]
H A DXNull.java122 * @param obj2 Object to compare this to
126 public boolean equals(XObject obj2) argument
128 return obj2.getType() == CLASS_NULL;
H A DXRTreeFrag.java249 * @param obj2 Object to compare this to
255 public boolean equals(XObject obj2) argument
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
[all...]
H A DXString.java285 * @param obj2 Object to compare this to
291 public boolean equals(XObject obj2) argument
297 int t = obj2.getType();
301 return obj2.equals(this);
306 return obj2.bool() == bool();
310 return obj2.num() == num();
319 return xstr().equals(obj2.xstr());
328 * @param obj2 the object to compare this <code>String</code> against.
334 public boolean equals(String obj2) { argument
335 return str().equals(obj2);
351 equals(XMLString obj2) argument
376 equals(Object obj2) argument
[all...]
/external/jdiff/src/jdiff/
H A DCompareClassPdiffs.java16 public int compare(Object obj1, Object obj2){ argument
18 ClassDiff c2 = (ClassDiff)obj2;
H A DComparePkgPdiffs.java16 public int compare(Object obj1, Object obj2){ argument
18 PackageDiff p2 = (PackageDiff)obj2;
/external/apache-http/src/org/apache/http/util/
H A DLangUtils.java63 public static boolean equals(final Object obj1, final Object obj2) { argument
64 return obj1 == null ? obj2 == null : obj1.equals(obj2);
/external/chromium_org/v8/test/mjsunit/compiler/
H A Dproto-chain-constant.js35 var obj2 = c(obj3, { f2: { value: function() { return 2; }, writable: true }}); variable
36 var obj1 = c(obj2, { f1: { value: function() { return 1; }, writable: true }});
54 obj2.f3 = function() { return 6; };
H A Dproto-chain-load.js34 var obj2 = Object.create(obj3, { f2: {value: 2} });
35 var obj1 = Object.create(obj2, { f1: {value: 1} });

Completed in 624 milliseconds

1234