| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 14 matching lines...) Expand all Loading... |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_HEAP_INL_H_ | 28 #ifndef V8_HEAP_INL_H_ |
| 29 #define V8_HEAP_INL_H_ | 29 #define V8_HEAP_INL_H_ |
| 30 | 30 |
| 31 #include "heap.h" | 31 #include "heap.h" |
| 32 #include "objects.h" | 32 #include "objects.h" |
| 33 #include "v8-counters.h" | 33 #include "v8-counters.h" |
| 34 #include "write-buffer.h" | 34 #include "write-buffer.h" |
| 35 #include "write-buffer-inl.h" |
| 35 | 36 |
| 36 namespace v8 { | 37 namespace v8 { |
| 37 namespace internal { | 38 namespace internal { |
| 38 | 39 |
| 39 int Heap::MaxObjectSizeInPagedSpace() { | 40 int Heap::MaxObjectSizeInPagedSpace() { |
| 40 return Page::kMaxHeapObjectSize; | 41 return Page::kMaxHeapObjectSize; |
| 41 } | 42 } |
| 42 | 43 |
| 43 | 44 |
| 44 MaybeObject* Heap::AllocateStringFromUtf8(Vector<const char> str, | 45 MaybeObject* Heap::AllocateStringFromUtf8(Vector<const char> str, |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 587 |
| 587 | 588 |
| 588 void ExternalStringTable::ShrinkNewStrings(int position) { | 589 void ExternalStringTable::ShrinkNewStrings(int position) { |
| 589 new_space_strings_.Rewind(position); | 590 new_space_strings_.Rewind(position); |
| 590 Verify(); | 591 Verify(); |
| 591 } | 592 } |
| 592 | 593 |
| 593 } } // namespace v8::internal | 594 } } // namespace v8::internal |
| 594 | 595 |
| 595 #endif // V8_HEAP_INL_H_ | 596 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |