Home
last modified time | relevance | path

Searched refs:obj2 (Results 1 – 25 of 114) sorted by relevance

12345

/external/v8/test/mjsunit/
Daccessor-map-sharing.js38 var obj1, obj2, obj3, obj4; variable
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, "charlie", { set: setter });
[all …]
Dobject-prevent-extensions.js49 var obj2 = {}; variable
50 assertTrue(Object.isExtensible(obj2));
51 obj2.x = 42;
52 assertEquals(42, obj2.x);
53 assertTrue(Object.isExtensible(obj2));
55 Object.preventExtensions(obj2);
56 assertEquals(42, obj2.x);
58 obj2.y = 42;
60 assertEquals(undefined, obj2.y);
62 obj2.x = 43;
[all …]
Dcompare-objects.js64 var obj2 = {toString: function() {return "2";}}; variable
66 var less = obj1 < obj2;
67 var greater = obj1 > obj2;
69 test(obj1, obj2, less, greater);
70 test(obj1, obj2, less, greater);
71 test(obj1, obj2, less, greater);
73 test(obj1, obj2, less, greater);
74 test(obj1, obj2, less, greater);
77 test(obj1, obj2, less, greater);
79 obj2.y = 2;
[all …]
Dobject-seal.js89 var obj2 = {}; variable
92 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
94 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
100 assertTrue(Object.isExtensible(obj2));
101 assertFalse(Object.isSealed(obj2));
102 Object.seal(obj2);
106 assertTrue(Object.isFrozen(obj2));
107 assertFalse(Object.isExtensible(obj2));
108 assertTrue(Object.isSealed(obj2));
110 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
[all …]
Dobject-freeze.js86 var obj2 = {}; variable
89 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
91 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
97 assertTrue(Object.isExtensible(obj2));
98 assertFalse(Object.isFrozen(obj2));
99 Object.freeze(obj2);
100 assertTrue(Object.isFrozen(obj2));
101 assertFalse(Object.isExtensible(obj2));
103 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
109 obj2.foo = 42;
[all …]
Dfunction-bind.js193 var obj2 = new f(1,2,3); variable
194 assertEquals(1, obj2.x);
195 assertEquals(2, obj2.y);
196 assertEquals(3, obj2.z);
199 obj2 = new f(2,3); variable
200 assertEquals(1, obj2.x);
201 assertEquals(2, obj2.y);
202 assertEquals(3, obj2.z);
205 obj2 = new f(3); variable
206 assertEquals(1, obj2.x);
[all …]
Dcompare-known-objects-slow.js87 var obj2 = %OptimizeObjectForAddingMultipleProperties({}, 1); variable
90 assertTrue(%HaveSameMap(obj1, obj2));
91 test(obj1, obj2);
95 assertTrue(%HaveSameMap(obj1, obj2));
96 test(obj1, obj2);
99 obj2.y = 2;
100 assertTrue(%HaveSameMap(obj1, obj2));
101 test(obj1, obj2);
Dcompare-known-objects-tostringtag.js48 var obj2 = new O; variable
50 assertTrue(%HaveSameMap(obj1, obj2));
51 test(obj1, obj2);
52 test(obj1, obj2);
57 test(obj1, obj2);
/external/v8/test/mjsunit/es6/
Dreflect-prevent-extensions.js50 var obj2 = {}; variable
51 assertTrue(Object.isExtensible(obj2));
52 obj2.x = 42;
53 assertEquals(42, obj2.x);
54 assertTrue(Object.isExtensible(obj2));
56 assertTrue(Reflect.preventExtensions(obj2));
57 assertEquals(42, obj2.x);
59 obj2.y = 42;
61 assertEquals(undefined, obj2.y);
63 obj2.x = 43;
[all …]
/external/v8/test/js-perf-test/Object/
Dassign.js20 var obj2; variable
27 obj2 = {};
28 src1 = { id: "6930530530", obj1: obj1, obj2: obj2 }; property
38 object.obj2 === obj2;
46 obj2 = {};
49 src3 = { obj2: obj2 }; property
59 object.obj2 === src3;
67 obj2 = {};
70 src3 = { obj1: obj1, obj2: obj2 }; property
80 object.obj2 === src3;
/external/v8/test/mjsunit/regress/
Dregress-2163.js37 var obj1, obj2; variable
42 obj2 = {}
43 dp(obj2, "alpha", { get: getter });
45 assertEquals(111, obj2.alpha);
47 assertEquals(111, obj2.alpha);
52 obj2 = {}
53 dp(obj2, "alpha", { get: getter });
64 obj2 = {}
65 dp(obj2, "alpha", { get: getter, set: setter });
67 assertEquals(111, obj2.alpha);
[all …]
Dregress-crbug-417508.js22 var obj2 = {}; variable
23 Object.defineProperty(obj2, "value",
26 try { bar(obj2); } catch(e) {}
27 try { bar(obj2); } catch(e) {}
29 try { bar(obj2); } catch(e) {}
Dregress-4534.js14 obj2 = {};
15 dp(obj2, "golf", { get: getter, configurable: true });
16 dp(obj2, "golf", { set: setter, configurable: true });
17 assertTrue(%HaveSameMap(obj1, obj2));
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXObject.java537 public boolean lessThan(XObject obj2) in lessThan() argument
546 if (obj2.getType() == XObject.CLASS_NODESET) in lessThan()
547 return obj2.greaterThan(this); in lessThan()
549 return this.num() < obj2.num(); in lessThan()
561 public boolean lessThanOrEqual(XObject obj2) in lessThanOrEqual() argument
570 if (obj2.getType() == XObject.CLASS_NODESET) in lessThanOrEqual()
571 return obj2.greaterThanOrEqual(this); in lessThanOrEqual()
573 return this.num() <= obj2.num(); in lessThanOrEqual()
585 public boolean greaterThan(XObject obj2) in greaterThan() argument
594 if (obj2.getType() == XObject.CLASS_NODESET) in greaterThan()
[all …]
DXRTreeFrag.java255 public boolean equals(XObject obj2) in equals() argument
260 if (XObject.CLASS_NODESET == obj2.getType()) in equals()
266 return obj2.equals(this); in equals()
268 else if (XObject.CLASS_BOOLEAN == obj2.getType()) in equals()
270 return bool() == obj2.bool(); in equals()
272 else if (XObject.CLASS_NUMBER == obj2.getType()) in equals()
274 return num() == obj2.num(); in equals()
276 else if (XObject.CLASS_NODESET == obj2.getType()) in equals()
278 return xstr().equals(obj2.xstr()); in equals()
280 else if (XObject.CLASS_STRING == obj2.getType()) in equals()
[all …]
DXString.java291 public boolean equals(XObject obj2) in equals() argument
297 int t = obj2.getType(); in equals()
301 return obj2.equals(this); in equals()
306 return obj2.bool() == bool(); in equals()
310 return obj2.num() == num(); in equals()
319 return xstr().equals(obj2.xstr()); in equals()
334 public boolean equals(String obj2) { in equals() argument
335 return str().equals(obj2); in equals()
351 public boolean equals(XMLString obj2) in equals() argument
353 if (obj2 != null) { in equals()
[all …]
DXNodeSet.java472 public boolean compare(XObject obj2, Comparator comparator) in compare() argument
477 int type = obj2.getType(); in compare()
495 DTMIterator list2 = ((XNodeSet) obj2).iterRaw(); in compare()
552 double num2 = obj2.num(); in compare()
567 double num2 = obj2.num(); in compare()
585 XMLString s2 = obj2.xstr(); in compare()
611 XMLString s2 = obj2.xstr(); in compare()
629 result = comparator.compareNumbers(this.num(), obj2.num()); in compare()
644 public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException in lessThan() argument
646 return compare(obj2, S_LT); in lessThan()
[all …]
DXStringForFSB.java289 public boolean equals(XMLString obj2) in equals() argument
292 if (this == obj2) in equals()
299 if (n == obj2.length()) in equals()
307 if (fsb.charAt(i) != obj2.charAt(j)) in equals()
331 public boolean equals(XObject obj2) in equals() argument
334 if (this == obj2) in equals()
338 if(obj2.getType() == XObject.CLASS_NUMBER) in equals()
339 return obj2.equals(this); in equals()
341 String str = obj2.str(); in equals()
418 public boolean equals(Object obj2) in equals() argument
[all …]
DXBoolean.java149 public boolean equals(XObject obj2) in equals() argument
155 if (obj2.getType() == XObject.CLASS_NODESET) in equals()
156 return obj2.equals(this); in equals()
160 return m_val == obj2.bool(); in equals()
/external/v8/test/webkit/
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/clang/test/Rewriter/
Dproperties.m44 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/llvm/test/CodeGen/X86/
Drd-mod-wr-eflags.ll64 %struct.obj2 = type { i64, i32, i16, i8 }
66 declare void @other(%struct.obj2* ) nounwind;
69 define void @example_dec(%struct.obj2* %o) nounwind uwtable ssp {
72 %s64 = getelementptr inbounds %struct.obj2, %struct.obj2* %o, i64 0, i32 0
83 %s32 = getelementptr inbounds %struct.obj2, %struct.obj2* %o, i64 0, i32 1
94 %s16 = getelementptr inbounds %struct.obj2, %struct.obj2* %o, i64 0, i32 2
105 %s8 = getelementptr inbounds %struct.obj2, %struct.obj2* %o, i64 0, i32 3
115 tail call void @other(%struct.obj2* %o) nounwind
123 define void @example_inc(%struct.obj2* %o) nounwind uwtable ssp {
126 %s64 = getelementptr inbounds %struct.obj2, %struct.obj2* %o, i64 0, i32 0
[all …]
/external/clang/test/Analysis/
Dretain-release-cf-audited.m21 CFTypeRef obj2 = CFCreateSomethingAudited(); // expected-warning{{leak}}
22 CFRetain(obj2); // no-warning
23 CFRelease(obj2); // no-warning
30 CFTypeRef obj2 = CFCreateSomethingUnaudited(); // expected-warning{{leak}}
31 CFRetain(obj2); // no-warning
32 CFRelease(obj2); // no-warning
/external/fonttools/Lib/fontTools/misc/
DpsOperators.py238 obj2 = self.pop()
240 self.push(obj2)
415 obj2 = self.pop()
419 obj3.value[obj2.value] = obj1
421 obj3.value[obj2.value] = obj1
423 index = obj2.value
430 obj2 = self.pop('arraytype', 'dicttype', 'stringtype', 'proceduretype', 'fonttype')
431 tp = obj2.type
433 self.push(obj2.value[obj1.value])
435 self.push(obj2.value[obj1.value])
[all …]
/external/libchrome/base/
Did_map_unittest.cc31 TestObject obj2; in TEST() local
38 int32_t id2 = map.Add(&obj2); in TEST()
43 EXPECT_EQ(&obj2, map.Lookup(id2)); in TEST()
54 map.AddWithID(&obj2, 2); in TEST()
56 EXPECT_EQ(&obj2, map.Lookup(2)); in TEST()
58 EXPECT_EQ(&obj2, map.Replace(2, &obj1)); in TEST()
68 TestObject obj2; in TEST() local
72 map.Add(&obj2); in TEST()
153 TestObject obj2; in TEST() local
157 map.Add(&obj2); in TEST()
[all …]

12345