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

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

Issue 609893002: Track references to allocation stubs via static_calls_table, instead of keeping two referencers ali… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/weak_code.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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 RawTypeArguments* type_parameters_; // Array of TypeParameter. 528 RawTypeArguments* type_parameters_; // Array of TypeParameter.
529 RawAbstractType* super_type_; 529 RawAbstractType* super_type_;
530 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. 530 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>.
531 RawClass* patch_class_; 531 RawClass* patch_class_;
532 RawFunction* signature_function_; // Associated function for signature class. 532 RawFunction* signature_function_; // Associated function for signature class.
533 RawArray* constants_; // Canonicalized values of this class. 533 RawArray* constants_; // Canonicalized values of this class.
534 RawObject* canonical_types_; // An array of canonicalized types of this class 534 RawObject* canonical_types_; // An array of canonicalized types of this class
535 // or the canonical type. 535 // or the canonical type.
536 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. 536 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions.
537 RawArray* cha_codes_; // CHA optimized codes. 537 RawArray* cha_codes_; // CHA optimized codes.
538 RawCode* spare_allocation_stub_; // Spare stub code for allocation.
539 RawCode* allocation_stub_; // Stub code for allocation of instances. 538 RawCode* allocation_stub_; // Stub code for allocation of instances.
540 RawObject** to() { 539 RawObject** to() {
541 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); 540 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_);
542 } 541 }
543 542
544 cpp_vtable handle_vtable_; 543 cpp_vtable handle_vtable_;
545 int32_t id_; // Class Id, also index in the class table. 544 int32_t id_; // Class Id, also index in the class table.
546 int32_t token_pos_; 545 int32_t token_pos_;
547 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len. 546 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len.
548 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld. 547 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld.
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2049 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2051 kTypedDataInt8ArrayViewCid + 15); 2050 kTypedDataInt8ArrayViewCid + 15);
2052 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2051 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2053 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2052 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2054 return (kNullCid - kTypedDataInt8ArrayCid); 2053 return (kNullCid - kTypedDataInt8ArrayCid);
2055 } 2054 }
2056 2055
2057 } // namespace dart 2056 } // namespace dart
2058 2057
2059 #endif // VM_RAW_OBJECT_H_ 2058 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/weak_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698