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

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

Issue 10828399: Implement class hierarchy analysis in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/vm_sources.gypi » ('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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 private: 402 private:
403 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); 403 RAW_HEAP_OBJECT_IMPLEMENTATION(Class);
404 404
405 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 405 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
406 RawString* name_; 406 RawString* name_;
407 RawArray* functions_; 407 RawArray* functions_;
408 RawArray* fields_; 408 RawArray* fields_;
409 RawGrowableObjectArray* closure_functions_; // Local functions and literals. 409 RawGrowableObjectArray* closure_functions_; // Local functions and literals.
410 RawArray* interfaces_; // Array of AbstractType. 410 RawArray* interfaces_; // Array of AbstractType.
411 RawGrowableObjectArray* direct_subclasses_; // Array of Class.
411 RawScript* script_; 412 RawScript* script_;
412 RawLibrary* library_; 413 RawLibrary* library_;
413 RawTypeArguments* type_parameters_; // Array of TypeParameter. 414 RawTypeArguments* type_parameters_; // Array of TypeParameter.
414 RawType* super_type_; 415 RawType* super_type_;
415 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. 416 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class.
416 RawFunction* signature_function_; // Associated function for signature class. 417 RawFunction* signature_function_; // Associated function for signature class.
417 RawArray* constants_; // Canonicalized values of this class. 418 RawArray* constants_; // Canonicalized values of this class.
418 RawArray* canonical_types_; // Canonicalized types of this class. 419 RawArray* canonical_types_; // Canonicalized types of this class.
419 RawCode* allocation_stub_; // Stub code for allocation of instances. 420 RawCode* allocation_stub_; // Stub code for allocation of instances.
420 RawObject** to() { 421 RawObject** to() {
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1586 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1586 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1587 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1587 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1588 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1588 kStacktraceCid == kByteArrayCid + 21); 1589 kStacktraceCid == kByteArrayCid + 21);
1589 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1590 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1590 } 1591 }
1591 1592
1592 } // namespace dart 1593 } // namespace dart
1593 1594
1594 #endif // VM_RAW_OBJECT_H_ 1595 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698