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

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

Issue 2768153002: When generating CodeSourceMaps, reassign function ids once per function instead of once per inlinin… (Closed)
Patch Set: Created 3 years, 9 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/code_descriptors.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 RUNTIME_VM_RAW_OBJECT_H_ 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_
6 #define RUNTIME_VM_RAW_OBJECT_H_ 6 #define RUNTIME_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/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 RawArray* hide_names_; // blacklist of names that are not exported. 1108 RawArray* hide_names_; // blacklist of names that are not exported.
1109 RawField* metadata_field_; // remembers the token pos of metadata if any, 1109 RawField* metadata_field_; // remembers the token pos of metadata if any,
1110 // and the metadata values if computed. 1110 // and the metadata values if computed.
1111 RawObject** to() { 1111 RawObject** to() {
1112 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_); 1112 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_);
1113 } 1113 }
1114 }; 1114 };
1115 1115
1116 1116
1117 class RawCode : public RawObject { 1117 class RawCode : public RawObject {
1118 enum InlinedMetadataIndex {
1119 kInlinedIntervalsIndex = 0,
1120 kInlinedIdToFunctionIndex = 1,
1121 kInlinedCallerIdMapIndex = 2,
1122 kInlinedIdToTokenPosIndex = 3,
1123 kInlinedMetadataSize = 4,
1124 };
1125
1126 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 1118 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
1127 1119
1128 uword entry_point_; // Accessed from generated code. 1120 uword entry_point_; // Accessed from generated code.
1129 uword checked_entry_point_; // Accessed from generated code (AOT only). 1121 uword checked_entry_point_; // Accessed from generated code (AOT only).
1130 1122
1131 RawObject** from() { 1123 RawObject** from() {
1132 return reinterpret_cast<RawObject**>(&ptr()->object_pool_); 1124 return reinterpret_cast<RawObject**>(&ptr()->object_pool_);
1133 } 1125 }
1134 RawObjectPool* object_pool_; // Accessed from generated code. 1126 RawObjectPool* object_pool_; // Accessed from generated code.
1135 RawInstructions* instructions_; // Accessed from generated code. 1127 RawInstructions* instructions_; // Accessed from generated code.
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2434 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2443 kTypedDataInt8ArrayViewCid + 15); 2435 kTypedDataInt8ArrayViewCid + 15);
2444 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2436 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2445 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2437 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2446 return (kNullCid - kTypedDataInt8ArrayCid); 2438 return (kNullCid - kTypedDataInt8ArrayCid);
2447 } 2439 }
2448 2440
2449 } // namespace dart 2441 } // namespace dart
2450 2442
2451 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2443 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698