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

Side by Side Diff: src/heap.h

Issue 360023003: Revert "Replace HeapNumber as doublebox with an explicit MutableHeapNumber." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/factory.cc ('k') | src/heap.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 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
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) \
46 V(Map, native_context_map, NativeContextMap) \ 45 V(Map, native_context_map, NativeContextMap) \
47 V(Map, fixed_array_map, FixedArrayMap) \ 46 V(Map, fixed_array_map, FixedArrayMap) \
48 V(Map, code_map, CodeMap) \ 47 V(Map, code_map, CodeMap) \
49 V(Map, scope_info_map, ScopeInfoMap) \ 48 V(Map, scope_info_map, ScopeInfoMap) \
50 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 49 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
51 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 50 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
52 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ 51 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \
53 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 52 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
54 V(Map, hash_table_map, HashTableMap) \ 53 V(Map, hash_table_map, HashTableMap) \
55 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ 54 V(Map, ordered_hash_table_map, OrderedHashTableMap) \
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 V(the_hole_value) \ 223 V(the_hole_value) \
225 V(null_value) \ 224 V(null_value) \
226 V(true_value) \ 225 V(true_value) \
227 V(false_value) \ 226 V(false_value) \
228 V(uninitialized_value) \ 227 V(uninitialized_value) \
229 V(cell_map) \ 228 V(cell_map) \
230 V(global_property_cell_map) \ 229 V(global_property_cell_map) \
231 V(shared_function_info_map) \ 230 V(shared_function_info_map) \
232 V(meta_map) \ 231 V(meta_map) \
233 V(heap_number_map) \ 232 V(heap_number_map) \
234 V(mutable_heap_number_map) \
235 V(native_context_map) \ 233 V(native_context_map) \
236 V(fixed_array_map) \ 234 V(fixed_array_map) \
237 V(code_map) \ 235 V(code_map) \
238 V(scope_info_map) \ 236 V(scope_info_map) \
239 V(fixed_cow_array_map) \ 237 V(fixed_cow_array_map) \
240 V(fixed_double_array_map) \ 238 V(fixed_double_array_map) \
241 V(constant_pool_array_map) \ 239 V(constant_pool_array_map) \
242 V(no_interceptor_result_sentinel) \ 240 V(no_interceptor_result_sentinel) \
243 V(hash_table_map) \ 241 V(hash_table_map) \
244 V(ordered_hash_table_map) \ 242 V(ordered_hash_table_map) \
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 // Passing an allocation site means that a memento will be created that 1453 // Passing an allocation site means that a memento will be created that
1456 // points to the site. 1454 // points to the site.
1457 MUST_USE_RESULT AllocationResult AllocateJSObjectFromMap( 1455 MUST_USE_RESULT AllocationResult AllocateJSObjectFromMap(
1458 Map* map, 1456 Map* map,
1459 PretenureFlag pretenure = NOT_TENURED, 1457 PretenureFlag pretenure = NOT_TENURED,
1460 bool alloc_props = true, 1458 bool alloc_props = true,
1461 AllocationSite* allocation_site = NULL); 1459 AllocationSite* allocation_site = NULL);
1462 1460
1463 // Allocated a HeapNumber from value. 1461 // Allocated a HeapNumber from value.
1464 MUST_USE_RESULT AllocationResult AllocateHeapNumber( 1462 MUST_USE_RESULT AllocationResult AllocateHeapNumber(
1465 double value, 1463 double value, PretenureFlag pretenure = NOT_TENURED);
1466 MutableMode mode = IMMUTABLE,
1467 PretenureFlag pretenure = NOT_TENURED);
1468 1464
1469 // Allocate a byte array of the specified length 1465 // Allocate a byte array of the specified length
1470 MUST_USE_RESULT AllocationResult AllocateByteArray( 1466 MUST_USE_RESULT AllocationResult AllocateByteArray(
1471 int length, 1467 int length,
1472 PretenureFlag pretenure = NOT_TENURED); 1468 PretenureFlag pretenure = NOT_TENURED);
1473 1469
1474 // Allocates an arguments object - optionally with an elements array. 1470 // Allocates an arguments object - optionally with an elements array.
1475 MUST_USE_RESULT AllocationResult AllocateArgumentsObject( 1471 MUST_USE_RESULT AllocationResult AllocateArgumentsObject(
1476 Object* callee, int length); 1472 Object* callee, int length);
1477 1473
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2769 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2765 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2770 2766
2771 private: 2767 private:
2772 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2768 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2773 }; 2769 };
2774 #endif // DEBUG 2770 #endif // DEBUG
2775 2771
2776 } } // namespace v8::internal 2772 } } // namespace v8::internal
2777 2773
2778 #endif // V8_HEAP_H_ 2774 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698