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

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

Issue 2146713004: More changes to use #ifndef PRODUCT ... #endif explicitly instead of relying on compiler magic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « runtime/vm/metrics.cc ('k') | runtime/vm/object_store.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 VM_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 // Called to initialize objects required by the vm but which invoke 485 // Called to initialize objects required by the vm but which invoke
486 // dart code. If an error occurs the error object is returned otherwise 486 // dart code. If an error occurs the error object is returned otherwise
487 // a null object is returned. 487 // a null object is returned.
488 RawError* PreallocateObjects(); 488 RawError* PreallocateObjects();
489 489
490 void InitKnownObjects(); 490 void InitKnownObjects();
491 491
492 static void Init(Isolate* isolate); 492 static void Init(Isolate* isolate);
493 493
494 #ifndef PRODUCT
494 void PrintToJSONObject(JSONObject* jsobj); 495 void PrintToJSONObject(JSONObject* jsobj);
496 #endif
495 497
496 private: 498 private:
497 ObjectStore(); 499 ObjectStore();
498 500
499 #define OBJECT_STORE_FIELD_LIST(V) \ 501 #define OBJECT_STORE_FIELD_LIST(V) \
500 V(RawClass*, object_class_) \ 502 V(RawClass*, object_class_) \
501 V(RawType*, object_type_) \ 503 V(RawType*, object_type_) \
502 V(RawClass*, null_class_) \ 504 V(RawClass*, null_class_) \
503 V(RawType*, null_type_) \ 505 V(RawType*, null_type_) \
504 V(RawType*, function_type_) \ 506 V(RawType*, function_type_) \
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 608
607 friend class Serializer; 609 friend class Serializer;
608 friend class Deserializer; 610 friend class Deserializer;
609 611
610 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 612 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
611 }; 613 };
612 614
613 } // namespace dart 615 } // namespace dart
614 616
615 #endif // VM_OBJECT_STORE_H_ 617 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/metrics.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698