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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 9570051: Revert my last change. Odd test failures that I will investigate tomorrow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698