| 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 | 302 |
| 303 static Handle<String> hidden_symbol() { | 303 static Handle<String> hidden_symbol() { |
| 304 return Handle<String>(&Heap::hidden_symbol_); | 304 return Handle<String>(&Heap::hidden_symbol_); |
| 305 } | 305 } |
| 306 | 306 |
| 307 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 307 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
| 308 | 308 |
| 309 static Handle<Dictionary> DictionaryAtNumberPut(Handle<Dictionary>, | 309 static Handle<Dictionary> DictionaryAtNumberPut(Handle<Dictionary>, |
| 310 uint32_t key, | 310 uint32_t key, |
| 311 Handle<Object> value); | 311 Handle<Object> value); |
| 312 | 312 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Update the map cache in the global context with (keys, map) | 352 // Update the map cache in the global context with (keys, map) |
| 353 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 353 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 354 Handle<FixedArray> keys, | 354 Handle<FixedArray> keys, |
| 355 Handle<Map> map); | 355 Handle<Map> map); |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 | 358 |
| 359 } } // namespace v8::internal | 359 } } // namespace v8::internal |
| 360 | 360 |
| 361 #endif // V8_FACTORY_H_ | 361 #endif // V8_FACTORY_H_ |
| OLD | NEW |