| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 // Installs interceptors on the instance. 'desc' is a function template, | 308 // Installs interceptors on the instance. 'desc' is a function template, |
| 309 // and instance is an object instance created by the function of this | 309 // and instance is an object instance created by the function of this |
| 310 // function template. | 310 // function template. |
| 311 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc, | 311 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc, |
| 312 Handle<JSObject> instance, | 312 Handle<JSObject> instance, |
| 313 bool* pending_exception); | 313 bool* pending_exception); |
| 314 | 314 |
| 315 #define ROOT_ACCESSOR(type, name, camel_name) \ | 315 #define ROOT_ACCESSOR(type, name, camel_name) \ |
| 316 static inline Handle<type> name() { \ | 316 static inline Handle<type> name() { \ |
| 317 return Handle<type>(bit_cast<type**, Object**>( \ | 317 return Handle<type>(bit_cast<type**, Object**>( \ |
| 318 &Heap::roots_[Heap::k##camel_name##RootIndex])); \ | 318 &v8_context()->heap_data_.roots_[Heap::k##camel_name##RootIndex])); \ |
| 319 } | 319 } |
| 320 ROOT_LIST(ROOT_ACCESSOR) | 320 ROOT_LIST(ROOT_ACCESSOR) |
| 321 #undef ROOT_ACCESSOR_ACCESSOR | 321 #undef ROOT_ACCESSOR_ACCESSOR |
| 322 | 322 |
| 323 #define SYMBOL_ACCESSOR(name, str) \ | 323 #define SYMBOL_ACCESSOR(name, str) \ |
| 324 static inline Handle<String> name() { \ | 324 static inline Handle<String> name() { \ |
| 325 return Handle<String>(bit_cast<String**, Object**>( \ | 325 return Handle<String>(bit_cast<String**, Object**>( \ |
| 326 &Heap::roots_[Heap::k##name##RootIndex])); \ | 326 &v8_context()->heap_data_.roots_[Heap::k##name##RootIndex])); \ |
| 327 } | 327 } |
| 328 SYMBOL_LIST(SYMBOL_ACCESSOR) | 328 SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 329 #undef SYMBOL_ACCESSOR | 329 #undef SYMBOL_ACCESSOR |
| 330 | 330 |
| 331 static Handle<String> hidden_symbol() { | 331 static Handle<String> hidden_symbol() { |
| 332 return Handle<String>(&Heap::hidden_symbol_); | 332 return Handle<String>(&v8_context()->heap_data_.hidden_symbol_); |
| 333 } | 333 } |
| 334 | 334 |
| 335 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 335 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
| 336 | 336 |
| 337 static Handle<NumberDictionary> DictionaryAtNumberPut( | 337 static Handle<NumberDictionary> DictionaryAtNumberPut( |
| 338 Handle<NumberDictionary>, | 338 Handle<NumberDictionary>, |
| 339 uint32_t key, | 339 uint32_t key, |
| 340 Handle<Object> value); | 340 Handle<Object> value); |
| 341 | 341 |
| 342 #ifdef ENABLE_DEBUGGER_SUPPORT | 342 #ifdef ENABLE_DEBUGGER_SUPPORT |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // Update the map cache in the global context with (keys, map) | 382 // Update the map cache in the global context with (keys, map) |
| 383 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 383 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 384 Handle<FixedArray> keys, | 384 Handle<FixedArray> keys, |
| 385 Handle<Map> map); | 385 Handle<Map> map); |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 | 388 |
| 389 } } // namespace v8::internal | 389 } } // namespace v8::internal |
| 390 | 390 |
| 391 #endif // V8_FACTORY_H_ | 391 #endif // V8_FACTORY_H_ |
| OLD | NEW |