| OLD | NEW | 
|     1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file |     1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
|     2 // for details. All rights reserved. Use of this source code is governed by a |     2 // for details. All rights reserved. Use of this source code is governed by a | 
|     3 // BSD-style license that can be found in the LICENSE file. |     3 // BSD-style license that can be found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "bin/builtin.h" |     5 #include "bin/builtin.h" | 
|     6 #include "include/dart_api.h" |     6 #include "include/dart_api.h" | 
|     7 #include "include/dart_mirrors_api.h" |     7 #include "include/dart_mirrors_api.h" | 
|     8 #include "include/dart_native_api.h" |     8 #include "include/dart_native_api.h" | 
|     9 #include "include/dart_tools_api.h" |     9 #include "include/dart_tools_api.h" | 
|    10 #include "platform/assert.h" |    10 #include "platform/assert.h" | 
| (...skipping 7267 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  7278   Dart_ExitScope(); |  7278   Dart_ExitScope(); | 
|  7279  |  7279  | 
|  7280   // Delete the native ports. |  7280   // Delete the native ports. | 
|  7281   EXPECT(Dart_CloseNativePort(port_id1)); |  7281   EXPECT(Dart_CloseNativePort(port_id1)); | 
|  7282 } |  7282 } | 
|  7283  |  7283  | 
|  7284  |  7284  | 
|  7285 static Dart_Isolate RunLoopTestCallback(const char* script_name, |  7285 static Dart_Isolate RunLoopTestCallback(const char* script_name, | 
|  7286                                         const char* main, |  7286                                         const char* main, | 
|  7287                                         const char* package_root, |  7287                                         const char* package_root, | 
|  7288                                         const char** package_map, |  7288                                         const char* package_config, | 
|  7289                                         Dart_IsolateFlags* flags, |  7289                                         Dart_IsolateFlags* flags, | 
|  7290                                         void* data, |  7290                                         void* data, | 
|  7291                                         char** error) { |  7291                                         char** error) { | 
|  7292   const char* kScriptChars = |  7292   const char* kScriptChars = | 
|  7293       "import 'builtin';\n" |  7293       "import 'builtin';\n" | 
|  7294       "import 'dart:isolate';\n" |  7294       "import 'dart:isolate';\n" | 
|  7295       "void main(shouldThrowException) {\n" |  7295       "void main(shouldThrowException) {\n" | 
|  7296       "  var rp = new RawReceivePort();\n" |  7296       "  var rp = new RawReceivePort();\n" | 
|  7297       "  rp.handler = (msg) {\n" |  7297       "  rp.handler = (msg) {\n" | 
|  7298       "    rp.close();\n" |  7298       "    rp.close();\n" | 
| (...skipping 2287 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  9586   EXPECT_SUBSTRING("\"cat\":\"Compiler\"", buffer); |  9586   EXPECT_SUBSTRING("\"cat\":\"Compiler\"", buffer); | 
|  9587   EXPECT_SUBSTRING("\"name\":\"CompileFunction\"", buffer); |  9587   EXPECT_SUBSTRING("\"name\":\"CompileFunction\"", buffer); | 
|  9588   EXPECT_SUBSTRING("\"function\":\"::_main\"", buffer); |  9588   EXPECT_SUBSTRING("\"function\":\"::_main\"", buffer); | 
|  9589  |  9589  | 
|  9590   // Heartbeat test for new events. |  9590   // Heartbeat test for new events. | 
|  9591   EXPECT_SUBSTRING("\"name\":\"TestVMDuration2\"", buffer); |  9591   EXPECT_SUBSTRING("\"name\":\"TestVMDuration2\"", buffer); | 
|  9592   EXPECT_SUBSTRING("\"function\":\"::_bar\"", buffer); |  9592   EXPECT_SUBSTRING("\"function\":\"::_bar\"", buffer); | 
|  9593 } |  9593 } | 
|  9594  |  9594  | 
|  9595 }  // namespace dart |  9595 }  // namespace dart | 
| OLD | NEW |