| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 V(FixedArray, number_string_cache, NumberStringCache) \ | 147 V(FixedArray, number_string_cache, NumberStringCache) \ |
| 148 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 148 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
| 149 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 149 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 150 V(Object, last_script_id, LastScriptId) \ | 150 V(Object, last_script_id, LastScriptId) \ |
| 151 | 151 |
| 152 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 152 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP |
| 153 #define STRONG_ROOT_LIST(V) \ | 153 #define STRONG_ROOT_LIST(V) \ |
| 154 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ | 154 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ |
| 155 V(Code, re_c_entry_code, RegExpCEntryCode) | 155 V(Code, re_c_entry_code, RegExpCEntryCode) |
| 156 #else | 156 #else |
| 157 #if V8_TARGET_ARCH_MIPS |
| 158 #define STRONG_ROOT_LIST(V) \ |
| 159 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ |
| 160 V(Code, test_mips_entry_code, TestMIPSCode) |
| 161 #else |
| 157 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) | 162 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) |
| 158 #endif | 163 #endif |
| 164 #endif |
| 159 | 165 |
| 160 #define ROOT_LIST(V) \ | 166 #define ROOT_LIST(V) \ |
| 161 STRONG_ROOT_LIST(V) \ | 167 STRONG_ROOT_LIST(V) \ |
| 162 V(SymbolTable, symbol_table, SymbolTable) | 168 V(SymbolTable, symbol_table, SymbolTable) |
| 163 | 169 |
| 164 #define SYMBOL_LIST(V) \ | 170 #define SYMBOL_LIST(V) \ |
| 165 V(Array_symbol, "Array") \ | 171 V(Array_symbol, "Array") \ |
| 166 V(Object_symbol, "Object") \ | 172 V(Object_symbol, "Object") \ |
| 167 V(Proto_symbol, "__proto__") \ | 173 V(Proto_symbol, "__proto__") \ |
| 168 V(StringImpl_symbol, "StringImpl") \ | 174 V(StringImpl_symbol, "StringImpl") \ |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 static bool CreateInitialMaps(); | 1070 static bool CreateInitialMaps(); |
| 1065 static bool CreateInitialObjects(); | 1071 static bool CreateInitialObjects(); |
| 1066 | 1072 |
| 1067 // These four Create*EntryStub functions are here because of a gcc-4.4 bug | 1073 // These four Create*EntryStub functions are here because of a gcc-4.4 bug |
| 1068 // that assigns wrong vtable entries. | 1074 // that assigns wrong vtable entries. |
| 1069 static void CreateCEntryStub(); | 1075 static void CreateCEntryStub(); |
| 1070 static void CreateCEntryDebugBreakStub(); | 1076 static void CreateCEntryDebugBreakStub(); |
| 1071 static void CreateJSEntryStub(); | 1077 static void CreateJSEntryStub(); |
| 1072 static void CreateJSConstructEntryStub(); | 1078 static void CreateJSConstructEntryStub(); |
| 1073 static void CreateRegExpCEntryStub(); | 1079 static void CreateRegExpCEntryStub(); |
| 1080 #ifdef V8_TARGET_ARCH_MIPS |
| 1081 static void CreateTestMIPSStub(); |
| 1082 #endif |
| 1074 | 1083 |
| 1075 static void CreateFixedStubs(); | 1084 static void CreateFixedStubs(); |
| 1076 | 1085 |
| 1077 static Object* CreateOddball(Map* map, | 1086 static Object* CreateOddball(Map* map, |
| 1078 const char* to_string, | 1087 const char* to_string, |
| 1079 Object* to_number); | 1088 Object* to_number); |
| 1080 | 1089 |
| 1081 // Allocate empty fixed array. | 1090 // Allocate empty fixed array. |
| 1082 static Object* AllocateEmptyFixedArray(); | 1091 static Object* AllocateEmptyFixedArray(); |
| 1083 | 1092 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 } | 1647 } |
| 1639 static TranscendentalCache* caches_[kNumberOfCaches]; | 1648 static TranscendentalCache* caches_[kNumberOfCaches]; |
| 1640 Element elements_[kCacheSize]; | 1649 Element elements_[kCacheSize]; |
| 1641 Type type_; | 1650 Type type_; |
| 1642 }; | 1651 }; |
| 1643 | 1652 |
| 1644 | 1653 |
| 1645 } } // namespace v8::internal | 1654 } } // namespace v8::internal |
| 1646 | 1655 |
| 1647 #endif // V8_HEAP_H_ | 1656 #endif // V8_HEAP_H_ |
| OLD | NEW |