| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 create1(0); | 112 create1(0); |
| 113 create1(0); | 113 create1(0); |
| 114 a = create1(0); | 114 a = create1(0); |
| 115 assertFalse(isHoley(a)); | 115 assertFalse(isHoley(a)); |
| 116 assertKind(elements_kind.fast_smi_only, a); | 116 assertKind(elements_kind.fast_smi_only, a); |
| 117 a[0] = "hello"; | 117 a[0] = "hello"; |
| 118 b = create1(10); | 118 b = create1(10); |
| 119 assertTrue(isHoley(b)); | 119 assertTrue(isHoley(b)); |
| 120 assertKind(elements_kind.fast, b); | 120 assertKind(elements_kind.fast, b); |
| 121 | 121 |
| 122 a = create1(100000); | 122 a = create1(100001); |
| 123 assertKind(elements_kind.dictionary, a); | 123 assertKind(elements_kind.dictionary, a); |
| 124 | 124 |
| 125 function create3(arg1, arg2, arg3) { | 125 function create3(arg1, arg2, arg3) { |
| 126 return Array(arg1, arg2, arg3); | 126 return Array(arg1, arg2, arg3); |
| 127 } | 127 } |
| 128 | 128 |
| 129 create3(); | 129 create3(); |
| 130 create3(); | 130 create3(); |
| 131 a = create3(1,2,3); | 131 a = create3(1,2,3); |
| 132 a[0] = 3.5; | 132 a[0] = 3.5; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 var realmBArray = Realm.eval(realmB, "Array"); | 213 var realmBArray = Realm.eval(realmB, "Array"); |
| 214 instanceof_check(Array); | 214 instanceof_check(Array); |
| 215 instanceof_check(Array); | 215 instanceof_check(Array); |
| 216 instanceof_check(Array); | 216 instanceof_check(Array); |
| 217 instanceof_check(realmBArray); | 217 instanceof_check(realmBArray); |
| 218 instanceof_check(realmBArray); | 218 instanceof_check(realmBArray); |
| 219 instanceof_check(realmBArray); | 219 instanceof_check(realmBArray); |
| 220 })(); | 220 })(); |
| 221 } | 221 } |
| OLD | NEW |