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