| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 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 29 matching lines...) Expand all Loading... |
| 40 namespace v8 { | 40 namespace v8 { |
| 41 namespace internal { | 41 namespace internal { |
| 42 | 42 |
| 43 // TODO(isolates): remove HEAP here | 43 // TODO(isolates): remove HEAP here |
| 44 #define HEAP (_inline_get_heap_()) | 44 #define HEAP (_inline_get_heap_()) |
| 45 class Heap; | 45 class Heap; |
| 46 inline Heap* _inline_get_heap_(); | 46 inline Heap* _inline_get_heap_(); |
| 47 | 47 |
| 48 | 48 |
| 49 // Defines all the roots in Heap. | 49 // Defines all the roots in Heap. |
| 50 #define UNCONDITIONAL_STRONG_ROOT_LIST(V) \ | 50 #define STRONG_ROOT_LIST(V) \ |
| 51 /* Put the byte array map early. We need it to be in place by the time */ \ | 51 /* Put the byte array map early. We need it to be in place by the time */ \ |
| 52 /* the deserializer hits the next page, since it wants to put a byte */ \ | 52 /* the deserializer hits the next page, since it wants to put a byte */ \ |
| 53 /* array in the unused space at the end of the page. */ \ | 53 /* array in the unused space at the end of the page. */ \ |
| 54 V(Map, byte_array_map, ByteArrayMap) \ | 54 V(Map, byte_array_map, ByteArrayMap) \ |
| 55 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ | 55 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ |
| 56 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ | 56 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ |
| 57 /* Cluster the most popular ones in a few cache lines here at the top. */ \ | 57 /* Cluster the most popular ones in a few cache lines here at the top. */ \ |
| 58 V(Object, undefined_value, UndefinedValue) \ | 58 V(Object, undefined_value, UndefinedValue) \ |
| 59 V(Object, the_hole_value, TheHoleValue) \ | 59 V(Object, the_hole_value, TheHoleValue) \ |
| 60 V(Object, null_value, NullValue) \ | 60 V(Object, null_value, NullValue) \ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 88 V(Map, cons_symbol_map, ConsSymbolMap) \ | 88 V(Map, cons_symbol_map, ConsSymbolMap) \ |
| 89 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ | 89 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ |
| 90 V(Map, external_symbol_map, ExternalSymbolMap) \ | 90 V(Map, external_symbol_map, ExternalSymbolMap) \ |
| 91 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ | 91 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ |
| 92 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \ | 92 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \ |
| 93 V(Map, external_string_map, ExternalStringMap) \ | 93 V(Map, external_string_map, ExternalStringMap) \ |
| 94 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \ | 94 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \ |
| 95 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ | 95 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ |
| 96 V(Map, undetectable_string_map, UndetectableStringMap) \ | 96 V(Map, undetectable_string_map, UndetectableStringMap) \ |
| 97 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ | 97 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ |
| 98 V(Map, pixel_array_map, PixelArrayMap) \ | 98 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ |
| 99 V(Map, external_byte_array_map, ExternalByteArrayMap) \ | 99 V(Map, external_byte_array_map, ExternalByteArrayMap) \ |
| 100 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ | 100 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ |
| 101 V(Map, external_short_array_map, ExternalShortArrayMap) \ | 101 V(Map, external_short_array_map, ExternalShortArrayMap) \ |
| 102 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ | 102 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ |
| 103 V(Map, external_int_array_map, ExternalIntArrayMap) \ | 103 V(Map, external_int_array_map, ExternalIntArrayMap) \ |
| 104 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ | 104 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ |
| 105 V(Map, external_float_array_map, ExternalFloatArrayMap) \ | 105 V(Map, external_float_array_map, ExternalFloatArrayMap) \ |
| 106 V(Map, context_map, ContextMap) \ | 106 V(Map, context_map, ContextMap) \ |
| 107 V(Map, catch_context_map, CatchContextMap) \ | 107 V(Map, catch_context_map, CatchContextMap) \ |
| 108 V(Map, code_map, CodeMap) \ | 108 V(Map, code_map, CodeMap) \ |
| 109 V(Map, oddball_map, OddballMap) \ | 109 V(Map, oddball_map, OddballMap) \ |
| 110 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 110 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
| 111 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 111 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
| 112 V(Map, message_object_map, JSMessageObjectMap) \ | 112 V(Map, message_object_map, JSMessageObjectMap) \ |
| 113 V(Map, proxy_map, ProxyMap) \ | 113 V(Map, proxy_map, ProxyMap) \ |
| 114 V(Object, nan_value, NanValue) \ | 114 V(Object, nan_value, NanValue) \ |
| 115 V(Object, minus_zero_value, MinusZeroValue) \ | 115 V(Object, minus_zero_value, MinusZeroValue) \ |
| 116 V(Map, neander_map, NeanderMap) \ | 116 V(Map, neander_map, NeanderMap) \ |
| 117 V(JSObject, message_listeners, MessageListeners) \ | 117 V(JSObject, message_listeners, MessageListeners) \ |
| 118 V(Proxy, prototype_accessors, PrototypeAccessors) \ | 118 V(Proxy, prototype_accessors, PrototypeAccessors) \ |
| 119 V(NumberDictionary, code_stubs, CodeStubs) \ | 119 V(NumberDictionary, code_stubs, CodeStubs) \ |
| 120 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 120 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
| 121 V(Code, js_entry_code, JsEntryCode) \ | 121 V(Code, js_entry_code, JsEntryCode) \ |
| 122 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 122 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
| 123 V(Code, c_entry_code, CEntryCode) \ | |
| 124 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 123 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 125 V(Object, last_script_id, LastScriptId) \ | 124 V(Object, last_script_id, LastScriptId) \ |
| 126 V(Script, empty_script, EmptyScript) \ | 125 V(Script, empty_script, EmptyScript) \ |
| 127 V(Smi, real_stack_limit, RealStackLimit) \ | 126 V(Smi, real_stack_limit, RealStackLimit) \ |
| 128 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 127 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
| 129 | 128 |
| 130 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP | |
| 131 #define STRONG_ROOT_LIST(V) \ | |
| 132 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ | |
| 133 V(Code, re_c_entry_code, RegExpCEntryCode) \ | |
| 134 V(Code, direct_c_entry_code, DirectCEntryCode) | |
| 135 #elif V8_TARGET_ARCH_ARM | |
| 136 #define STRONG_ROOT_LIST(V) \ | |
| 137 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ | |
| 138 V(Code, direct_c_entry_code, DirectCEntryCode) | |
| 139 #else | |
| 140 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) | |
| 141 #endif | |
| 142 | |
| 143 #define ROOT_LIST(V) \ | 129 #define ROOT_LIST(V) \ |
| 144 STRONG_ROOT_LIST(V) \ | 130 STRONG_ROOT_LIST(V) \ |
| 145 V(SymbolTable, symbol_table, SymbolTable) | 131 V(SymbolTable, symbol_table, SymbolTable) |
| 146 | 132 |
| 147 #define SYMBOL_LIST(V) \ | 133 #define SYMBOL_LIST(V) \ |
| 148 V(Array_symbol, "Array") \ | 134 V(Array_symbol, "Array") \ |
| 149 V(Object_symbol, "Object") \ | 135 V(Object_symbol, "Object") \ |
| 150 V(Proto_symbol, "__proto__") \ | 136 V(Proto_symbol, "__proto__") \ |
| 151 V(StringImpl_symbol, "StringImpl") \ | 137 V(StringImpl_symbol, "StringImpl") \ |
| 152 V(arguments_symbol, "arguments") \ | 138 V(arguments_symbol, "arguments") \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 V(Date_symbol, "Date") \ | 170 V(Date_symbol, "Date") \ |
| 185 V(this_symbol, "this") \ | 171 V(this_symbol, "this") \ |
| 186 V(to_string_symbol, "toString") \ | 172 V(to_string_symbol, "toString") \ |
| 187 V(char_at_symbol, "CharAt") \ | 173 V(char_at_symbol, "CharAt") \ |
| 188 V(undefined_symbol, "undefined") \ | 174 V(undefined_symbol, "undefined") \ |
| 189 V(value_of_symbol, "valueOf") \ | 175 V(value_of_symbol, "valueOf") \ |
| 190 V(InitializeVarGlobal_symbol, "InitializeVarGlobal") \ | 176 V(InitializeVarGlobal_symbol, "InitializeVarGlobal") \ |
| 191 V(InitializeConstGlobal_symbol, "InitializeConstGlobal") \ | 177 V(InitializeConstGlobal_symbol, "InitializeConstGlobal") \ |
| 192 V(KeyedLoadSpecialized_symbol, "KeyedLoadSpecialized") \ | 178 V(KeyedLoadSpecialized_symbol, "KeyedLoadSpecialized") \ |
| 193 V(KeyedStoreSpecialized_symbol, "KeyedStoreSpecialized") \ | 179 V(KeyedStoreSpecialized_symbol, "KeyedStoreSpecialized") \ |
| 194 V(KeyedLoadPixelArray_symbol, "KeyedLoadPixelArray") \ | |
| 195 V(KeyedStorePixelArray_symbol, "KeyedStorePixelArray") \ | |
| 196 V(stack_overflow_symbol, "kStackOverflowBoilerplate") \ | 180 V(stack_overflow_symbol, "kStackOverflowBoilerplate") \ |
| 197 V(illegal_access_symbol, "illegal access") \ | 181 V(illegal_access_symbol, "illegal access") \ |
| 198 V(out_of_memory_symbol, "out-of-memory") \ | 182 V(out_of_memory_symbol, "out-of-memory") \ |
| 199 V(illegal_execution_state_symbol, "illegal execution state") \ | 183 V(illegal_execution_state_symbol, "illegal execution state") \ |
| 200 V(get_symbol, "get") \ | 184 V(get_symbol, "get") \ |
| 201 V(set_symbol, "set") \ | 185 V(set_symbol, "set") \ |
| 202 V(function_class_symbol, "Function") \ | 186 V(function_class_symbol, "Function") \ |
| 203 V(illegal_argument_symbol, "illegal argument") \ | 187 V(illegal_argument_symbol, "illegal argument") \ |
| 204 V(MakeReferenceError_symbol, "MakeReferenceError") \ | 188 V(MakeReferenceError_symbol, "MakeReferenceError") \ |
| 205 V(MakeSyntaxError_symbol, "MakeSyntaxError") \ | 189 V(MakeSyntaxError_symbol, "MakeSyntaxError") \ |
| 206 V(MakeTypeError_symbol, "MakeTypeError") \ | 190 V(MakeTypeError_symbol, "MakeTypeError") \ |
| 207 V(invalid_lhs_in_assignment_symbol, "invalid_lhs_in_assignment") \ | 191 V(invalid_lhs_in_assignment_symbol, "invalid_lhs_in_assignment") \ |
| 208 V(invalid_lhs_in_for_in_symbol, "invalid_lhs_in_for_in") \ | 192 V(invalid_lhs_in_for_in_symbol, "invalid_lhs_in_for_in") \ |
| 209 V(invalid_lhs_in_postfix_op_symbol, "invalid_lhs_in_postfix_op") \ | 193 V(invalid_lhs_in_postfix_op_symbol, "invalid_lhs_in_postfix_op") \ |
| 210 V(invalid_lhs_in_prefix_op_symbol, "invalid_lhs_in_prefix_op") \ | 194 V(invalid_lhs_in_prefix_op_symbol, "invalid_lhs_in_prefix_op") \ |
| 211 V(illegal_return_symbol, "illegal_return") \ | 195 V(illegal_return_symbol, "illegal_return") \ |
| 212 V(illegal_break_symbol, "illegal_break") \ | 196 V(illegal_break_symbol, "illegal_break") \ |
| 213 V(illegal_continue_symbol, "illegal_continue") \ | 197 V(illegal_continue_symbol, "illegal_continue") \ |
| 214 V(unknown_label_symbol, "unknown_label") \ | 198 V(unknown_label_symbol, "unknown_label") \ |
| 215 V(redeclaration_symbol, "redeclaration") \ | 199 V(redeclaration_symbol, "redeclaration") \ |
| 216 V(failure_symbol, "<failure>") \ | 200 V(failure_symbol, "<failure>") \ |
| 217 V(space_symbol, " ") \ | 201 V(space_symbol, " ") \ |
| 218 V(exec_symbol, "exec") \ | 202 V(exec_symbol, "exec") \ |
| 219 V(zero_symbol, "0") \ | 203 V(zero_symbol, "0") \ |
| 220 V(global_eval_symbol, "GlobalEval") \ | 204 V(global_eval_symbol, "GlobalEval") \ |
| 221 V(identity_hash_symbol, "v8::IdentityHash") \ | 205 V(identity_hash_symbol, "v8::IdentityHash") \ |
| 222 V(closure_symbol, "(closure)") \ | 206 V(closure_symbol, "(closure)") \ |
| 223 V(use_strict, "use strict") \ | 207 V(use_strict, "use strict") \ |
| 224 V(KeyedLoadExternalArray_symbol, "KeyedLoadExternalArray") \ | 208 V(KeyedLoadExternalByteArray_symbol, "KeyedLoadExternalByteArray") \ |
| 225 V(KeyedStoreExternalArray_symbol, "KeyedStoreExternalArray") | 209 V(KeyedLoadExternalUnsignedByteArray_symbol, \ |
| 210 "KeyedLoadExternalUnsignedByteArray") \ |
| 211 V(KeyedLoadExternalShortArray_symbol, \ |
| 212 "KeyedLoadExternalShortArray") \ |
| 213 V(KeyedLoadExternalUnsignedShortArray_symbol, \ |
| 214 "KeyedLoadExternalUnsignedShortArray") \ |
| 215 V(KeyedLoadExternalIntArray_symbol, "KeyedLoadExternalIntArray") \ |
| 216 V(KeyedLoadExternalUnsignedIntArray_symbol, \ |
| 217 "KeyedLoadExternalUnsignedIntArray") \ |
| 218 V(KeyedLoadExternalFloatArray_symbol, "KeyedLoadExternalFloatArray") \ |
| 219 V(KeyedLoadExternalPixelArray_symbol, "KeyedLoadExternalPixelArray") \ |
| 220 V(KeyedStoreExternalByteArray_symbol, "KeyedStoreExternalByteArray") \ |
| 221 V(KeyedStoreExternalUnsignedByteArray_symbol, \ |
| 222 "KeyedStoreExternalUnsignedByteArray") \ |
| 223 V(KeyedStoreExternalShortArray_symbol, "KeyedStoreExternalShortArray") \ |
| 224 V(KeyedStoreExternalUnsignedShortArray_symbol, \ |
| 225 "KeyedStoreExternalUnsignedShortArray") \ |
| 226 V(KeyedStoreExternalIntArray_symbol, "KeyedStoreExternalIntArray") \ |
| 227 V(KeyedStoreExternalUnsignedIntArray_symbol, \ |
| 228 "KeyedStoreExternalUnsignedIntArray") \ |
| 229 V(KeyedStoreExternalFloatArray_symbol, "KeyedStoreExternalFloatArray") \ |
| 230 V(KeyedStoreExternalPixelArray_symbol, "KeyedStoreExternalPixelArray") |
| 226 | 231 |
| 227 // Forward declarations. | 232 // Forward declarations. |
| 228 class GCTracer; | 233 class GCTracer; |
| 229 class HeapStats; | 234 class HeapStats; |
| 230 class Isolate; | 235 class Isolate; |
| 231 class WeakObjectRetainer; | 236 class WeakObjectRetainer; |
| 232 | 237 |
| 233 | 238 |
| 234 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap, | 239 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap, |
| 235 Object** pointer); | 240 Object** pointer); |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 // Please note this does not perform a garbage collection. | 568 // Please note this does not perform a garbage collection. |
| 564 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length, | 569 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length, |
| 565 PretenureFlag pretenure); | 570 PretenureFlag pretenure); |
| 566 | 571 |
| 567 // Allocate a non-tenured byte array of the specified length | 572 // Allocate a non-tenured byte array of the specified length |
| 568 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 573 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 569 // failed. | 574 // failed. |
| 570 // Please note this does not perform a garbage collection. | 575 // Please note this does not perform a garbage collection. |
| 571 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length); | 576 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length); |
| 572 | 577 |
| 573 // Allocate a pixel array of the specified length | |
| 574 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
| 575 // failed. | |
| 576 // Please note this does not perform a garbage collection. | |
| 577 MUST_USE_RESULT MaybeObject* AllocatePixelArray(int length, | |
| 578 uint8_t* external_pointer, | |
| 579 PretenureFlag pretenure); | |
| 580 | |
| 581 // Allocates an external array of the specified length and type. | 578 // Allocates an external array of the specified length and type. |
| 582 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 579 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 583 // failed. | 580 // failed. |
| 584 // Please note this does not perform a garbage collection. | 581 // Please note this does not perform a garbage collection. |
| 585 MUST_USE_RESULT MaybeObject* AllocateExternalArray( | 582 MUST_USE_RESULT MaybeObject* AllocateExternalArray( |
| 586 int length, | 583 int length, |
| 587 ExternalArrayType array_type, | 584 ExternalArrayType array_type, |
| 588 void* external_pointer, | 585 void* external_pointer, |
| 589 PretenureFlag pretenure); | 586 PretenureFlag pretenure); |
| 590 | 587 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 void CreateFillerObjectAt(Address addr, int size); | 763 void CreateFillerObjectAt(Address addr, int size); |
| 767 | 764 |
| 768 // Makes a new native code object | 765 // Makes a new native code object |
| 769 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 766 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 770 // failed. On success, the pointer to the Code object is stored in the | 767 // failed. On success, the pointer to the Code object is stored in the |
| 771 // self_reference. This allows generated code to reference its own Code | 768 // self_reference. This allows generated code to reference its own Code |
| 772 // object by containing this pointer. | 769 // object by containing this pointer. |
| 773 // Please note this function does not perform a garbage collection. | 770 // Please note this function does not perform a garbage collection. |
| 774 MUST_USE_RESULT MaybeObject* CreateCode(const CodeDesc& desc, | 771 MUST_USE_RESULT MaybeObject* CreateCode(const CodeDesc& desc, |
| 775 Code::Flags flags, | 772 Code::Flags flags, |
| 776 Handle<Object> self_reference); | 773 Handle<Object> self_reference, |
| 774 bool immovable = false); |
| 777 | 775 |
| 778 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); | 776 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); |
| 779 | 777 |
| 780 // Copy the code and scope info part of the code object, but insert | 778 // Copy the code and scope info part of the code object, but insert |
| 781 // the provided data as the relocation information. | 779 // the provided data as the relocation information. |
| 782 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); | 780 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); |
| 783 | 781 |
| 784 // Finds the symbol for string in the symbol table. | 782 // Finds the symbol for string in the symbol table. |
| 785 // If not found, a new symbol is added to the table and returned. | 783 // If not found, a new symbol is added to the table and returned. |
| 786 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 784 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1421 // Initializes a JSObject based on its map. | 1419 // Initializes a JSObject based on its map. |
| 1422 void InitializeJSObjectFromMap(JSObject* obj, | 1420 void InitializeJSObjectFromMap(JSObject* obj, |
| 1423 FixedArray* properties, | 1421 FixedArray* properties, |
| 1424 Map* map); | 1422 Map* map); |
| 1425 | 1423 |
| 1426 bool CreateInitialMaps(); | 1424 bool CreateInitialMaps(); |
| 1427 bool CreateInitialObjects(); | 1425 bool CreateInitialObjects(); |
| 1428 | 1426 |
| 1429 // These five Create*EntryStub functions are here and forced to not be inlined | 1427 // These five Create*EntryStub functions are here and forced to not be inlined |
| 1430 // because of a gcc-4.4 bug that assigns wrong vtable entries. | 1428 // because of a gcc-4.4 bug that assigns wrong vtable entries. |
| 1431 NO_INLINE(void CreateCEntryStub()); | |
| 1432 NO_INLINE(void CreateJSEntryStub()); | 1429 NO_INLINE(void CreateJSEntryStub()); |
| 1433 NO_INLINE(void CreateJSConstructEntryStub()); | 1430 NO_INLINE(void CreateJSConstructEntryStub()); |
| 1434 NO_INLINE(void CreateRegExpCEntryStub()); | |
| 1435 NO_INLINE(void CreateDirectCEntryStub()); | |
| 1436 | 1431 |
| 1437 void CreateFixedStubs(); | 1432 void CreateFixedStubs(); |
| 1438 | 1433 |
| 1439 MaybeObject* CreateOddball(const char* to_string, | 1434 MaybeObject* CreateOddball(const char* to_string, |
| 1440 Object* to_number, | 1435 Object* to_number, |
| 1441 byte kind); | 1436 byte kind); |
| 1442 | 1437 |
| 1443 // Allocate empty fixed array. | 1438 // Allocate empty fixed array. |
| 1444 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); | 1439 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); |
| 1445 | 1440 |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2244 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2239 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2245 }; | 2240 }; |
| 2246 #endif // DEBUG || LIVE_OBJECT_LIST | 2241 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2247 | 2242 |
| 2248 | 2243 |
| 2249 } } // namespace v8::internal | 2244 } } // namespace v8::internal |
| 2250 | 2245 |
| 2251 #undef HEAP | 2246 #undef HEAP |
| 2252 | 2247 |
| 2253 #endif // V8_HEAP_H_ | 2248 #endif // V8_HEAP_H_ |
| OLD | NEW |