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

Side by Side Diff: src/globals.h

Issue 3086020: Merge r5179 (Fix GCC 4.4.4 build) to 2.2 branch (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.2/
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.h » ('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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 #else 635 #else
636 #define TRACK_MEMORY(name) 636 #define TRACK_MEMORY(name)
637 #endif 637 #endif
638 638
639 // define used for helping GCC to make better inlining. Don't bother for debug 639 // define used for helping GCC to make better inlining. Don't bother for debug
640 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation 640 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation
641 // errors in debug build. 641 // errors in debug build.
642 #if defined(__GNUC__) && !defined(DEBUG) 642 #if defined(__GNUC__) && !defined(DEBUG)
643 #if (__GNUC__ >= 4) 643 #if (__GNUC__ >= 4)
644 #define INLINE(header) inline header __attribute__((always_inline)) 644 #define INLINE(header) inline header __attribute__((always_inline))
645 #define NO_INLINE(header) header __attribute__((noinline))
645 #else 646 #else
646 #define INLINE(header) inline __attribute__((always_inline)) header 647 #define INLINE(header) inline __attribute__((always_inline)) header
648 #define NO_INLINE(header) __attribute__((noinline)) header
647 #endif 649 #endif
648 #else 650 #else
649 #define INLINE(header) inline header 651 #define INLINE(header) inline header
652 #define NO_INLINE(header) header
650 #endif 653 #endif
651 654
652 // Feature flags bit positions. They are mostly based on the CPUID spec. 655 // Feature flags bit positions. They are mostly based on the CPUID spec.
653 // (We assign CPUID itself to one of the currently reserved bits -- 656 // (We assign CPUID itself to one of the currently reserved bits --
654 // feel free to change this if needed.) 657 // feel free to change this if needed.)
655 // On X86/X64, values below 32 are bits in EDX, values above 32 are bits in ECX. 658 // On X86/X64, values below 32 are bits in EDX, values above 32 are bits in ECX.
656 enum CpuFeature { SSE4_1 = 32 + 19, // x86 659 enum CpuFeature { SSE4_1 = 32 + 19, // x86
657 SSE3 = 32 + 0, // x86 660 SSE3 = 32 + 0, // x86
658 SSE2 = 26, // x86 661 SSE2 = 26, // x86
659 CMOV = 15, // x86 662 CMOV = 15, // x86
660 RDTSC = 4, // x86 663 RDTSC = 4, // x86
661 CPUID = 10, // x86 664 CPUID = 10, // x86
662 VFP3 = 1, // ARM 665 VFP3 = 1, // ARM
663 ARMv7 = 2, // ARM 666 ARMv7 = 2, // ARM
664 SAHF = 0}; // x86 667 SAHF = 0}; // x86
665 668
666 } } // namespace v8::internal 669 } } // namespace v8::internal
667 670
668 #endif // V8_GLOBALS_H_ 671 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698