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

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

Issue 566853005: Fix to allocation stub invalidation: we cannot just remove it as it will be collected even though c… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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') | 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 RawTypeArguments* type_parameters_; // Array of TypeParameter. 535 RawTypeArguments* type_parameters_; // Array of TypeParameter.
536 RawAbstractType* super_type_; 536 RawAbstractType* super_type_;
537 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. 537 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>.
538 RawClass* patch_class_; 538 RawClass* patch_class_;
539 RawFunction* signature_function_; // Associated function for signature class. 539 RawFunction* signature_function_; // Associated function for signature class.
540 RawArray* constants_; // Canonicalized values of this class. 540 RawArray* constants_; // Canonicalized values of this class.
541 RawObject* canonical_types_; // An array of canonicalized types of this class 541 RawObject* canonical_types_; // An array of canonicalized types of this class
542 // or the canonical type. 542 // or the canonical type.
543 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. 543 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions.
544 RawArray* cha_codes_; // CHA optimized codes. 544 RawArray* cha_codes_; // CHA optimized codes.
545 RawCode* spare_allocation_stub_; // Spare stub code for allocation.
545 RawCode* allocation_stub_; // Stub code for allocation of instances. 546 RawCode* allocation_stub_; // Stub code for allocation of instances.
546 RawObject** to() { 547 RawObject** to() {
547 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); 548 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_);
548 } 549 }
549 550
550 cpp_vtable handle_vtable_; 551 cpp_vtable handle_vtable_;
551 int32_t id_; // Class Id, also index in the class table. 552 int32_t id_; // Class Id, also index in the class table.
552 int32_t token_pos_; 553 int32_t token_pos_;
553 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len. 554 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len.
554 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld. 555 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld.
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2054 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2055 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2055 kTypedDataInt8ArrayViewCid + 15); 2056 kTypedDataInt8ArrayViewCid + 15);
2056 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2057 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2057 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2058 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2058 return (kNullCid - kTypedDataInt8ArrayCid); 2059 return (kNullCid - kTypedDataInt8ArrayCid);
2059 } 2060 }
2060 2061
2061 } // namespace dart 2062 } // namespace dart
2062 2063
2063 #endif // VM_RAW_OBJECT_H_ 2064 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698