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

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

Issue 668193002: Remove isolate pointer from context objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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_test.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 // Variable length data follows here. 1166 // Variable length data follows here.
1167 intptr_t* data() { OPEN_ARRAY_START(intptr_t, intptr_t); } 1167 intptr_t* data() { OPEN_ARRAY_START(intptr_t, intptr_t); }
1168 const intptr_t* data() const { OPEN_ARRAY_START(intptr_t, intptr_t); } 1168 const intptr_t* data() const { OPEN_ARRAY_START(intptr_t, intptr_t); }
1169 }; 1169 };
1170 1170
1171 1171
1172 class RawContext : public RawObject { 1172 class RawContext : public RawObject {
1173 RAW_HEAP_OBJECT_IMPLEMENTATION(Context); 1173 RAW_HEAP_OBJECT_IMPLEMENTATION(Context);
1174 1174
1175 int32_t num_variables_; 1175 int32_t num_variables_;
1176 Isolate* isolate_;
1177 1176
1178 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->parent_); } 1177 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->parent_); }
1179 RawContext* parent_; 1178 RawContext* parent_;
1180 1179
1181 // Variable length data follows here. 1180 // Variable length data follows here.
1182 RawInstance** data() { OPEN_ARRAY_START(RawInstance*, RawInstance*); } 1181 RawInstance** data() { OPEN_ARRAY_START(RawInstance*, RawInstance*); }
1183 RawInstance* const* data() const { 1182 RawInstance* const* data() const {
1184 OPEN_ARRAY_START(RawInstance*, RawInstance*); 1183 OPEN_ARRAY_START(RawInstance*, RawInstance*);
1185 } 1184 }
1186 RawObject** to(intptr_t num_vars) { 1185 RawObject** to(intptr_t num_vars) {
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2068 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2070 kTypedDataInt8ArrayViewCid + 15); 2069 kTypedDataInt8ArrayViewCid + 15);
2071 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2070 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2072 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2071 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2073 return (kNullCid - kTypedDataInt8ArrayCid); 2072 return (kNullCid - kTypedDataInt8ArrayCid);
2074 } 2073 }
2075 2074
2076 } // namespace dart 2075 } // namespace dart
2077 2076
2078 #endif // VM_RAW_OBJECT_H_ 2077 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698