| 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 #define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, s) \ | 497 #define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, s) \ |
| 498 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ | 498 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ |
| 499 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ | 499 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| 500 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ | 500 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ |
| 501 } | 501 } |
| 502 | 502 |
| 503 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) | 503 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
| 504 | 504 |
| 505 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION | 505 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
| 506 |
| 507 |
| 508 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { |
| 509 SealHandleScope shs(isolate); |
| 510 DCHECK_EQ(0, args.length()); |
| 511 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); |
| 512 } |
| 513 |
| 514 |
| 506 } // namespace internal | 515 } // namespace internal |
| 507 } // namespace v8 | 516 } // namespace v8 |
| OLD | NEW |