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

Side by Side Diff: src/globals.h

Issue 8680013: Remove the static qualifier from functions in header files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restored static const references on ARM and MIPS. Created 9 years, 1 month 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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // array. You should only use ARRAY_SIZE on statically allocated 287 // array. You should only use ARRAY_SIZE on statically allocated
288 // arrays. 288 // arrays.
289 #define ARRAY_SIZE(a) \ 289 #define ARRAY_SIZE(a) \
290 ((sizeof(a) / sizeof(*(a))) / \ 290 ((sizeof(a) / sizeof(*(a))) / \
291 static_cast<size_t>(!(sizeof(a) % sizeof(*(a))))) 291 static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
292 292
293 293
294 // The USE(x) template is used to silence C++ compiler warnings 294 // The USE(x) template is used to silence C++ compiler warnings
295 // issued for (yet) unused variables (typically parameters). 295 // issued for (yet) unused variables (typically parameters).
296 template <typename T> 296 template <typename T>
297 static inline void USE(T) { } 297 inline void USE(T) { }
298 298
299 299
300 // FUNCTION_ADDR(f) gets the address of a C function f. 300 // FUNCTION_ADDR(f) gets the address of a C function f.
301 #define FUNCTION_ADDR(f) \ 301 #define FUNCTION_ADDR(f) \
302 (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f))) 302 (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f)))
303 303
304 304
305 // FUNCTION_CAST<F>(addr) casts an address into a function 305 // FUNCTION_CAST<F>(addr) casts an address into a function
306 // of type F. Used to invoke generated code from within C. 306 // of type F. Used to invoke generated code from within C.
307 template <typename F> 307 template <typename F>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // The Strict Mode (ECMA-262 5th edition, 4.2.2). 364 // The Strict Mode (ECMA-262 5th edition, 4.2.2).
365 enum StrictModeFlag { 365 enum StrictModeFlag {
366 kNonStrictMode, 366 kNonStrictMode,
367 kStrictMode 367 kStrictMode
368 }; 368 };
369 369
370 370
371 } } // namespace v8::internal 371 } } // namespace v8::internal
372 372
373 #endif // V8_GLOBALS_H_ 373 #endif // V8_GLOBALS_H_
OLDNEW
« src/conversions-inl.h ('K') | « src/fast-dtoa.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698