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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class Node; | 43 class Node; |
44 class DartScriptValue; | 44 class DartScriptValue; |
45 | 45 |
46 class DartHandleProxy { | 46 class DartHandleProxy { |
47 public: | 47 public: |
48 static v8::Handle<v8::Value> create(Dart_Handle value); | 48 static v8::Handle<v8::Value> create(Dart_Handle value); |
49 static v8::Handle<v8::Value> createTypeProxy(Dart_Handle value, bool showSta
tics); | 49 static v8::Handle<v8::Value> createTypeProxy(Dart_Handle value, bool showSta
tics); |
50 static v8::Handle<v8::Value> createLibraryProxy(Dart_Handle value, int32_t l
ibraryId, Dart_Handle prefix); | 50 static v8::Handle<v8::Value> createLibraryProxy(Dart_Handle value, int32_t l
ibraryId, Dart_Handle prefix); |
51 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); | 51 static v8::Handle<v8::Value> createLocalScopeProxy(Dart_Handle localVariable
s); |
| 52 static v8::Handle<v8::Value> evaluate(Dart_Handle target, Dart_Handle expres
sion, Dart_Handle localVariables); |
52 | 53 |
53 static bool isDartProxy(v8::Handle<v8::Value>); | 54 static bool isDartProxy(v8::Handle<v8::Value>); |
54 static const char* getJavaScriptType(v8::Handle<v8::Value>); | 55 static const char* getJavaScriptType(v8::Handle<v8::Value>); |
55 static Node* toNativeNode(v8::Handle<v8::Value>); | 56 static Node* toNativeNode(v8::Handle<v8::Value>); |
56 static Dart_Handle unwrapValue(v8::Handle<v8::Value>); | 57 static Dart_Handle unwrapValue(v8::Handle<v8::Value>); |
57 | 58 |
58 }; | 59 }; |
59 | 60 |
60 /** | 61 /** |
61 * Helper class to manage all scopes that must be entered to safely invoke Dart | 62 * Helper class to manage all scopes that must be entered to safely invoke Dart |
62 * code. | 63 * code. |
63 */ | 64 */ |
64 class DartScopes { | 65 class DartScopes { |
65 private: | 66 private: |
66 DartScriptValue* scriptValue; | 67 DartScriptValue* scriptValue; |
67 DartIsolateScope scope; | 68 DartIsolateScope scope; |
68 DartApiScope apiScope; | 69 DartApiScope apiScope; |
69 Dart_ExceptionPauseInfo previousPauseInfo; | 70 Dart_ExceptionPauseInfo previousPauseInfo; |
| 71 bool disableBreak; |
70 | 72 |
71 public: | 73 public: |
72 Dart_PersistentHandle handle; | 74 Dart_PersistentHandle handle; |
73 | 75 |
74 DartScopes(v8::Local<v8::Object> v8Handle); | 76 DartScopes(v8::Local<v8::Object> v8Handle, bool disableBreak = false); |
75 ~DartScopes(); | 77 ~DartScopes(); |
76 }; | 78 }; |
77 | 79 |
78 } | 80 } |
79 | 81 |
80 #endif // DartHandleProxy_h | 82 #endif // DartHandleProxy_h |
OLD | NEW |