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

Side by Side Diff: vm/raw_object.h

Issue 9652015: Fix from() to point to the correct value in RawGrowableObjectArray. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 | « no previous file | 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 995 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
996 996
997 friend class SnapshotReader; 997 friend class SnapshotReader;
998 }; 998 };
999 999
1000 1000
1001 class RawGrowableObjectArray : public RawInstance { 1001 class RawGrowableObjectArray : public RawInstance {
1002 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray); 1002 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray);
1003 1003
1004 RawObject** from() { 1004 RawObject** from() {
1005 return reinterpret_cast<RawObject**>(&ptr()->data_); 1005 return reinterpret_cast<RawObject**>(&ptr()->length_);
1006 } 1006 }
1007 RawSmi* length_; 1007 RawSmi* length_;
1008 RawArray* data_; 1008 RawArray* data_;
1009 RawObject** to() { 1009 RawObject** to() {
1010 return reinterpret_cast<RawObject**>(&ptr()->data_); 1010 return reinterpret_cast<RawObject**>(&ptr()->data_);
1011 } 1011 }
1012 1012
1013 friend class SnapshotReader; 1013 friend class SnapshotReader;
1014 }; 1014 };
1015 1015
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 RawString* target_name_; // Name of target function. 1138 RawString* target_name_; // Name of target function.
1139 RawArray* ic_data_; // Contains test classes and target function. 1139 RawArray* ic_data_; // Contains test classes and target function.
1140 intptr_t id_; // Parser node id corresponding to this IC. 1140 intptr_t id_; // Parser node id corresponding to this IC.
1141 intptr_t num_args_tested_; // Number of arguments tested in IC. 1141 intptr_t num_args_tested_; // Number of arguments tested in IC.
1142 }; 1142 };
1143 1143
1144 1144
1145 } // namespace dart 1145 } // namespace dart
1146 1146
1147 #endif // VM_RAW_OBJECT_H_ 1147 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698