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/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 | 1604 |
1605 | 1605 |
1606 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) { | 1606 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) { |
1607 SealHandleScope shs(isolate); | 1607 SealHandleScope shs(isolate); |
1608 DCHECK_EQ(1, args.length()); | 1608 DCHECK_EQ(1, args.length()); |
1609 CONVERT_ARG_CHECKED(Object, object, 0); | 1609 CONVERT_ARG_CHECKED(Object, object, 0); |
1610 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded()); | 1610 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded()); |
1611 } | 1611 } |
1612 | 1612 |
1613 | 1613 |
| 1614 RUNTIME_FUNCTION(Runtime_ObjectDefineProperty) { |
| 1615 HandleScope scope(isolate); |
| 1616 DCHECK(args.length() == 3); |
| 1617 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
| 1618 CONVERT_ARG_HANDLE_CHECKED(Object, name, 1); |
| 1619 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2); |
| 1620 return JSReceiver::DefineProperty(isolate, o, name, attributes); |
| 1621 } |
| 1622 |
| 1623 |
| 1624 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { |
| 1625 HandleScope scope(isolate); |
| 1626 DCHECK(args.length() == 2); |
| 1627 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
| 1628 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); |
| 1629 return JSReceiver::DefineProperties(isolate, o, properties); |
| 1630 } |
1614 } // namespace internal | 1631 } // namespace internal |
1615 } // namespace v8 | 1632 } // namespace v8 |
OLD | NEW |