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

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
« no previous file with comments | « vm/parser.cc ('k') | vm/stack_frame.h » ('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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 734
735 // Variable length data follows here. 735 // Variable length data follows here.
736 uint8_t data_[0]; 736 uint8_t data_[0];
737 737
738 // Private helper function used while visiting stack frames. The 738 // Private helper function used while visiting stack frames. The
739 // code which iterates over dart frames is also called during GC and 739 // code which iterates over dart frames is also called during GC and
740 // is not allowed to create handles. 740 // is not allowed to create handles.
741 static bool ContainsPC(RawObject* raw_obj, uword pc); 741 static bool ContainsPC(RawObject* raw_obj, uword pc);
742 742
743 friend class RawCode; 743 friend class RawCode;
744 friend class Code;
744 friend class StackFrame; 745 friend class StackFrame;
745 }; 746 };
746 747
747 748
748 class RawPcDescriptors : public RawObject { 749 class RawPcDescriptors : public RawObject {
749 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors); 750 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors);
750 751
751 RawSmi* length_; // Number of descriptors. 752 RawSmi* length_; // Number of descriptors.
752 753
753 // Variable length data follows here. 754 // Variable length data follows here.
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 kExternalUint64Array == kByteArray + 18 && 1495 kExternalUint64Array == kByteArray + 18 &&
1495 kExternalFloat32Array == kByteArray + 19 && 1496 kExternalFloat32Array == kByteArray + 19 &&
1496 kExternalFloat64Array == kByteArray + 20 && 1497 kExternalFloat64Array == kByteArray + 20 &&
1497 kClosure == kByteArray + 21); 1498 kClosure == kByteArray + 21);
1498 return (index >= kByteArray && index <= kClosure); 1499 return (index >= kByteArray && index <= kClosure);
1499 } 1500 }
1500 1501
1501 } // namespace dart 1502 } // namespace dart
1502 1503
1503 #endif // VM_RAW_OBJECT_H_ 1504 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/parser.cc ('k') | vm/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698