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

Side by Side Diff: src/spaces.h

Issue 8536009: Fix filtering of store buffer for large object pages. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/heap.cc ('k') | test/mozilla/mozilla.status » ('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 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 497
498 // The start offset of the object area in a page. Aligned to both maps and 498 // The start offset of the object area in a page. Aligned to both maps and
499 // code alignment to be suitable for both. Also aligned to 32 words because 499 // code alignment to be suitable for both. Also aligned to 32 words because
500 // the marking bitmap is arranged in 32 bit chunks. 500 // the marking bitmap is arranged in 32 bit chunks.
501 static const int kObjectStartAlignment = 32 * kPointerSize; 501 static const int kObjectStartAlignment = 32 * kPointerSize;
502 static const int kObjectStartOffset = kBodyOffset - 1 + 502 static const int kObjectStartOffset = kBodyOffset - 1 +
503 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment); 503 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment);
504 504
505 size_t size() const { return size_; } 505 size_t size() const { return size_; }
506 506
507 void set_size(size_t size) {
508 size_ = size;
509 }
510
507 Executability executable() { 511 Executability executable() {
508 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE; 512 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE;
509 } 513 }
510 514
511 bool ContainsOnlyData() { 515 bool ContainsOnlyData() {
512 return IsFlagSet(CONTAINS_ONLY_DATA); 516 return IsFlagSet(CONTAINS_ONLY_DATA);
513 } 517 }
514 518
515 bool InNewSpace() { 519 bool InNewSpace() {
516 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0; 520 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0;
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 } 2613 }
2610 // Must be small, since an iteration is used for lookup. 2614 // Must be small, since an iteration is used for lookup.
2611 static const int kMaxComments = 64; 2615 static const int kMaxComments = 64;
2612 }; 2616 };
2613 #endif 2617 #endif
2614 2618
2615 2619
2616 } } // namespace v8::internal 2620 } } // namespace v8::internal
2617 2621
2618 #endif // V8_SPACES_H_ 2622 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698