| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 V(Smi, store_buffer_top, StoreBufferTop) \ | 56 V(Smi, store_buffer_top, StoreBufferTop) \ |
| 57 V(Oddball, undefined_value, UndefinedValue) \ | 57 V(Oddball, undefined_value, UndefinedValue) \ |
| 58 V(Oddball, the_hole_value, TheHoleValue) \ | 58 V(Oddball, the_hole_value, TheHoleValue) \ |
| 59 V(Oddball, null_value, NullValue) \ | 59 V(Oddball, null_value, NullValue) \ |
| 60 V(Oddball, true_value, TrueValue) \ | 60 V(Oddball, true_value, TrueValue) \ |
| 61 V(Oddball, false_value, FalseValue) \ | 61 V(Oddball, false_value, FalseValue) \ |
| 62 V(Oddball, uninitialized_value, UninitializedValue) \ | 62 V(Oddball, uninitialized_value, UninitializedValue) \ |
| 63 V(Map, cell_map, CellMap) \ | 63 V(Map, cell_map, CellMap) \ |
| 64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
| 65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
| 66 V(Map, optimized_code_entry_map, OptimizedCodeEntryMap) \ | |
| 67 V(Map, meta_map, MetaMap) \ | 66 V(Map, meta_map, MetaMap) \ |
| 68 V(Map, heap_number_map, HeapNumberMap) \ | 67 V(Map, heap_number_map, HeapNumberMap) \ |
| 69 V(Map, native_context_map, NativeContextMap) \ | 68 V(Map, native_context_map, NativeContextMap) \ |
| 70 V(Map, fixed_array_map, FixedArrayMap) \ | 69 V(Map, fixed_array_map, FixedArrayMap) \ |
| 71 V(Map, code_map, CodeMap) \ | 70 V(Map, code_map, CodeMap) \ |
| 72 V(Map, scope_info_map, ScopeInfoMap) \ | 71 V(Map, scope_info_map, ScopeInfoMap) \ |
| 73 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 72 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
| 74 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 73 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
| 75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 74 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
| 76 V(Map, hash_table_map, HashTableMap) \ | 75 V(Map, hash_table_map, HashTableMap) \ |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 // Please note this does not perform a garbage collection. | 1090 // Please note this does not perform a garbage collection. |
| 1092 MUST_USE_RESULT MaybeObject* AllocateForeign( | 1091 MUST_USE_RESULT MaybeObject* AllocateForeign( |
| 1093 Address address, PretenureFlag pretenure = NOT_TENURED); | 1092 Address address, PretenureFlag pretenure = NOT_TENURED); |
| 1094 | 1093 |
| 1095 // Allocates a new SharedFunctionInfo object. | 1094 // Allocates a new SharedFunctionInfo object. |
| 1096 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1095 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1097 // failed. | 1096 // failed. |
| 1098 // Please note this does not perform a garbage collection. | 1097 // Please note this does not perform a garbage collection. |
| 1099 MUST_USE_RESULT MaybeObject* AllocateSharedFunctionInfo(Object* name); | 1098 MUST_USE_RESULT MaybeObject* AllocateSharedFunctionInfo(Object* name); |
| 1100 | 1099 |
| 1101 // Allocates a new OptimizedCodeEntry object. | |
| 1102 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
| 1103 // failed. | |
| 1104 // Please note this does not perform a garbage collection. | |
| 1105 MUST_USE_RESULT MaybeObject* AllocateOptimizedCodeEntry( | |
| 1106 Context* native_context, | |
| 1107 JSFunction* function, | |
| 1108 Code* code, | |
| 1109 FixedArray* literals); | |
| 1110 | |
| 1111 // Allocates a new JSMessageObject object. | 1100 // Allocates a new JSMessageObject object. |
| 1112 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1101 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1113 // failed. | 1102 // failed. |
| 1114 // Please note that this does not perform a garbage collection. | 1103 // Please note that this does not perform a garbage collection. |
| 1115 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( | 1104 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( |
| 1116 String* type, | 1105 String* type, |
| 1117 JSArray* arguments, | 1106 JSArray* arguments, |
| 1118 int start_position, | 1107 int start_position, |
| 1119 int end_position, | 1108 int end_position, |
| 1120 Object* script, | 1109 Object* script, |
| (...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3059 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3048 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3060 | 3049 |
| 3061 private: | 3050 private: |
| 3062 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3051 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3063 }; | 3052 }; |
| 3064 #endif // DEBUG | 3053 #endif // DEBUG |
| 3065 | 3054 |
| 3066 } } // namespace v8::internal | 3055 } } // namespace v8::internal |
| 3067 | 3056 |
| 3068 #endif // V8_HEAP_H_ | 3057 #endif // V8_HEAP_H_ |
| OLD | NEW |