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

Side by Side Diff: src/v8utils.h

Issue 18037002: Clean up the usage of V8_TARGET_ARCH_${arch} and V8_HOST_ARCH_${arch} (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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/strtod.cc ('k') | src/x64/assembler-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 251
252 template <typename T, typename U> 252 template <typename T, typename U>
253 inline void MemsetPointer(T** dest, U* value, int counter) { 253 inline void MemsetPointer(T** dest, U* value, int counter) {
254 #ifdef DEBUG 254 #ifdef DEBUG
255 T* a = NULL; 255 T* a = NULL;
256 U* b = NULL; 256 U* b = NULL;
257 a = b; // Fake assignment to check assignability. 257 a = b; // Fake assignment to check assignability.
258 USE(a); 258 USE(a);
259 #endif // DEBUG 259 #endif // DEBUG
260 #if defined(V8_HOST_ARCH_IA32) 260 #if V8_HOST_ARCH_IA32
261 #define STOS "stosl" 261 #define STOS "stosl"
262 #elif defined(V8_HOST_ARCH_X64) 262 #elif V8_HOST_ARCH_X64
263 #define STOS "stosq" 263 #define STOS "stosq"
264 #endif 264 #endif
265 #if defined(__native_client__) 265 #if defined(__native_client__)
266 // This STOS sequence does not validate for x86_64 Native Client. 266 // This STOS sequence does not validate for x86_64 Native Client.
267 // Here we #undef STOS to force use of the slower C version. 267 // Here we #undef STOS to force use of the slower C version.
268 // TODO(bradchen): Profile V8 and implement a faster REP STOS 268 // TODO(bradchen): Profile V8 and implement a faster REP STOS
269 // here if the profile indicates it matters. 269 // here if the profile indicates it matters.
270 #undef STOS 270 #undef STOS
271 #endif 271 #endif
272 272
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 // Add formatted contents like printf based on a va_list. 386 // Add formatted contents like printf based on a va_list.
387 void AddFormattedList(const char* format, va_list list); 387 void AddFormattedList(const char* format, va_list list);
388 private: 388 private:
389 DISALLOW_IMPLICIT_CONSTRUCTORS(StringBuilder); 389 DISALLOW_IMPLICIT_CONSTRUCTORS(StringBuilder);
390 }; 390 };
391 391
392 } } // namespace v8::internal 392 } } // namespace v8::internal
393 393
394 #endif // V8_V8UTILS_H_ 394 #endif // V8_V8UTILS_H_
OLDNEW
« no previous file with comments | « src/strtod.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698