OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 16 matching lines...) Expand all Loading... |
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 "log.h" | 31 #include "log.h" |
32 #include "v8-counters.h" | 32 #include "v8-counters.h" |
33 | 33 |
34 namespace v8 { | 34 namespace v8 { |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
37 int Heap::MaxHeapObjectSize() { | 37 int Heap::MaxObjectSizeInPagedSpace() { |
38 return Page::kMaxHeapObjectSize; | 38 return Page::kMaxHeapObjectSize; |
39 } | 39 } |
40 | 40 |
41 | 41 |
42 Object* Heap::AllocateSymbol(Vector<const char> str, | 42 Object* Heap::AllocateSymbol(Vector<const char> str, |
43 int chars, | 43 int chars, |
44 uint32_t length_field) { | 44 uint32_t length_field) { |
45 unibrow::Utf8InputBuffer<> buffer(str.start(), | 45 unibrow::Utf8InputBuffer<> buffer(str.start(), |
46 static_cast<unsigned>(str.length())); | 46 static_cast<unsigned>(str.length())); |
47 return AllocateInternalSymbol(&buffer, chars, length_field); | 47 return AllocateInternalSymbol(&buffer, chars, length_field); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 allocation_allowed_ = new_state; | 281 allocation_allowed_ = new_state; |
282 return old; | 282 return old; |
283 } | 283 } |
284 | 284 |
285 #endif | 285 #endif |
286 | 286 |
287 | 287 |
288 } } // namespace v8::internal | 288 } } // namespace v8::internal |
289 | 289 |
290 #endif // V8_HEAP_INL_H_ | 290 #endif // V8_HEAP_INL_H_ |
OLD | NEW |