Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: src/factory.h

Issue 3117007: Allow compiling with strict aliasing enabled on GCC 4.4. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // Installs interceptors on the instance. 'desc' is a function template, 323 // Installs interceptors on the instance. 'desc' is a function template,
324 // and instance is an object instance created by the function of this 324 // and instance is an object instance created by the function of this
325 // function template. 325 // function template.
326 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc, 326 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc,
327 Handle<JSObject> instance, 327 Handle<JSObject> instance,
328 bool* pending_exception); 328 bool* pending_exception);
329 329
330 #define ROOT_ACCESSOR(type, name, camel_name) \ 330 #define ROOT_ACCESSOR(type, name, camel_name) \
331 static inline Handle<type> name() { \ 331 static inline Handle<type> name() { \
332 return Handle<type>(BitCast<type**, Object**>( \ 332 return Handle<type>(BitCast<type**>( \
333 &Heap::roots_[Heap::k##camel_name##RootIndex])); \ 333 &Heap::roots_[Heap::k##camel_name##RootIndex])); \
334 } 334 }
335 ROOT_LIST(ROOT_ACCESSOR) 335 ROOT_LIST(ROOT_ACCESSOR)
336 #undef ROOT_ACCESSOR_ACCESSOR 336 #undef ROOT_ACCESSOR_ACCESSOR
337 337
338 #define SYMBOL_ACCESSOR(name, str) \ 338 #define SYMBOL_ACCESSOR(name, str) \
339 static inline Handle<String> name() { \ 339 static inline Handle<String> name() { \
340 return Handle<String>(BitCast<String**, Object**>( \ 340 return Handle<String>(BitCast<String**>( \
341 &Heap::roots_[Heap::k##name##RootIndex])); \ 341 &Heap::roots_[Heap::k##name##RootIndex])); \
342 } 342 }
343 SYMBOL_LIST(SYMBOL_ACCESSOR) 343 SYMBOL_LIST(SYMBOL_ACCESSOR)
344 #undef SYMBOL_ACCESSOR 344 #undef SYMBOL_ACCESSOR
345 345
346 static Handle<String> hidden_symbol() { 346 static Handle<String> hidden_symbol() {
347 return Handle<String>(&Heap::hidden_symbol_); 347 return Handle<String>(&Heap::hidden_symbol_);
348 } 348 }
349 349
350 static Handle<SharedFunctionInfo> NewSharedFunctionInfo( 350 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // Update the map cache in the global context with (keys, map) 401 // Update the map cache in the global context with (keys, map)
402 static Handle<MapCache> AddToMapCache(Handle<Context> context, 402 static Handle<MapCache> AddToMapCache(Handle<Context> context,
403 Handle<FixedArray> keys, 403 Handle<FixedArray> keys,
404 Handle<Map> map); 404 Handle<Map> map);
405 }; 405 };
406 406
407 407
408 } } // namespace v8::internal 408 } } // namespace v8::internal
409 409
410 #endif // V8_FACTORY_H_ 410 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698