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

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

Issue 1544583002: For background compilation we copy ICData so that it is immutable during comnpilation. However, we … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: l Created 5 years 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
« runtime/vm/object.cc ('K') | « runtime/vm/pages.cc ('k') | 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 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 friend class SnapshotReader; 1395 friend class SnapshotReader;
1396 }; 1396 };
1397 1397
1398 1398
1399 class RawICData : public RawObject { 1399 class RawICData : public RawObject {
1400 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); 1400 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData);
1401 1401
1402 RawObject** from() { 1402 RawObject** from() {
1403 return reinterpret_cast<RawObject**>(&ptr()->owner_); 1403 return reinterpret_cast<RawObject**>(&ptr()->owner_);
1404 } 1404 }
1405 RawFunction* owner_; // Parent/calling function of this IC. 1405 RawObject* owner_; // Parent/calling function or original IC of cloned IC.
1406 RawString* target_name_; // Name of target function. 1406 RawString* target_name_; // Name of target function.
zra 2015/12/21 19:31:47 Maybe un-align the rest of these as well.
srdjan 2015/12/21 20:22:49 Done.
1407 RawArray* args_descriptor_; // Arguments descriptor. 1407 RawArray* args_descriptor_; // Arguments descriptor.
1408 RawArray* ic_data_; // Contains class-ids, target and count. 1408 RawArray* ic_data_; // Contains class-ids, target and count.
1409 RawObject** to() { 1409 RawObject** to() {
1410 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); 1410 return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
1411 } 1411 }
1412 int32_t deopt_id_; // Deoptimization id corresponding to this IC. 1412 int32_t deopt_id_; // Deoptimization id corresponding to this IC.
1413 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, 1413 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons,
1414 // is closure call, JS warning issued, range feedback. 1414 // is closure call, JS warning issued, range feedback.
1415 }; 1415 };
1416 1416
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2269 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2270 kTypedDataInt8ArrayViewCid + 15); 2270 kTypedDataInt8ArrayViewCid + 15);
2271 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2271 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2272 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2272 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2273 return (kNullCid - kTypedDataInt8ArrayCid); 2273 return (kNullCid - kTypedDataInt8ArrayCid);
2274 } 2274 }
2275 2275
2276 } // namespace dart 2276 } // namespace dart
2277 2277
2278 #endif // VM_RAW_OBJECT_H_ 2278 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/pages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698