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

Side by Side Diff: runtime/vm/message.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « runtime/vm/memory_region.cc ('k') | runtime/vm/message.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef RUNTIME_VM_MESSAGE_H_ 5 #ifndef RUNTIME_VM_MESSAGE_H_
6 #define RUNTIME_VM_MESSAGE_H_ 6 #define RUNTIME_VM_MESSAGE_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (len_ > 0) { 80 if (len_ > 0) {
81 free(data_); 81 free(data_);
82 } 82 }
83 } 83 }
84 84
85 Dart_Port dest_port() const { return dest_port_; } 85 Dart_Port dest_port() const { return dest_port_; }
86 uint8_t* data() const { 86 uint8_t* data() const {
87 ASSERT(len_ > 0); 87 ASSERT(len_ > 0);
88 return data_; 88 return data_;
89 } 89 }
90 intptr_t len() const { 90 intptr_t len() const { return len_; }
91 return len_;
92 }
93 RawObject* raw_obj() const { 91 RawObject* raw_obj() const {
94 ASSERT(len_ == 0); 92 ASSERT(len_ == 0);
95 return reinterpret_cast<RawObject*>(data_); 93 return reinterpret_cast<RawObject*>(data_);
96 } 94 }
97 Priority priority() const { return priority_; } 95 Priority priority() const { return priority_; }
98 96
99 bool IsOOB() const { return priority_ == Message::kOOBPriority; } 97 bool IsOOB() const { return priority_ == Message::kOOBPriority; }
100 bool IsRaw() const { return len_ == 0; } 98 bool IsRaw() const { return len_ == 0; }
101 99
102 bool RedirectToDeliveryFailurePort(); 100 bool RedirectToDeliveryFailurePort();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 private: 161 private:
164 Message* head_; 162 Message* head_;
165 Message* tail_; 163 Message* tail_;
166 164
167 DISALLOW_COPY_AND_ASSIGN(MessageQueue); 165 DISALLOW_COPY_AND_ASSIGN(MessageQueue);
168 }; 166 };
169 167
170 } // namespace dart 168 } // namespace dart
171 169
172 #endif // RUNTIME_VM_MESSAGE_H_ 170 #endif // RUNTIME_VM_MESSAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/memory_region.cc ('k') | runtime/vm/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698