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

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

Issue 9332007: Spelling corrections to the API header file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « runtime/include/dart_api.h ('k') | no next file » | 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 MessageWriter writer(&buffer, &allocator); 683 MessageWriter writer(&buffer, &allocator);
684 684
685 writer.WriteMessage(len, data); 685 writer.WriteMessage(len, data);
686 686
687 // Post the message at the given port. 687 // Post the message at the given port.
688 return PortMap::PostMessage(new Message( 688 return PortMap::PostMessage(new Message(
689 port_id, Message::kIllegalPort, buffer, Message::kNormalPriority)); 689 port_id, Message::kIllegalPort, buffer, Message::kNormalPriority));
690 } 690 }
691 691
692 692
693 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* root) { 693 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message) {
694 uint8_t* buffer = NULL; 694 uint8_t* buffer = NULL;
695 MessageWriter writer(&buffer, allocator); 695 MessageWriter writer(&buffer, allocator);
696 696
697 writer.WriteCMessage(root); 697 writer.WriteCMessage(message);
698 698
699 // Post the message at the given port. 699 // Post the message at the given port.
700 return PortMap::PostMessage(new Message( 700 return PortMap::PostMessage(new Message(
701 port_id, Message::kIllegalPort, buffer, Message::kNormalPriority)); 701 port_id, Message::kIllegalPort, buffer, Message::kNormalPriority));
702 } 702 }
703 703
704 704
705 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle handle) { 705 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle handle) {
706 Isolate* isolate = Isolate::Current(); 706 Isolate* isolate = Isolate::Current();
707 CHECK_ISOLATE(isolate); 707 CHECK_ISOLATE(isolate);
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 } 2432 }
2433 delete debug_region; 2433 delete debug_region;
2434 } else { 2434 } else {
2435 *buffer = NULL; 2435 *buffer = NULL;
2436 *buffer_size = 0; 2436 *buffer_size = 0;
2437 } 2437 }
2438 } 2438 }
2439 2439
2440 2440
2441 } // namespace dart 2441 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698