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

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

Issue 2483363002: clang-formats remaining files and adds a presubmit check. (Closed)
Patch Set: Format include file 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/bootstrap.cc ('k') | runtime/vm/snapshot.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 #ifndef RUNTIME_VM_OBJECT_STORE_H_ 5 #ifndef RUNTIME_VM_OBJECT_STORE_H_
6 #define RUNTIME_VM_OBJECT_STORE_H_ 6 #define RUNTIME_VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 #define MAKE_GETTER(_, name) \ 258 #define MAKE_GETTER(_, name) \
259 RawLibrary* name##_library() const { return name##_library_; } 259 RawLibrary* name##_library() const { return name##_library_; }
260 260
261 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_GETTER) 261 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_GETTER)
262 #undef MAKE_GETTER 262 #undef MAKE_GETTER
263 263
264 RawLibrary* bootstrap_library(BootstrapLibraryId index) { 264 RawLibrary* bootstrap_library(BootstrapLibraryId index) {
265 switch (index) { 265 switch (index) {
266 #define MAKE_CASE(CamelName, name) \ 266 #define MAKE_CASE(CamelName, name) \
267 case k##CamelName: \ 267 case k##CamelName: \
268 return name##_library_; 268 return name##_library_;
269 269
270 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_CASE) 270 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_CASE)
271 #undef MAKE_CASE 271 #undef MAKE_CASE
272 272
273 default: 273 default:
274 UNREACHABLE(); 274 UNREACHABLE();
275 return Library::null(); 275 return Library::null();
276 } 276 }
277 } 277 }
278 278
279 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { 279 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) {
280 switch (index) { 280 switch (index) {
281 #define MAKE_CASE(CamelName, name) \ 281 #define MAKE_CASE(CamelName, name) \
282 case k##CamelName: \ 282 case k##CamelName: \
283 name##_library_ = value.raw(); \ 283 name##_library_ = value.raw(); \
284 break; 284 break;
285 285
286 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_CASE) 286 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_CASE)
287 #undef MAKE_CASE 287 #undef MAKE_CASE
288 default: 288 default:
289 UNREACHABLE(); 289 UNREACHABLE();
290 } 290 }
291 } 291 }
292 292
293 void set_builtin_library(const Library& value) { 293 void set_builtin_library(const Library& value) {
294 builtin_library_ = value.raw(); 294 builtin_library_ = value.raw();
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 575
576 friend class Serializer; 576 friend class Serializer;
577 friend class Deserializer; 577 friend class Deserializer;
578 578
579 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 579 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
580 }; 580 };
581 581
582 } // namespace dart 582 } // namespace dart
583 583
584 #endif // RUNTIME_VM_OBJECT_STORE_H_ 584 #endif // RUNTIME_VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698