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

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

Issue 1268783002: Fix inlining information: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 4 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/profiler_service.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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 RawObject** to() { 968 RawObject** to() {
969 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_); 969 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_);
970 } 970 }
971 }; 971 };
972 972
973 973
974 class RawCode : public RawObject { 974 class RawCode : public RawObject {
975 enum InlinedMetadataIndex { 975 enum InlinedMetadataIndex {
976 kInlinedIntervalsIndex = 0, 976 kInlinedIntervalsIndex = 0,
977 kInlinedIdToFunctionIndex = 1, 977 kInlinedIdToFunctionIndex = 1,
978 kInlinedMetadataSize = 2, 978 kInlinedCallerIdMapIndex = 2,
979 kInlinedMetadataSize = 3,
979 }; 980 };
980 981
981 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 982 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
982 983
983 RawObject** from() { 984 RawObject** from() {
984 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 985 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
985 } 986 }
986 RawInstructions* instructions_; 987 RawInstructions* instructions_;
987 // If owner_ is Function::null() the owner is a regular stub. 988 // If owner_ is Function::null() the owner is a regular stub.
988 // If owner_ is a Class the owner is the allocation stub for that class. 989 // If owner_ is a Class the owner is the allocation stub for that class.
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2193 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2193 kTypedDataInt8ArrayViewCid + 15); 2194 kTypedDataInt8ArrayViewCid + 15);
2194 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2195 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2195 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2196 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2196 return (kNullCid - kTypedDataInt8ArrayCid); 2197 return (kNullCid - kTypedDataInt8ArrayCid);
2197 } 2198 }
2198 2199
2199 } // namespace dart 2200 } // namespace dart
2200 2201
2201 #endif // VM_RAW_OBJECT_H_ 2202 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698