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

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 326333002: Drop globals.h include from platform.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « src/arm/assembler-arm.cc ('k') | src/mips/assembler-mips.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 namespace v8 { 45 namespace v8 {
46 namespace internal { 46 namespace internal {
47 47
48 // ----------------------------------------------------------------------------- 48 // -----------------------------------------------------------------------------
49 // Implementation of CpuFeatures 49 // Implementation of CpuFeatures
50 50
51 void CpuFeatures::ProbeImpl(bool cross_compile) { 51 void CpuFeatures::ProbeImpl(bool cross_compile) {
52 CPU cpu; 52 CPU cpu;
53 CHECK(cpu.has_sse2()); // SSE2 support is mandatory. 53 CHECK(cpu.has_sse2()); // SSE2 support is mandatory.
54 CHECK(cpu.has_cmov()); // CMOV support is mandatory. 54 CHECK(cpu.has_cmov()); // CMOV support is mandatory.
55 supported_ |= OS::CpuFeaturesImpliedByPlatform();
56 55
57 // Only use statically determined features for cross compile (snapshot). 56 // Only use statically determined features for cross compile (snapshot).
58 if (cross_compile) return; 57 if (cross_compile) return;
59 58
60 if (cpu.has_sse41() && FLAG_enable_sse4_1) supported_ |= 1u << SSE4_1; 59 if (cpu.has_sse41() && FLAG_enable_sse4_1) supported_ |= 1u << SSE4_1;
61 if (cpu.has_sse3() && FLAG_enable_sse3) supported_ |= 1u << SSE3; 60 if (cpu.has_sse3() && FLAG_enable_sse3) supported_ |= 1u << SSE3;
62 } 61 }
63 62
64 63
65 void CpuFeatures::PrintTarget() { } 64 void CpuFeatures::PrintTarget() { }
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 fprintf(coverage_log, "%s\n", file_line); 2636 fprintf(coverage_log, "%s\n", file_line);
2638 fflush(coverage_log); 2637 fflush(coverage_log);
2639 } 2638 }
2640 } 2639 }
2641 2640
2642 #endif 2641 #endif
2643 2642
2644 } } // namespace v8::internal 2643 } } // namespace v8::internal
2645 2644
2646 #endif // V8_TARGET_ARCH_IA32 2645 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698