| OLD | NEW |
| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 static const int kObjectStartAlignment = 32 * kPointerSize; | 496 static const int kObjectStartAlignment = 32 * kPointerSize; |
| 497 static const int kObjectStartOffset = kBodyOffset - 1 + | 497 static const int kObjectStartOffset = kBodyOffset - 1 + |
| 498 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment); | 498 (kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment); |
| 499 | 499 |
| 500 size_t size() const { return size_; } | 500 size_t size() const { return size_; } |
| 501 | 501 |
| 502 void set_size(size_t size) { | 502 void set_size(size_t size) { |
| 503 size_ = size; | 503 size_ = size; |
| 504 } | 504 } |
| 505 | 505 |
| 506 void SetArea(Address area_start, Address area_end) { |
| 507 area_start_ = area_start; |
| 508 area_end_ = area_end; |
| 509 } |
| 510 |
| 506 Executability executable() { | 511 Executability executable() { |
| 507 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE; | 512 return IsFlagSet(IS_EXECUTABLE) ? EXECUTABLE : NOT_EXECUTABLE; |
| 508 } | 513 } |
| 509 | 514 |
| 510 bool ContainsOnlyData() { | 515 bool ContainsOnlyData() { |
| 511 return IsFlagSet(CONTAINS_ONLY_DATA); | 516 return IsFlagSet(CONTAINS_ONLY_DATA); |
| 512 } | 517 } |
| 513 | 518 |
| 514 bool InNewSpace() { | 519 bool InNewSpace() { |
| 515 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0; | 520 return (flags_ & ((1 << IN_FROM_SPACE) | (1 << IN_TO_SPACE))) != 0; |
| (...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 } | 2651 } |
| 2647 // Must be small, since an iteration is used for lookup. | 2652 // Must be small, since an iteration is used for lookup. |
| 2648 static const int kMaxComments = 64; | 2653 static const int kMaxComments = 64; |
| 2649 }; | 2654 }; |
| 2650 #endif | 2655 #endif |
| 2651 | 2656 |
| 2652 | 2657 |
| 2653 } } // namespace v8::internal | 2658 } } // namespace v8::internal |
| 2654 | 2659 |
| 2655 #endif // V8_SPACES_H_ | 2660 #endif // V8_SPACES_H_ |
| OLD | NEW |