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

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

Issue 1351403004: Resolve some disagreements between SIMARM and XARM on offsets used in compiled code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« runtime/vm/isolate.h ('K') | « runtime/vm/raw_object.h ('k') | 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_SCAVENGER_H_ 5 #ifndef VM_SCAVENGER_H_
6 #define VM_SCAVENGER_H_ 6 #define VM_SCAVENGER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 265 }
266 bool PromotedStackHasMore() const { 266 bool PromotedStackHasMore() const {
267 ASSERT(scavenging_); 267 ASSERT(scavenging_);
268 return end_ < to_->end(); 268 return end_ < to_->end();
269 } 269 }
270 270
271 void ProcessWeakTables(); 271 void ProcessWeakTables();
272 272
273 intptr_t NewSizeInWords(intptr_t old_size_in_words) const; 273 intptr_t NewSizeInWords(intptr_t old_size_in_words) const;
274 274
275 SemiSpace* to_;
276
277 Heap* heap_;
278
279 // Current allocation top and end. These values are being accessed directly 275 // Current allocation top and end. These values are being accessed directly
280 // from generated code. 276 // from generated code.
281 uword top_; 277 uword top_;
282 uword end_; 278 uword end_;
283 279
280 SemiSpace* to_;
281
282 Heap* heap_;
283
284 // A pointer to the first unscanned object. Scanning completes when 284 // A pointer to the first unscanned object. Scanning completes when
285 // this value meets the allocation top. 285 // this value meets the allocation top.
286 uword resolved_top_; 286 uword resolved_top_;
287 287
288 // Objects below this address have survived a scavenge. 288 // Objects below this address have survived a scavenge.
289 uword survivor_end_; 289 uword survivor_end_;
290 290
291 intptr_t max_semi_capacity_in_words_; 291 intptr_t max_semi_capacity_in_words_;
292 292
293 // All object are aligned to this value. 293 // All object are aligned to this value.
(...skipping 12 matching lines...) Expand all
306 306
307 friend class ScavengerVisitor; 307 friend class ScavengerVisitor;
308 friend class ScavengerWeakVisitor; 308 friend class ScavengerWeakVisitor;
309 309
310 DISALLOW_COPY_AND_ASSIGN(Scavenger); 310 DISALLOW_COPY_AND_ASSIGN(Scavenger);
311 }; 311 };
312 312
313 } // namespace dart 313 } // namespace dart
314 314
315 #endif // VM_SCAVENGER_H_ 315 #endif // VM_SCAVENGER_H_
OLDNEW
« runtime/vm/isolate.h ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698