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

Side by Side Diff: src/cpu.cc

Issue 23535003: Cosmetic fix wrt to V8_INLINE usage in cpu.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 "mov %%ebx, %%edi\n" 51 "mov %%ebx, %%edi\n"
52 "cpuid\n" 52 "cpuid\n"
53 "xchg %%edi, %%ebx\n" 53 "xchg %%edi, %%ebx\n"
54 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) 54 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3])
55 : "a"(info_type) 55 : "a"(info_type)
56 ); 56 );
57 } 57 }
58 58
59 #else // !V8_CC_MSVC || (!defined(__i386__) && !defined(__pic__)) 59 #else // !V8_CC_MSVC || (!defined(__i386__) && !defined(__pic__))
60 60
61 static void V8_INLINE(__cpuid(int cpu_info[4], int info_type)) { 61 static V8_INLINE(void __cpuid(int cpu_info[4], int info_type)) {
62 __asm__ volatile ( 62 __asm__ volatile (
63 "cpuid \n\t" 63 "cpuid \n\t"
64 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) 64 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3])
65 : "a"(info_type) 65 : "a"(info_type)
66 ); 66 );
67 } 67 }
68 68
69 #endif 69 #endif
70 70
71 #elif V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS 71 #elif V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // facility is universally available on the MIPS architectures, 437 // facility is universally available on the MIPS architectures,
438 // so it's up to individual OSes to provide such. 438 // so it's up to individual OSes to provide such.
439 CPUInfo cpu_info; 439 CPUInfo cpu_info;
440 char* cpu_model = cpu_info.ExtractField("cpu model"); 440 char* cpu_model = cpu_info.ExtractField("cpu model");
441 has_fpu_ = HasListItem(cpu_model, "FPU"); 441 has_fpu_ = HasListItem(cpu_model, "FPU");
442 delete[] cpu_model; 442 delete[] cpu_model;
443 #endif 443 #endif
444 } 444 }
445 445
446 } } // namespace v8::internal 446 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698