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

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

Issue 11418046: First part of static call cleanup: store static call targets into code object, referenced by code-o… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 738
739 RawObject** from() { 739 RawObject** from() {
740 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 740 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
741 } 741 }
742 RawInstructions* instructions_; 742 RawInstructions* instructions_;
743 RawFunction* function_; 743 RawFunction* function_;
744 RawExceptionHandlers* exception_handlers_; 744 RawExceptionHandlers* exception_handlers_;
745 RawPcDescriptors* pc_descriptors_; 745 RawPcDescriptors* pc_descriptors_;
746 RawArray* deopt_info_array_; 746 RawArray* deopt_info_array_;
747 RawArray* object_table_; 747 RawArray* object_table_;
748 RawArray* static_calls_target_table_; // (code-offset, function, code).
748 RawArray* stackmaps_; 749 RawArray* stackmaps_;
749 RawLocalVarDescriptors* var_descriptors_; 750 RawLocalVarDescriptors* var_descriptors_;
750 RawGrowableObjectArray* resolved_static_calls_;
751 RawArray* comments_; 751 RawArray* comments_;
752 RawObject** to() { 752 RawObject** to() {
753 return reinterpret_cast<RawObject**>(&ptr()->comments_); 753 return reinterpret_cast<RawObject**>(&ptr()->comments_);
754 } 754 }
755 755
756 intptr_t pointer_offsets_length_; 756 intptr_t pointer_offsets_length_;
757 // These fields cannot be boolean because of alignment issues on x64 757 // These fields cannot be boolean because of alignment issues on x64
758 // architectures. 758 // architectures.
759 intptr_t is_optimized_; 759 intptr_t is_optimized_;
760 // If true, the embedded object pointers will be visited during GC. 760 // If true, the embedded object pointers will be visited during GC.
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && 1634 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 &&
1635 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && 1635 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 &&
1636 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && 1636 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 &&
1637 kStacktraceCid == kExternalInt8ArrayCid + 10); 1637 kStacktraceCid == kExternalInt8ArrayCid + 10);
1638 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1638 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid);
1639 } 1639 }
1640 1640
1641 } // namespace dart 1641 } // namespace dart
1642 1642
1643 #endif // VM_RAW_OBJECT_H_ 1643 #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