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

Side by Side Diff: src/platform-linux.cc

Issue 7860035: Merge bleeding edge up to 9192 into the GC branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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 | « src/platform.h ('k') | src/platform-win32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " 126 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with "
127 "-DUSE_EABI_HARDFLOAT\n"); 127 "-DUSE_EABI_HARDFLOAT\n");
128 exit(1); 128 exit(1);
129 #endif 129 #endif
130 } 130 }
131 #endif 131 #endif
132 } 132 }
133 133
134 134
135 uint64_t OS::CpuFeaturesImpliedByPlatform() { 135 uint64_t OS::CpuFeaturesImpliedByPlatform() {
136 #if(defined(__mips_hard_float) && __mips_hard_float != 0)
137 // Here gcc is telling us that we are on an MIPS and gcc is assuming that we
138 // have FPU instructions. If gcc can assume it then so can we.
139 return 1u << FPU;
140 #else
141 return 0; // Linux runs on anything. 136 return 0; // Linux runs on anything.
142 #endif
143 } 137 }
144 138
145 139
146 #ifdef __arm__ 140 #ifdef __arm__
147 static bool CPUInfoContainsString(const char * search_string) { 141 static bool CPUInfoContainsString(const char * search_string) {
148 const char* file_name = "/proc/cpuinfo"; 142 const char* file_name = "/proc/cpuinfo";
149 // This is written as a straight shot one pass parser 143 // This is written as a straight shot one pass parser
150 // and not using STL string and ifstream because, 144 // and not using STL string and ifstream because,
151 // on Linux, it's reading from a (non-mmap-able) 145 // on Linux, it's reading from a (non-mmap-able)
152 // character special device. 146 // character special device.
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1173
1180 1174
1181 void Sampler::Stop() { 1175 void Sampler::Stop() {
1182 ASSERT(IsActive()); 1176 ASSERT(IsActive());
1183 SignalSender::RemoveActiveSampler(this); 1177 SignalSender::RemoveActiveSampler(this);
1184 SetActive(false); 1178 SetActive(false);
1185 } 1179 }
1186 1180
1187 1181
1188 } } // namespace v8::internal 1182 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698