| OLD | NEW |
| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 | 261 |
| 262 static ScriptState* v8ScriptStateForCurrentIsolate(); | 262 static ScriptState* v8ScriptStateForCurrentIsolate(); |
| 263 | 263 |
| 264 static ExecutionContext* scriptExecutionContext(); | 264 static ExecutionContext* scriptExecutionContext(); |
| 265 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo
id TLS. | 265 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo
id TLS. |
| 266 static DartScriptState* currentDartScriptState(); | 266 static DartScriptState* currentDartScriptState(); |
| 267 | 267 |
| 268 static bool processingUserGesture(); | 268 static bool processingUserGesture(); |
| 269 | 269 |
| 270 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen
t, Dart_Handle& exception); | |
| 271 | |
| 272 static PassRefPtr<ScriptCallStack> createScriptCallStack(); | 270 static PassRefPtr<ScriptCallStack> createScriptCallStack(); |
| 273 static ScriptCallFrame getTopFrame(Dart_StackTrace, Dart_Handle& exception); | 271 static ScriptCallFrame getTopFrame(Dart_StackTrace, Dart_Handle& exception); |
| 274 static ScriptCallFrame toScriptCallFrame(Dart_ActivationFrame, Dart_Handle&
exception); | 272 static ScriptCallFrame toScriptCallFrame(Dart_ActivationFrame, Dart_Handle&
exception); |
| 275 | 273 |
| 276 static const uint8_t* vmIsolateSnapshot(); | 274 static const uint8_t* vmIsolateSnapshot(); |
| 277 static const uint8_t* isolateSnapshot(); | 275 static const uint8_t* isolateSnapshot(); |
| 278 | 276 |
| 279 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl
e, String url); | 277 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl
e, String url); |
| 280 | 278 |
| 281 static void reportProblem(ExecutionContext*, const String&, int line = 0, in
t col = 0); | 279 static void reportProblem(ExecutionContext*, const String&, int line = 0, in
t col = 0); |
| (...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 timerStop = currentTimeMS(); \ | 1295 timerStop = currentTimeMS(); \ |
| 1298 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart)); | 1296 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart)); |
| 1299 #else | 1297 #else |
| 1300 #define DART_START_TIMER() | 1298 #define DART_START_TIMER() |
| 1301 #define DART_RECORD_TIMER(msg) | 1299 #define DART_RECORD_TIMER(msg) |
| 1302 #endif | 1300 #endif |
| 1303 | 1301 |
| 1304 } // namespace blink | 1302 } // namespace blink |
| 1305 | 1303 |
| 1306 #endif // DartUtilities_h | 1304 #endif // DartUtilities_h |
| OLD | NEW |