OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 V(Oddball, null_value, NullValue) \ | 35 V(Oddball, null_value, NullValue) \ |
36 V(Oddball, true_value, TrueValue) \ | 36 V(Oddball, true_value, TrueValue) \ |
37 V(Oddball, false_value, FalseValue) \ | 37 V(Oddball, false_value, FalseValue) \ |
38 V(Oddball, uninitialized_value, UninitializedValue) \ | 38 V(Oddball, uninitialized_value, UninitializedValue) \ |
39 V(Oddball, exception, Exception) \ | 39 V(Oddball, exception, Exception) \ |
40 V(Map, cell_map, CellMap) \ | 40 V(Map, cell_map, CellMap) \ |
41 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 41 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
42 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 42 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
43 V(Map, meta_map, MetaMap) \ | 43 V(Map, meta_map, MetaMap) \ |
44 V(Map, heap_number_map, HeapNumberMap) \ | 44 V(Map, heap_number_map, HeapNumberMap) \ |
| 45 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ |
45 V(Map, native_context_map, NativeContextMap) \ | 46 V(Map, native_context_map, NativeContextMap) \ |
46 V(Map, fixed_array_map, FixedArrayMap) \ | 47 V(Map, fixed_array_map, FixedArrayMap) \ |
47 V(Map, code_map, CodeMap) \ | 48 V(Map, code_map, CodeMap) \ |
48 V(Map, scope_info_map, ScopeInfoMap) \ | 49 V(Map, scope_info_map, ScopeInfoMap) \ |
49 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 50 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
50 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 51 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
51 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ | 52 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ |
52 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 53 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
53 V(Map, hash_table_map, HashTableMap) \ | 54 V(Map, hash_table_map, HashTableMap) \ |
54 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ | 55 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 V(the_hole_value) \ | 224 V(the_hole_value) \ |
224 V(null_value) \ | 225 V(null_value) \ |
225 V(true_value) \ | 226 V(true_value) \ |
226 V(false_value) \ | 227 V(false_value) \ |
227 V(uninitialized_value) \ | 228 V(uninitialized_value) \ |
228 V(cell_map) \ | 229 V(cell_map) \ |
229 V(global_property_cell_map) \ | 230 V(global_property_cell_map) \ |
230 V(shared_function_info_map) \ | 231 V(shared_function_info_map) \ |
231 V(meta_map) \ | 232 V(meta_map) \ |
232 V(heap_number_map) \ | 233 V(heap_number_map) \ |
| 234 V(mutable_heap_number_map) \ |
233 V(native_context_map) \ | 235 V(native_context_map) \ |
234 V(fixed_array_map) \ | 236 V(fixed_array_map) \ |
235 V(code_map) \ | 237 V(code_map) \ |
236 V(scope_info_map) \ | 238 V(scope_info_map) \ |
237 V(fixed_cow_array_map) \ | 239 V(fixed_cow_array_map) \ |
238 V(fixed_double_array_map) \ | 240 V(fixed_double_array_map) \ |
239 V(constant_pool_array_map) \ | 241 V(constant_pool_array_map) \ |
240 V(no_interceptor_result_sentinel) \ | 242 V(no_interceptor_result_sentinel) \ |
241 V(hash_table_map) \ | 243 V(hash_table_map) \ |
242 V(ordered_hash_table_map) \ | 244 V(ordered_hash_table_map) \ |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 // Passing an allocation site means that a memento will be created that | 1455 // Passing an allocation site means that a memento will be created that |
1454 // points to the site. | 1456 // points to the site. |
1455 MUST_USE_RESULT AllocationResult AllocateJSObjectFromMap( | 1457 MUST_USE_RESULT AllocationResult AllocateJSObjectFromMap( |
1456 Map* map, | 1458 Map* map, |
1457 PretenureFlag pretenure = NOT_TENURED, | 1459 PretenureFlag pretenure = NOT_TENURED, |
1458 bool alloc_props = true, | 1460 bool alloc_props = true, |
1459 AllocationSite* allocation_site = NULL); | 1461 AllocationSite* allocation_site = NULL); |
1460 | 1462 |
1461 // Allocated a HeapNumber from value. | 1463 // Allocated a HeapNumber from value. |
1462 MUST_USE_RESULT AllocationResult AllocateHeapNumber( | 1464 MUST_USE_RESULT AllocationResult AllocateHeapNumber( |
1463 double value, PretenureFlag pretenure = NOT_TENURED); | 1465 double value, |
| 1466 MutableMode mode = IMMUTABLE, |
| 1467 PretenureFlag pretenure = NOT_TENURED); |
1464 | 1468 |
1465 // Allocate a byte array of the specified length | 1469 // Allocate a byte array of the specified length |
1466 MUST_USE_RESULT AllocationResult AllocateByteArray( | 1470 MUST_USE_RESULT AllocationResult AllocateByteArray( |
1467 int length, | 1471 int length, |
1468 PretenureFlag pretenure = NOT_TENURED); | 1472 PretenureFlag pretenure = NOT_TENURED); |
1469 | 1473 |
1470 // Allocates an arguments object - optionally with an elements array. | 1474 // Allocates an arguments object - optionally with an elements array. |
1471 MUST_USE_RESULT AllocationResult AllocateArgumentsObject( | 1475 MUST_USE_RESULT AllocationResult AllocateArgumentsObject( |
1472 Object* callee, int length); | 1476 Object* callee, int length); |
1473 | 1477 |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2769 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2766 | 2770 |
2767 private: | 2771 private: |
2768 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2772 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2769 }; | 2773 }; |
2770 #endif // DEBUG | 2774 #endif // DEBUG |
2771 | 2775 |
2772 } } // namespace v8::internal | 2776 } } // namespace v8::internal |
2773 | 2777 |
2774 #endif // V8_HEAP_H_ | 2778 #endif // V8_HEAP_H_ |
OLD | NEW |