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

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

Issue 1814623003: Remove Code::active_instructions_. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 kInlinedCallerIdMapIndex = 2, 1057 kInlinedCallerIdMapIndex = 2,
1058 kInlinedIdToTokenPosIndex = 3, 1058 kInlinedIdToTokenPosIndex = 3,
1059 kInlinedMetadataSize = 4, 1059 kInlinedMetadataSize = 4,
1060 }; 1060 };
1061 1061
1062 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 1062 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
1063 1063
1064 uword entry_point_; 1064 uword entry_point_;
1065 1065
1066 RawObject** from() { 1066 RawObject** from() {
1067 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); 1067 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
1068 } 1068 }
1069 RawInstructions* active_instructions_;
1070 RawInstructions* instructions_; 1069 RawInstructions* instructions_;
1071 RawObjectPool* object_pool_; 1070 RawObjectPool* object_pool_;
1072 // If owner_ is Function::null() the owner is a regular stub. 1071 // If owner_ is Function::null() the owner is a regular stub.
1073 // If owner_ is a Class the owner is the allocation stub for that class. 1072 // If owner_ is a Class the owner is the allocation stub for that class.
1074 // Else, owner_ is a regular Dart Function. 1073 // Else, owner_ is a regular Dart Function.
1075 RawObject* owner_; // Function, Null, or a Class. 1074 RawObject* owner_; // Function, Null, or a Class.
1076 RawExceptionHandlers* exception_handlers_; 1075 RawExceptionHandlers* exception_handlers_;
1077 RawPcDescriptors* pc_descriptors_; 1076 RawPcDescriptors* pc_descriptors_;
1078 RawCodeSourceMap* code_source_map_; 1077 RawCodeSourceMap* code_source_map_;
1079 RawArray* stackmaps_; 1078 RawArray* stackmaps_;
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2355 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2354 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2356 kTypedDataInt8ArrayViewCid + 15); 2355 kTypedDataInt8ArrayViewCid + 15);
2357 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2356 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2358 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2357 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2359 return (kNullCid - kTypedDataInt8ArrayCid); 2358 return (kNullCid - kTypedDataInt8ArrayCid);
2360 } 2359 }
2361 2360
2362 } // namespace dart 2361 } // namespace dart
2363 2362
2364 #endif // VM_RAW_OBJECT_H_ 2363 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.cc » ('j') | runtime/vm/raw_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698