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/runtime/runtime-utils.h" | 8 #include "src/runtime/runtime-utils.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 } | 1315 } |
1316 } else { | 1316 } else { |
1317 // No slow check needed for proxies. | 1317 // No slow check needed for proxies. |
1318 slow_check_needed = Smi::cast(*cache_type)->value() == 1; | 1318 slow_check_needed = Smi::cast(*cache_type)->value() == 1; |
1319 } | 1319 } |
1320 return MakePair(array->get(index), | 1320 return MakePair(array->get(index), |
1321 isolate->heap()->ToBoolean(slow_check_needed)); | 1321 isolate->heap()->ToBoolean(slow_check_needed)); |
1322 } | 1322 } |
1323 | 1323 |
1324 | 1324 |
1325 RUNTIME_FUNCTION(RuntimeReference_IsArray) { | 1325 RUNTIME_FUNCTION(Runtime_IsArray) { |
1326 SealHandleScope shs(isolate); | 1326 SealHandleScope shs(isolate); |
1327 DCHECK(args.length() == 1); | 1327 DCHECK(args.length() == 1); |
1328 CONVERT_ARG_CHECKED(Object, obj, 0); | 1328 CONVERT_ARG_CHECKED(Object, obj, 0); |
1329 return isolate->heap()->ToBoolean(obj->IsJSArray()); | 1329 return isolate->heap()->ToBoolean(obj->IsJSArray()); |
1330 } | 1330 } |
1331 | 1331 |
1332 | 1332 |
1333 RUNTIME_FUNCTION(RuntimeReference_HasCachedArrayIndex) { | 1333 RUNTIME_FUNCTION(Runtime_HasCachedArrayIndex) { |
1334 SealHandleScope shs(isolate); | 1334 SealHandleScope shs(isolate); |
1335 DCHECK(args.length() == 1); | 1335 DCHECK(args.length() == 1); |
1336 return isolate->heap()->false_value(); | 1336 return isolate->heap()->false_value(); |
1337 } | 1337 } |
1338 | 1338 |
1339 | 1339 |
1340 RUNTIME_FUNCTION(RuntimeReference_GetCachedArrayIndex) { | 1340 RUNTIME_FUNCTION(Runtime_GetCachedArrayIndex) { |
1341 SealHandleScope shs(isolate); | 1341 SealHandleScope shs(isolate); |
1342 DCHECK(args.length() == 1); | 1342 DCHECK(args.length() == 1); |
1343 return isolate->heap()->undefined_value(); | 1343 return isolate->heap()->undefined_value(); |
1344 } | 1344 } |
1345 | 1345 |
1346 | 1346 |
1347 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { | 1347 RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { |
1348 SealHandleScope shs(isolate); | 1348 SealHandleScope shs(isolate); |
1349 DCHECK(args.length() == 2); | 1349 DCHECK(args.length() == 2); |
1350 return isolate->heap()->undefined_value(); | 1350 return isolate->heap()->undefined_value(); |
1351 } | 1351 } |
1352 } | 1352 } |
1353 } // namespace v8::internal | 1353 } // namespace v8::internal |
OLD | NEW |