OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class DartHandleProxy { | 47 class DartHandleProxy { |
48 public: | 48 public: |
49 static v8::Handle<v8::Value> create(Dart_Handle value); | 49 static v8::Handle<v8::Value> create(Dart_Handle value); |
50 static v8::Handle<v8::Value> createTypeProxy(Dart_Handle value, bool showSta
tics); | 50 static v8::Handle<v8::Value> createTypeProxy(Dart_Handle value, bool showSta
tics); |
51 static v8::Handle<v8::Value> createLibraryProxy(Dart_Handle value, intptr_t
libraryId, Dart_Handle prefix, bool asGlobal); | 51 static v8::Handle<v8::Value> createLibraryProxy(Dart_Handle value, intptr_t
libraryId, Dart_Handle prefix, bool asGlobal); |
52 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); | 52 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); |
53 static v8::Handle<v8::Value> evaluate(Dart_Handle target, Dart_Handle expres
sion, Dart_Handle localVariables); | 53 static v8::Handle<v8::Value> evaluate(Dart_Handle target, Dart_Handle expres
sion, Dart_Handle localVariables); |
54 | 54 |
55 static bool isDartProxy(v8::Handle<v8::Value>); | 55 static bool isDartProxy(v8::Handle<v8::Value>); |
| 56 static bool isDartProxy(v8::Handle<v8::Value>, v8::Isolate*); |
56 static const char* getJavaScriptType(v8::Handle<v8::Value>); | 57 static const char* getJavaScriptType(v8::Handle<v8::Value>); |
57 static Node* toNativeNode(v8::Handle<v8::Value>); | 58 static Node* toNativeNode(v8::Handle<v8::Value>); |
58 static Dart_Handle unwrapValue(v8::Handle<v8::Value>); | 59 static Dart_Handle unwrapValue(v8::Handle<v8::Value>); |
59 | 60 |
60 static DartPersistentValue* readPointerFromProxy(v8::Handle<v8::Value>); | 61 static DartPersistentValue* readPointerFromProxy(v8::Handle<v8::Value>); |
61 static void writePointerToProxy(v8::Local<v8::Object> proxy, Dart_Handle); | 62 static void writePointerToProxy(v8::Local<v8::Object> proxy, Dart_Handle); |
62 | 63 |
63 struct CallbackInfo; | 64 struct CallbackInfo; |
64 }; | 65 }; |
65 | 66 |
(...skipping 12 matching lines...) Expand all Loading... |
78 public: | 79 public: |
79 Dart_PersistentHandle handle; | 80 Dart_PersistentHandle handle; |
80 | 81 |
81 DartScopes(v8::Local<v8::Object> v8Handle, bool disableBreak = false); | 82 DartScopes(v8::Local<v8::Object> v8Handle, bool disableBreak = false); |
82 ~DartScopes(); | 83 ~DartScopes(); |
83 }; | 84 }; |
84 | 85 |
85 } | 86 } |
86 | 87 |
87 #endif // DartHandleProxy_h | 88 #endif // DartHandleProxy_h |
OLD | NEW |