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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 #define ROOT_ACCESSOR(type, name) \ | 293 #define ROOT_ACCESSOR(type, name) \ |
294 static Handle<type> name() { return Handle<type>(&Heap::name##_); } | 294 static Handle<type> name() { return Handle<type>(&Heap::name##_); } |
295 ROOT_LIST(ROOT_ACCESSOR) | 295 ROOT_LIST(ROOT_ACCESSOR) |
296 #undef ROOT_ACCESSOR_ACCESSOR | 296 #undef ROOT_ACCESSOR_ACCESSOR |
297 | 297 |
298 #define SYMBOL_ACCESSOR(name, str) \ | 298 #define SYMBOL_ACCESSOR(name, str) \ |
299 static Handle<String> name() { return Handle<String>(&Heap::name##_); } | 299 static Handle<String> name() { return Handle<String>(&Heap::name##_); } |
300 SYMBOL_LIST(SYMBOL_ACCESSOR) | 300 SYMBOL_LIST(SYMBOL_ACCESSOR) |
301 #undef SYMBOL_ACCESSOR | 301 #undef SYMBOL_ACCESSOR |
| 302 |
| 303 static Handle<String> hidden_symbol() { |
| 304 return Handle<String>(&Heap::hidden_symbol_); |
| 305 } |
302 | 306 |
303 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 307 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
304 | 308 |
305 static Handle<Dictionary> DictionaryAtNumberPut(Handle<Dictionary>, | 309 static Handle<Dictionary> DictionaryAtNumberPut(Handle<Dictionary>, |
306 uint32_t key, | 310 uint32_t key, |
307 Handle<Object> value); | 311 Handle<Object> value); |
308 | 312 |
309 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 313 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
310 | 314 |
311 | 315 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 // Update the map cache in the global context with (keys, map) | 352 // Update the map cache in the global context with (keys, map) |
349 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 353 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
350 Handle<FixedArray> keys, | 354 Handle<FixedArray> keys, |
351 Handle<Map> map); | 355 Handle<Map> map); |
352 }; | 356 }; |
353 | 357 |
354 | 358 |
355 } } // namespace v8::internal | 359 } } // namespace v8::internal |
356 | 360 |
357 #endif // V8_FACTORY_H_ | 361 #endif // V8_FACTORY_H_ |
OLD | NEW |