|
1 | 1 | #include "v8.h" |
2 | 2 |
|
3 | 3 | namespace v8 { |
4 | | - |
5 | | - class NativeScriptExtension { |
6 | | - public: |
7 | | - static uint8_t* GetAddress(const v8::Local<v8::Object>& obj); |
8 | 4 |
|
9 | | - static v8::Local<v8::Value>* GetClosureObjects(v8::Isolate *isolate, const v8::Local<v8::Function>& func, int *length); |
| 5 | +class NativeScriptExtension { |
| 6 | + public: |
| 7 | + static unsigned long GetAddress(const v8::Local<v8::Object>& obj); |
10 | 8 |
|
11 | | - static void ReleaseClosureObjects(v8::Local<v8::Value>* closureObjects); |
12 | | - |
13 | | - static void GetAssessorPair(v8::Isolate *isolate, const v8::Local<v8::Object>& obj, const v8::Local<v8::String>& propName, v8::Local<v8::Value>& getter, v8::Local<v8::Value>& setter); |
| 9 | + static v8::Local<v8::Value>* GetClosureObjects(v8::Isolate* isolate, const v8::Local<v8::Function>& func, int* length); |
14 | 10 |
|
15 | | - static v8::Local<v8::Array> GetPropertyKeys(v8::Isolate *isolate, const v8::Local<v8::Context>& context, const v8::Local<v8::Object>& object, bool& success); |
| 11 | + static void ReleaseClosureObjects(v8::Local<v8::Value>* closureObjects); |
16 | 12 |
|
17 | | - static void CpuFeaturesProbe(bool cross_compile); |
18 | | - private: |
19 | | - NativeScriptExtension(); |
| 13 | + static void GetAssessorPair(v8::Isolate* isolate, const v8::Local<v8::Object>& obj, const v8::Local<v8::String>& propName, v8::Local<v8::Value>& getter, v8::Local<v8::Value>& setter); |
20 | 14 |
|
21 | | - // static v8::internal::Handle<v8::internal::FixedArray> GetEnumPropertyKeys(const v8::internal::Handle<v8::internal::JSObject>& object, bool cache_result); |
22 | | - }; |
| 15 | + static v8::Local<v8::Array> GetPropertyKeys(v8::Isolate* isolate, const v8::Local<v8::Context>& context, const v8::Local<v8::Object>& object, bool& success); |
| 16 | + |
| 17 | + static void CpuFeaturesProbe(bool cross_compile); |
| 18 | + private: |
| 19 | + NativeScriptExtension(); |
| 20 | +}; |
23 | 21 | } |
| 22 | + |
0 commit comments