OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3035 static void CheckCast(v8::Value* obj); | 3035 static void CheckCast(v8::Value* obj); |
3036 }; | 3036 }; |
3037 | 3037 |
3038 | 3038 |
3039 /** | 3039 /** |
3040 * A JavaScript value that wraps a C++ void*. This type of value is mainly used | 3040 * A JavaScript value that wraps a C++ void*. This type of value is mainly used |
3041 * to associate C++ data structures with JavaScript objects. | 3041 * to associate C++ data structures with JavaScript objects. |
3042 */ | 3042 */ |
3043 class V8_EXPORT External : public Value { | 3043 class V8_EXPORT External : public Value { |
3044 public: | 3044 public: |
| 3045 static Local<External> New(Isolate* isolate, void* value); |
| 3046 // Deprecated, do not use. |
3045 static Local<External> New(void* value); | 3047 static Local<External> New(void* value); |
3046 V8_INLINE static External* Cast(Value* obj); | 3048 V8_INLINE static External* Cast(Value* obj); |
3047 void* Value() const; | 3049 void* Value() const; |
3048 private: | 3050 private: |
3049 static void CheckCast(v8::Value* obj); | 3051 static void CheckCast(v8::Value* obj); |
3050 }; | 3052 }; |
3051 | 3053 |
3052 | 3054 |
3053 // --- Templates --- | 3055 // --- Templates --- |
3054 | 3056 |
(...skipping 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6505 */ | 6507 */ |
6506 | 6508 |
6507 | 6509 |
6508 } // namespace v8 | 6510 } // namespace v8 |
6509 | 6511 |
6510 | 6512 |
6511 #undef TYPE_CHECK | 6513 #undef TYPE_CHECK |
6512 | 6514 |
6513 | 6515 |
6514 #endif // V8_H_ | 6516 #endif // V8_H_ |
OLD | NEW |