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/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/debug.h" | 9 #include "src/debug.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 1428 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
1429 CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2); | 1429 CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2); |
1430 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); | 1430 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
1431 | 1431 |
1432 RETURN_FAILURE_ON_EXCEPTION( | 1432 RETURN_FAILURE_ON_EXCEPTION( |
1433 isolate, | 1433 isolate, |
1434 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), | 1434 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), |
1435 setter, attrs)); | 1435 setter, attrs)); |
1436 return isolate->heap()->undefined_value(); | 1436 return isolate->heap()->undefined_value(); |
1437 } | 1437 } |
| 1438 |
| 1439 |
| 1440 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) { |
| 1441 SealHandleScope shs(isolate); |
| 1442 DCHECK_EQ(1, args.length()); |
| 1443 CONVERT_ARG_CHECKED(Object, object, 0); |
| 1444 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded()); |
| 1445 } |
1438 } // namespace internal | 1446 } // namespace internal |
1439 } // namespace v8 | 1447 } // namespace v8 |
OLD | NEW |