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

Side by Side Diff: vm/raw_object.h

Issue 10173008: Simplify representation of stack frames. Remove the special types DartFrame/StubFrame and instead u… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 return reinterpret_cast<RawObject**>(&ptr()->var_descriptors_); 668 return reinterpret_cast<RawObject**>(&ptr()->var_descriptors_);
669 } 669 }
670 670
671 intptr_t pointer_offsets_length_; 671 intptr_t pointer_offsets_length_;
672 // This cannot be boolean because of alignment issues on x64 architectures. 672 // This cannot be boolean because of alignment issues on x64 architectures.
673 intptr_t is_optimized_; 673 intptr_t is_optimized_;
674 674
675 // Variable length data follows here. 675 // Variable length data follows here.
676 int32_t data_[0]; 676 int32_t data_[0];
677 677
678 friend class DartFrame; 678 friend class StackFrame;
679 friend class StubFrame;
680 }; 679 };
681 680
682 681
683 class RawInstructions : public RawObject { 682 class RawInstructions : public RawObject {
684 RAW_HEAP_OBJECT_IMPLEMENTATION(Instructions); 683 RAW_HEAP_OBJECT_IMPLEMENTATION(Instructions);
685 684
686 RawCode* code_; 685 RawCode* code_;
687 intptr_t size_; 686 intptr_t size_;
688 687
689 // Variable length data follows here. 688 // Variable length data follows here.
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 intptr_t type_; // Uninitialized, simple or complex. 1185 intptr_t type_; // Uninitialized, simple or complex.
1187 intptr_t flags_; // Represents global/local, case insensitive, multiline. 1186 intptr_t flags_; // Represents global/local, case insensitive, multiline.
1188 1187
1189 // Variable length data follows here. 1188 // Variable length data follows here.
1190 uint8_t data_[0]; 1189 uint8_t data_[0];
1191 }; 1190 };
1192 1191
1193 } // namespace dart 1192 } // namespace dart
1194 1193
1195 #endif // VM_RAW_OBJECT_H_ 1194 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698