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

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

Issue 1073173003: Eliminate object table and use regular object pool for deoptimization infos. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | 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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 949 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
950 } 950 }
951 RawInstructions* instructions_; 951 RawInstructions* instructions_;
952 // If owner_ is Function::null() the owner is a regular stub. 952 // If owner_ is Function::null() the owner is a regular stub.
953 // If owner_ is a Class the owner is the allocation stub for that class. 953 // If owner_ is a Class the owner is the allocation stub for that class.
954 // Else, owner_ is a regular Dart Function. 954 // Else, owner_ is a regular Dart Function.
955 RawObject* owner_; // Function, Null, or a Class. 955 RawObject* owner_; // Function, Null, or a Class.
956 RawExceptionHandlers* exception_handlers_; 956 RawExceptionHandlers* exception_handlers_;
957 RawPcDescriptors* pc_descriptors_; 957 RawPcDescriptors* pc_descriptors_;
958 RawArray* deopt_info_array_; 958 RawArray* deopt_info_array_;
959 RawArray* object_table_;
960 RawArray* static_calls_target_table_; // (code-offset, function, code). 959 RawArray* static_calls_target_table_; // (code-offset, function, code).
961 RawArray* stackmaps_; 960 RawArray* stackmaps_;
962 RawLocalVarDescriptors* var_descriptors_; 961 RawLocalVarDescriptors* var_descriptors_;
963 RawArray* inlined_intervals_; 962 RawArray* inlined_intervals_;
964 RawArray* inlined_id_to_function_; 963 RawArray* inlined_id_to_function_;
965 RawArray* comments_; 964 RawArray* comments_;
966 RawObject** to() { 965 RawObject** to() {
967 return reinterpret_cast<RawObject**>(&ptr()->comments_); 966 return reinterpret_cast<RawObject**>(&ptr()->comments_);
968 } 967 }
969 968
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2154 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2156 kTypedDataInt8ArrayViewCid + 15); 2155 kTypedDataInt8ArrayViewCid + 15);
2157 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2156 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2158 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2157 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2159 return (kNullCid - kTypedDataInt8ArrayCid); 2158 return (kNullCid - kTypedDataInt8ArrayCid);
2160 } 2159 }
2161 2160
2162 } // namespace dart 2161 } // namespace dart
2163 2162
2164 #endif // VM_RAW_OBJECT_H_ 2163 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698