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

Side by Side Diff: src/globals.h

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