| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/messages.h" | 8 #include "src/messages.h" |
| 9 #include "src/runtime/runtime-utils.h" | 9 #include "src/runtime/runtime-utils.h" |
| 10 | 10 |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 !iter.IsAtEnd(); iter.Advance()) { | 1286 !iter.IsAtEnd(); iter.Advance()) { |
| 1287 if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) { | 1287 if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) { |
| 1288 return isolate->heap()->true_value(); | 1288 return isolate->heap()->true_value(); |
| 1289 } | 1289 } |
| 1290 Handle<JSObject> current = | 1290 Handle<JSObject> current = |
| 1291 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)); | 1291 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)); |
| 1292 if (current->HasIndexedInterceptor()) { | 1292 if (current->HasIndexedInterceptor()) { |
| 1293 return isolate->heap()->true_value(); | 1293 return isolate->heap()->true_value(); |
| 1294 } | 1294 } |
| 1295 if (!current->HasDictionaryElements()) continue; | 1295 if (!current->HasDictionaryElements()) continue; |
| 1296 if (current->element_dictionary() | 1296 if (current->element_dictionary()->HasComplexElements()) { |
| 1297 ->HasComplexElements<DictionaryEntryType::kObjects>()) { | |
| 1298 return isolate->heap()->true_value(); | 1297 return isolate->heap()->true_value(); |
| 1299 } | 1298 } |
| 1300 } | 1299 } |
| 1301 return isolate->heap()->false_value(); | 1300 return isolate->heap()->false_value(); |
| 1302 } | 1301 } |
| 1303 | 1302 |
| 1304 | 1303 |
| 1305 RUNTIME_FUNCTION(Runtime_IsArray) { | 1304 RUNTIME_FUNCTION(Runtime_IsArray) { |
| 1306 SealHandleScope shs(isolate); | 1305 SealHandleScope shs(isolate); |
| 1307 DCHECK(args.length() == 1); | 1306 DCHECK(args.length() == 1); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1327 | 1326 |
| 1328 RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { | 1327 RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { |
| 1329 SealHandleScope shs(isolate); | 1328 SealHandleScope shs(isolate); |
| 1330 DCHECK(args.length() == 2); | 1329 DCHECK(args.length() == 2); |
| 1331 // Returning undefined means that this fast path fails and one has to resort | 1330 // Returning undefined means that this fast path fails and one has to resort |
| 1332 // to a slow path. | 1331 // to a slow path. |
| 1333 return isolate->heap()->undefined_value(); | 1332 return isolate->heap()->undefined_value(); |
| 1334 } | 1333 } |
| 1335 } // namespace internal | 1334 } // namespace internal |
| 1336 } // namespace v8 | 1335 } // namespace v8 |
| OLD | NEW |