| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3535 /** | 3535 /** |
| 3536 * \return The data set in the configuration, i.e., in | 3536 * \return The data set in the configuration, i.e., in |
| 3537 * `NamedPropertyHandlerConfiguration` or | 3537 * `NamedPropertyHandlerConfiguration` or |
| 3538 * `IndexedPropertyHandlerConfiguration.` | 3538 * `IndexedPropertyHandlerConfiguration.` |
| 3539 */ | 3539 */ |
| 3540 V8_INLINE Local<Value> Data() const; | 3540 V8_INLINE Local<Value> Data() const; |
| 3541 | 3541 |
| 3542 /** | 3542 /** |
| 3543 * \return The receiver. In many cases, this is the object on which the | 3543 * \return The receiver. In many cases, this is the object on which the |
| 3544 * property access was intercepted. When using | 3544 * property access was intercepted. When using |
| 3545 * `Reflect.Get`, `Function.prototype.call`, or similar functions, it is the | 3545 * `Reflect.get`, `Function.prototype.call`, or similar functions, it is the |
| 3546 * object passed in as receiver or thisArg. | 3546 * object passed in as receiver or thisArg. |
| 3547 * | 3547 * |
| 3548 * \code | 3548 * \code |
| 3549 * void GetterCallback(Local<Name> name, | 3549 * void GetterCallback(Local<Name> name, |
| 3550 * const v8::PropertyCallbackInfo<v8::Value>& info) { | 3550 * const v8::PropertyCallbackInfo<v8::Value>& info) { |
| 3551 * auto context = info.GetIsolate()->GetCurrentContext(); | 3551 * auto context = info.GetIsolate()->GetCurrentContext(); |
| 3552 * | 3552 * |
| 3553 * v8::Local<v8::Value> a_this = | 3553 * v8::Local<v8::Value> a_this = |
| 3554 * info.This() | 3554 * info.This() |
| 3555 * ->GetRealNamedProperty(context, v8_str("a")) | 3555 * ->GetRealNamedProperty(context, v8_str("a")) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3600 * info.GetReturnValue().Set(...) | 3600 * info.GetReturnValue().Set(...) |
| 3601 * \endcode | 3601 * \endcode |
| 3602 * | 3602 * |
| 3603 */ | 3603 */ |
| 3604 V8_INLINE ReturnValue<T> GetReturnValue() const; | 3604 V8_INLINE ReturnValue<T> GetReturnValue() const; |
| 3605 | 3605 |
| 3606 /** | 3606 /** |
| 3607 * \return True if the intercepted function should throw if an error occurs. | 3607 * \return True if the intercepted function should throw if an error occurs. |
| 3608 * Usually, `true` corresponds to `'use strict'`. | 3608 * Usually, `true` corresponds to `'use strict'`. |
| 3609 * | 3609 * |
| 3610 * \note Always `false` when intercepting `Reflect.Set()` | 3610 * \note Always `false` when intercepting `Reflect.set()` |
| 3611 * independent of the language mode. | 3611 * independent of the language mode. |
| 3612 */ | 3612 */ |
| 3613 V8_INLINE bool ShouldThrowOnError() const; | 3613 V8_INLINE bool ShouldThrowOnError() const; |
| 3614 | 3614 |
| 3615 // This shouldn't be public, but the arm compiler needs it. | 3615 // This shouldn't be public, but the arm compiler needs it. |
| 3616 static const int kArgsLength = 7; | 3616 static const int kArgsLength = 7; |
| 3617 | 3617 |
| 3618 protected: | 3618 protected: |
| 3619 friend class MacroAssembler; | 3619 friend class MacroAssembler; |
| 3620 friend class internal::PropertyCallbackArguments; | 3620 friend class internal::PropertyCallbackArguments; |
| (...skipping 6030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9651 */ | 9651 */ |
| 9652 | 9652 |
| 9653 | 9653 |
| 9654 } // namespace v8 | 9654 } // namespace v8 |
| 9655 | 9655 |
| 9656 | 9656 |
| 9657 #undef TYPE_CHECK | 9657 #undef TYPE_CHECK |
| 9658 | 9658 |
| 9659 | 9659 |
| 9660 #endif // INCLUDE_V8_H_ | 9660 #endif // INCLUDE_V8_H_ |
| OLD | NEW |