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

Side by Side Diff: src/spaces.h

Issue 7389008: Make Win64 compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 5 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 int store_buffer_counter() { return store_buffer_counter_; } 346 int store_buffer_counter() { return store_buffer_counter_; }
347 void set_store_buffer_counter(int counter) { 347 void set_store_buffer_counter(int counter) {
348 store_buffer_counter_ = counter; 348 store_buffer_counter_ = counter;
349 } 349 }
350 350
351 Address body() { return address() + kObjectStartOffset; } 351 Address body() { return address() + kObjectStartOffset; }
352 352
353 Address body_limit() { return address() + size(); } 353 Address body_limit() { return address() + size(); }
354 354
355 int body_size() { return size() - kObjectStartOffset; } 355 int body_size() { return static_cast<int>(size() - kObjectStartOffset); }
356 356
357 bool Contains(Address addr) { 357 bool Contains(Address addr) {
358 return addr >= body() && addr < address() + size(); 358 return addr >= body() && addr < address() + size();
359 } 359 }
360 360
361 // Checks whether addr can be a limit of addresses in this page. 361 // Checks whether addr can be a limit of addresses in this page.
362 // It's a limit if it's in the page, or if it's just after the 362 // It's a limit if it's in the page, or if it's just after the
363 // last byte of the page. 363 // last byte of the page.
364 bool ContainsLimit(Address addr) { 364 bool ContainsLimit(Address addr) {
365 return addr >= body() && addr <= address() + size(); 365 return addr >= body() && addr <= address() + size();
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 } 2567 }
2568 // Must be small, since an iteration is used for lookup. 2568 // Must be small, since an iteration is used for lookup.
2569 static const int kMaxComments = 64; 2569 static const int kMaxComments = 64;
2570 }; 2570 };
2571 #endif 2571 #endif
2572 2572
2573 2573
2574 } } // namespace v8::internal 2574 } } // namespace v8::internal
2575 2575
2576 #endif // V8_SPACES_H_ 2576 #endif // V8_SPACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698