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

Side by Side Diff: vm/raw_object.h

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 // Variable length data follows here. 718 // Variable length data follows here.
719 uint8_t data_[0]; 719 uint8_t data_[0];
720 720
721 // Private helper function used while visiting stack frames. The 721 // Private helper function used while visiting stack frames. The
722 // code which iterates over dart frames is also called during GC and 722 // code which iterates over dart frames is also called during GC and
723 // is not allowed to create handles. 723 // is not allowed to create handles.
724 static bool ContainsPC(RawObject* raw_obj, uword pc); 724 static bool ContainsPC(RawObject* raw_obj, uword pc);
725 725
726 friend class RawCode; 726 friend class RawCode;
727 friend class Code;
727 friend class StackFrame; 728 friend class StackFrame;
728 }; 729 };
729 730
730 731
731 class RawPcDescriptors : public RawObject { 732 class RawPcDescriptors : public RawObject {
732 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors); 733 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors);
733 734
734 RawSmi* length_; // Number of descriptors. 735 RawSmi* length_; // Number of descriptors.
735 736
736 // Variable length data follows here. 737 // Variable length data follows here.
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 intptr_t type_; // Uninitialized, simple or complex. 1358 intptr_t type_; // Uninitialized, simple or complex.
1358 intptr_t flags_; // Represents global/local, case insensitive, multiline. 1359 intptr_t flags_; // Represents global/local, case insensitive, multiline.
1359 1360
1360 // Variable length data follows here. 1361 // Variable length data follows here.
1361 uint8_t data_[0]; 1362 uint8_t data_[0];
1362 }; 1363 };
1363 1364
1364 } // namespace dart 1365 } // namespace dart
1365 1366
1366 #endif // VM_RAW_OBJECT_H_ 1367 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698