Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: Source/WebCore/bindings/dart/DartUtilities.h

Issue 9837116: DOM wrappers that are not retained from Dart should be collected. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Rebased with proper shutdown semantics. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011, Google Inc. 1 // Copyright 2011, Google Inc.
2 // All rights reserved. 2 // 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 static int* recursionForIsolate(Dart_Isolate); 120 static int* recursionForIsolate(Dart_Isolate);
121 static int* recursionForCurrentIsolate(); 121 static int* recursionForCurrentIsolate();
122 122
123 static ScriptExecutionContext* scriptExecutionContext(); 123 static ScriptExecutionContext* scriptExecutionContext();
124 124
125 static bool processingUserGesture(); 125 static bool processingUserGesture();
126 126
127 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception); 127 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception);
128 static PassRefPtr<ScriptCallStack> createScriptCallStack(); 128 static PassRefPtr<ScriptCallStack> createScriptCallStack();
129 129
130 static Dart_Handle createWeakPersistentHandle(Dart_Handle object, void* peer , Dart_WeakPersistentHandleFinalizer);
131 static void disposeWeakPersistentHandles();
132
130 static const uint8_t* fullSnapshot(); 133 static const uint8_t* fullSnapshot();
131 134
132 static void reportProblem(ScriptExecutionContext*, Dart_Handle); 135 static void reportProblem(ScriptExecutionContext*, Dart_Handle);
133 136
134 static Dart_Handle invalidNumberOfArgumentsException() 137 static Dart_Handle invalidNumberOfArgumentsException()
135 { 138 {
136 return Dart_NewString("Invalid number of arguments"); 139 return Dart_NewString("Invalid number of arguments");
137 } 140 }
138 141
139 static Dart_Handle conditionalFunctionalityException() 142 static Dart_Handle conditionalFunctionalityException()
(...skipping 20 matching lines...) Expand all
160 DartApiScope() { Dart_EnterScope(); } 163 DartApiScope() { Dart_EnterScope(); }
161 ~DartApiScope() { Dart_ExitScope(); } 164 ~DartApiScope() { Dart_ExitScope(); }
162 }; 165 };
163 166
164 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__ FILE__, __LINE__) 167 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__ FILE__, __LINE__)
165 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION()) ; 168 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION()) ;
166 169
167 } // namespace WebCore 170 } // namespace WebCore
168 171
169 #endif // DartUtilities_h 172 #endif // DartUtilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698