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

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

Issue 2402773003: Update RawCode::to() after moving fields. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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 #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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 // If return_address_metadata_ is a Smi, it is the offset to the prologue. 1146 // If return_address_metadata_ is a Smi, it is the offset to the prologue.
1147 // Else, return_address_metadata_ is null. 1147 // Else, return_address_metadata_ is null.
1148 NOT_IN_PRECOMPILED(RawObject* return_address_metadata_); 1148 NOT_IN_PRECOMPILED(RawObject* return_address_metadata_);
1149 NOT_IN_PRECOMPILED(RawLocalVarDescriptors* var_descriptors_); 1149 NOT_IN_PRECOMPILED(RawLocalVarDescriptors* var_descriptors_);
1150 NOT_IN_PRECOMPILED(RawCodeSourceMap* code_source_map_); 1150 NOT_IN_PRECOMPILED(RawCodeSourceMap* code_source_map_);
1151 NOT_IN_PRECOMPILED(RawArray* comments_); 1151 NOT_IN_PRECOMPILED(RawArray* comments_);
1152 RawObject** to() { 1152 RawObject** to() {
1153 #if defined(DART_PRECOMPILED_RUNTIME) 1153 #if defined(DART_PRECOMPILED_RUNTIME)
1154 return reinterpret_cast<RawObject**>(&ptr()->stackmaps_); 1154 return reinterpret_cast<RawObject**>(&ptr()->stackmaps_);
1155 #else 1155 #else
1156 return reinterpret_cast<RawObject**>(&ptr()->return_address_metadata_); 1156 return reinterpret_cast<RawObject**>(&ptr()->comments_);
1157 #endif 1157 #endif
1158 } 1158 }
1159 1159
1160 // Compilation timestamp. 1160 // Compilation timestamp.
1161 NOT_IN_PRECOMPILED(int64_t compile_timestamp_); 1161 NOT_IN_PRECOMPILED(int64_t compile_timestamp_);
1162 1162
1163 // state_bits_ is a bitfield with three fields: 1163 // state_bits_ is a bitfield with three fields:
1164 // The optimized bit, the alive bit, and a count of the number of pointer 1164 // The optimized bit, the alive bit, and a count of the number of pointer
1165 // offsets. 1165 // offsets.
1166 // Alive: If true, the embedded object pointers will be visited during GC. 1166 // Alive: If true, the embedded object pointers will be visited during GC.
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2483 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2484 kTypedDataInt8ArrayViewCid + 15); 2484 kTypedDataInt8ArrayViewCid + 15);
2485 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2485 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2486 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2486 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2487 return (kNullCid - kTypedDataInt8ArrayCid); 2487 return (kNullCid - kTypedDataInt8ArrayCid);
2488 } 2488 }
2489 2489
2490 } // namespace dart 2490 } // namespace dart
2491 2491
2492 #endif // VM_RAW_OBJECT_H_ 2492 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698