Chromium Code Reviews| 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 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3533 /** | 3533 /** |
| 3534 * \return The data set in the configuration, i.e., in | 3534 * \return The data set in the configuration, i.e., in |
| 3535 * `NamedPropertyHandlerConfiguration` or | 3535 * `NamedPropertyHandlerConfiguration` or |
| 3536 * `IndexedPropertyHandlerConfiguration.` | 3536 * `IndexedPropertyHandlerConfiguration.` |
| 3537 */ | 3537 */ |
| 3538 V8_INLINE Local<Value> Data() const; | 3538 V8_INLINE Local<Value> Data() const; |
| 3539 | 3539 |
| 3540 /** | 3540 /** |
| 3541 * \return The receiver. In many cases, this is the object on which the | 3541 * \return The receiver. In many cases, this is the object on which the |
| 3542 * property access was intercepted. When using | 3542 * property access was intercepted. When using |
| 3543 * `Reflect.Get`, `Function.prototype.call`, or similar functions, it is the | 3543 * `Reflect.get`, `Function.prototype.call`, or similar functions, it is the |
|
adamk
2016/10/04 18:26:52
Maybe leave these changes out of this CL :)
neis
2016/10/05 08:18:41
Done.
| |
| 3544 * object passed in as receiver or thisArg. | 3544 * object passed in as receiver or thisArg. |
| 3545 * | 3545 * |
| 3546 * \code | 3546 * \code |
| 3547 * void GetterCallback(Local<Name> name, | 3547 * void GetterCallback(Local<Name> name, |
| 3548 * const v8::PropertyCallbackInfo<v8::Value>& info) { | 3548 * const v8::PropertyCallbackInfo<v8::Value>& info) { |
| 3549 * auto context = info.GetIsolate()->GetCurrentContext(); | 3549 * auto context = info.GetIsolate()->GetCurrentContext(); |
| 3550 * | 3550 * |
| 3551 * v8::Local<v8::Value> a_this = | 3551 * v8::Local<v8::Value> a_this = |
| 3552 * info.This() | 3552 * info.This() |
| 3553 * ->GetRealNamedProperty(context, v8_str("a")) | 3553 * ->GetRealNamedProperty(context, v8_str("a")) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3598 * info.GetReturnValue().Set(...) | 3598 * info.GetReturnValue().Set(...) |
| 3599 * \endcode | 3599 * \endcode |
| 3600 * | 3600 * |
| 3601 */ | 3601 */ |
| 3602 V8_INLINE ReturnValue<T> GetReturnValue() const; | 3602 V8_INLINE ReturnValue<T> GetReturnValue() const; |
| 3603 | 3603 |
| 3604 /** | 3604 /** |
| 3605 * \return True if the intercepted function should throw if an error occurs. | 3605 * \return True if the intercepted function should throw if an error occurs. |
| 3606 * Usually, `true` corresponds to `'use strict'`. | 3606 * Usually, `true` corresponds to `'use strict'`. |
| 3607 * | 3607 * |
| 3608 * \note Always `false` when intercepting `Reflect.Set()` | 3608 * \note Always `false` when intercepting `Reflect.set()` |
| 3609 * independent of the language mode. | 3609 * independent of the language mode. |
| 3610 */ | 3610 */ |
| 3611 V8_INLINE bool ShouldThrowOnError() const; | 3611 V8_INLINE bool ShouldThrowOnError() const; |
| 3612 | 3612 |
| 3613 // This shouldn't be public, but the arm compiler needs it. | 3613 // This shouldn't be public, but the arm compiler needs it. |
| 3614 static const int kArgsLength = 7; | 3614 static const int kArgsLength = 7; |
| 3615 | 3615 |
| 3616 protected: | 3616 protected: |
| 3617 friend class MacroAssembler; | 3617 friend class MacroAssembler; |
| 3618 friend class internal::PropertyCallbackArguments; | 3618 friend class internal::PropertyCallbackArguments; |
| (...skipping 6030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9649 */ | 9649 */ |
| 9650 | 9650 |
| 9651 | 9651 |
| 9652 } // namespace v8 | 9652 } // namespace v8 |
| 9653 | 9653 |
| 9654 | 9654 |
| 9655 #undef TYPE_CHECK | 9655 #undef TYPE_CHECK |
| 9656 | 9656 |
| 9657 | 9657 |
| 9658 #endif // INCLUDE_V8_H_ | 9658 #endif // INCLUDE_V8_H_ |
| OLD | NEW |