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

Side by Side Diff: src/spaces.h

Issue 9601013: Merge r10927 from the bleeding_edge to the 3.8 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.8/
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 | « src/heap.cc ('k') | src/version.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 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 static const int kObjectStartAlignment = 32 * kPointerSize; 499 static const int kObjectStartAlignment = 32 * kPointerSize;
500 static const int kObjectStartOffset = kBodyOffset - 1 + 500 static const int kObjectStartOffset = kBodyOffset - 1 +
501 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment); 501 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment);
502 502
503 size_t size() const { return size_; } 503 size_t size() const { return size_; }
504 504
505 void set_size(size_t size) { 505 void set_size(size_t size) {
506 size_ = size; 506 size_ = size;
507 } 507 }
508 508
509 void SetArea(Address area_start, Address area_end) {
510 area_start_ = area_start;
511 area_end_ = area_end;
512 }
513
509 Executability executable() { 514 Executability executable() {
510 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE; 515 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE;
511 } 516 }
512 517
513 bool ContainsOnlyData() { 518 bool ContainsOnlyData() {
514 return IsFlagSet(CONTAINS_ONLY_DATA); 519 return IsFlagSet(CONTAINS_ONLY_DATA);
515 } 520 }
516 521
517 bool InNewSpace() { 522 bool InNewSpace() {
518 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0; 523 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0;
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 } 2678 }
2674 // Must be small, since an iteration is used for lookup. 2679 // Must be small, since an iteration is used for lookup.
2675 static const int kMaxComments = 64; 2680 static const int kMaxComments = 64;
2676 }; 2681 };
2677 #endif 2682 #endif
2678 2683
2679 2684
2680 } } // namespace v8::internal 2685 } } // namespace v8::internal
2681 2686
2682 #endif // V8_SPACES_H_ 2687 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698