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

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

Issue 1722733002: In background compilation make a copy of Field in order to freeze its state (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: e Created 4 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
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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } 874 }
875 }; 875 };
876 876
877 877
878 class RawField : public RawObject { 878 class RawField : public RawObject {
879 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); 879 RAW_HEAP_OBJECT_IMPLEMENTATION(Field);
880 880
881 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 881 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
882 RawString* name_; 882 RawString* name_;
883 RawObject* owner_; // Class or patch class or mixin class 883 RawObject* owner_; // Class or patch class or mixin class
884 // where this field is defined. 884 // where this field is defined or original field.
885 RawAbstractType* type_; 885 RawAbstractType* type_;
886 union { 886 union {
887 RawInstance* static_value_; // Value for static fields. 887 RawInstance* static_value_; // Value for static fields.
888 RawSmi* offset_; // Offset in words for instance fields. 888 RawSmi* offset_; // Offset in words for instance fields.
889 } value_; 889 } value_;
890 union { 890 union {
891 // When precompiling we need to save the static initializer function here 891 // When precompiling we need to save the static initializer function here
892 // so that code for it can be generated. 892 // so that code for it can be generated.
893 RawFunction* precompiled_; // Static initializer function - precompiling. 893 RawFunction* precompiled_; // Static initializer function - precompiling.
894 // When generating script snapshots after running the application it is 894 // When generating script snapshots after running the application it is
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2351 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2352 kTypedDataInt8ArrayViewCid + 15); 2352 kTypedDataInt8ArrayViewCid + 15);
2353 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2353 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2354 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2354 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2355 return (kNullCid - kTypedDataInt8ArrayCid); 2355 return (kNullCid - kTypedDataInt8ArrayCid);
2356 } 2356 }
2357 2357
2358 } // namespace dart 2358 } // namespace dart
2359 2359
2360 #endif // VM_RAW_OBJECT_H_ 2360 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698