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

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

Issue 1739963002: Remember token position where a function was inlined (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « runtime/vm/precompiler.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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_); 1045 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_);
1046 } 1046 }
1047 }; 1047 };
1048 1048
1049 1049
1050 class RawCode : public RawObject { 1050 class RawCode : public RawObject {
1051 enum InlinedMetadataIndex { 1051 enum InlinedMetadataIndex {
1052 kInlinedIntervalsIndex = 0, 1052 kInlinedIntervalsIndex = 0,
1053 kInlinedIdToFunctionIndex = 1, 1053 kInlinedIdToFunctionIndex = 1,
1054 kInlinedCallerIdMapIndex = 2, 1054 kInlinedCallerIdMapIndex = 2,
1055 kInlinedMetadataSize = 3, 1055 kInlinedIdToTokenPosIndex = 3,
1056 kInlinedMetadataSize = 4,
1056 }; 1057 };
1057 1058
1058 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 1059 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
1059 1060
1060 uword entry_point_; 1061 uword entry_point_;
1061 1062
1062 RawObject** from() { 1063 RawObject** from() {
1063 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); 1064 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_);
1064 } 1065 }
1065 RawInstructions* active_instructions_; 1066 RawInstructions* active_instructions_;
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2352 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2352 kTypedDataInt8ArrayViewCid + 15); 2353 kTypedDataInt8ArrayViewCid + 15);
2353 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2354 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2354 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2355 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2355 return (kNullCid - kTypedDataInt8ArrayCid); 2356 return (kNullCid - kTypedDataInt8ArrayCid);
2356 } 2357 }
2357 2358
2358 } // namespace dart 2359 } // namespace dart
2359 2360
2360 #endif // VM_RAW_OBJECT_H_ 2361 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698