| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 class HeapObject; | 143 class HeapObject; |
| 144 class Isolate; | 144 class Isolate; |
| 145 class Object; | 145 class Object; |
| 146 struct StreamedSource; | 146 struct StreamedSource; |
| 147 template<typename T> class CustomArguments; | 147 template<typename T> class CustomArguments; |
| 148 class PropertyCallbackArguments; | 148 class PropertyCallbackArguments; |
| 149 class FunctionCallbackArguments; | 149 class FunctionCallbackArguments; |
| 150 class GlobalHandles; | 150 class GlobalHandles; |
| 151 } // namespace internal | 151 } // namespace internal |
| 152 | 152 |
| 153 namespace debug { | |
| 154 class ConsoleCallArguments; | |
| 155 } // namespace debug | |
| 156 | 153 |
| 157 // --- Handles --- | 154 // --- Handles --- |
| 158 | 155 |
| 159 #define TYPE_CHECK(T, S) \ | 156 #define TYPE_CHECK(T, S) \ |
| 160 while (false) { \ | 157 while (false) { \ |
| 161 *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \ | 158 *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \ |
| 162 } | 159 } |
| 163 | 160 |
| 164 /** | 161 /** |
| 165 * An object reference managed by the v8 garbage collector. | 162 * An object reference managed by the v8 garbage collector. |
| (...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3564 V8_INLINE bool IsConstructCall() const; | 3561 V8_INLINE bool IsConstructCall() const; |
| 3565 V8_INLINE Local<Value> Data() const; | 3562 V8_INLINE Local<Value> Data() const; |
| 3566 V8_INLINE Isolate* GetIsolate() const; | 3563 V8_INLINE Isolate* GetIsolate() const; |
| 3567 V8_INLINE ReturnValue<T> GetReturnValue() const; | 3564 V8_INLINE ReturnValue<T> GetReturnValue() const; |
| 3568 // This shouldn't be public, but the arm compiler needs it. | 3565 // This shouldn't be public, but the arm compiler needs it. |
| 3569 static const int kArgsLength = 8; | 3566 static const int kArgsLength = 8; |
| 3570 | 3567 |
| 3571 protected: | 3568 protected: |
| 3572 friend class internal::FunctionCallbackArguments; | 3569 friend class internal::FunctionCallbackArguments; |
| 3573 friend class internal::CustomArguments<FunctionCallbackInfo>; | 3570 friend class internal::CustomArguments<FunctionCallbackInfo>; |
| 3574 friend class debug::ConsoleCallArguments; | |
| 3575 static const int kHolderIndex = 0; | 3571 static const int kHolderIndex = 0; |
| 3576 static const int kIsolateIndex = 1; | 3572 static const int kIsolateIndex = 1; |
| 3577 static const int kReturnValueDefaultValueIndex = 2; | 3573 static const int kReturnValueDefaultValueIndex = 2; |
| 3578 static const int kReturnValueIndex = 3; | 3574 static const int kReturnValueIndex = 3; |
| 3579 static const int kDataIndex = 4; | 3575 static const int kDataIndex = 4; |
| 3580 static const int kCalleeIndex = 5; | 3576 static const int kCalleeIndex = 5; |
| 3581 static const int kContextSaveIndex = 6; | 3577 static const int kContextSaveIndex = 6; |
| 3582 static const int kNewTargetIndex = 7; | 3578 static const int kNewTargetIndex = 7; |
| 3583 | 3579 |
| 3584 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, | 3580 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, |
| (...skipping 6413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9998 */ | 9994 */ |
| 9999 | 9995 |
| 10000 | 9996 |
| 10001 } // namespace v8 | 9997 } // namespace v8 |
| 10002 | 9998 |
| 10003 | 9999 |
| 10004 #undef TYPE_CHECK | 10000 #undef TYPE_CHECK |
| 10005 | 10001 |
| 10006 | 10002 |
| 10007 #endif // INCLUDE_V8_H_ | 10003 #endif // INCLUDE_V8_H_ |
| OLD | NEW |