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 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3598 DataView(); | 3598 DataView(); |
3599 static void CheckCast(Value* obj); | 3599 static void CheckCast(Value* obj); |
3600 }; | 3600 }; |
3601 | 3601 |
3602 | 3602 |
3603 /** | 3603 /** |
3604 * An instance of the built-in Date constructor (ECMA-262, 15.9). | 3604 * An instance of the built-in Date constructor (ECMA-262, 15.9). |
3605 */ | 3605 */ |
3606 class V8_EXPORT Date : public Object { | 3606 class V8_EXPORT Date : public Object { |
3607 public: | 3607 public: |
3608 static Local<Value> New(Isolate* isolate, double time); | 3608 static V8_DEPRECATE_SOON("Use maybe version.", |
| 3609 Local<Value> New(Isolate* isolate, double time)); |
| 3610 static MaybeLocal<Value> New(Local<Context> context, double time); |
3609 | 3611 |
3610 /** | 3612 /** |
3611 * A specialization of Value::NumberValue that is more efficient | 3613 * A specialization of Value::NumberValue that is more efficient |
3612 * because we know the structure of this object. | 3614 * because we know the structure of this object. |
3613 */ | 3615 */ |
3614 double ValueOf() const; | 3616 double ValueOf() const; |
3615 | 3617 |
3616 V8_INLINE static Date* Cast(v8::Value* obj); | 3618 V8_INLINE static Date* Cast(v8::Value* obj); |
3617 | 3619 |
3618 /** | 3620 /** |
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6087 * been caught an empty handle is returned. | 6089 * been caught an empty handle is returned. |
6088 * | 6090 * |
6089 * The returned handle is valid until this TryCatch block has been destroyed. | 6091 * The returned handle is valid until this TryCatch block has been destroyed. |
6090 */ | 6092 */ |
6091 Local<Value> Exception() const; | 6093 Local<Value> Exception() const; |
6092 | 6094 |
6093 /** | 6095 /** |
6094 * Returns the .stack property of the thrown object. If no .stack | 6096 * Returns the .stack property of the thrown object. If no .stack |
6095 * property is present an empty handle is returned. | 6097 * property is present an empty handle is returned. |
6096 */ | 6098 */ |
6097 Local<Value> StackTrace() const; | 6099 V8_DEPRECATE_SOON("Use maybe version.", Local<Value> StackTrace()) const; |
| 6100 MaybeLocal<Value> StackTrace(Local<Context> context) const; |
6098 | 6101 |
6099 /** | 6102 /** |
6100 * Returns the message associated with this exception. If there is | 6103 * Returns the message associated with this exception. If there is |
6101 * no message associated an empty handle is returned. | 6104 * no message associated an empty handle is returned. |
6102 * | 6105 * |
6103 * The returned handle is valid until this TryCatch block has been | 6106 * The returned handle is valid until this TryCatch block has been |
6104 * destroyed. | 6107 * destroyed. |
6105 */ | 6108 */ |
6106 Local<v8::Message> Message() const; | 6109 Local<v8::Message> Message() const; |
6107 | 6110 |
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7936 */ | 7939 */ |
7937 | 7940 |
7938 | 7941 |
7939 } // namespace v8 | 7942 } // namespace v8 |
7940 | 7943 |
7941 | 7944 |
7942 #undef TYPE_CHECK | 7945 #undef TYPE_CHECK |
7943 | 7946 |
7944 | 7947 |
7945 #endif // V8_H_ | 7948 #endif // V8_H_ |
OLD | NEW |