| 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 "include/dart_api.h" | 5 #include "include/dart_api.h" | 
| 6 | 6 | 
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" | 
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" | 
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" | 
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" | 
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 639 } | 639 } | 
| 640 | 640 | 
| 641 | 641 | 
| 642 DART_EXPORT Dart_Handle Dart_HandleMessage() { | 642 DART_EXPORT Dart_Handle Dart_HandleMessage() { | 
| 643   Isolate* isolate = Isolate::Current(); | 643   Isolate* isolate = Isolate::Current(); | 
| 644   // Process all OOB messages and at most one normal message. | 644   // Process all OOB messages and at most one normal message. | 
| 645   Message* message = NULL; | 645   Message* message = NULL; | 
| 646   Message::Priority priority = Message::kNormalPriority; | 646   Message::Priority priority = Message::kNormalPriority; | 
| 647   do { | 647   do { | 
| 648     DARTSCOPE(isolate); | 648     DARTSCOPE(isolate); | 
| 649     message = isolate->message_handler()->DequeueNoWait(); | 649     message = isolate->message_handler()->queue()->DequeueNoWait(); | 
| 650     if (message == NULL) { | 650     if (message == NULL) { | 
| 651       break; | 651       break; | 
| 652     } | 652     } | 
| 653     priority = message->priority(); | 653     priority = message->priority(); | 
| 654     if (priority == Message::kOOBPriority) { | 654     if (priority == Message::kOOBPriority) { | 
| 655       // TODO(turnidge): Out of band messages will not go through the | 655       // TODO(turnidge): Out of band messages will not go through the | 
| 656       // regular message handler.  Instead they will be dispatched to | 656       // regular message handler.  Instead they will be dispatched to | 
| 657       // special vm code.  Implement. | 657       // special vm code.  Implement. | 
| 658       UNIMPLEMENTED(); | 658       UNIMPLEMENTED(); | 
| 659     } | 659     } | 
| (...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2712       *buffer = NULL; | 2712       *buffer = NULL; | 
| 2713     } | 2713     } | 
| 2714     delete debug_region; | 2714     delete debug_region; | 
| 2715   } else { | 2715   } else { | 
| 2716     *buffer = NULL; | 2716     *buffer = NULL; | 
| 2717     *buffer_size = 0; | 2717     *buffer_size = 0; | 
| 2718   } | 2718   } | 
| 2719 } | 2719 } | 
| 2720 | 2720 | 
| 2721 }  // namespace dart | 2721 }  // namespace dart | 
| OLD | NEW | 
|---|