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

Side by Side Diff: src/globals.h

Issue 139973004: A64: Synchronize with r15814. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/full-codegen.cc ('k') | src/handles.h » ('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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 335
336 // FUNCTION_CAST<F>(addr) casts an address into a function 336 // FUNCTION_CAST<F>(addr) casts an address into a function
337 // of type F. Used to invoke generated code from within C. 337 // of type F. Used to invoke generated code from within C.
338 template <typename F> 338 template <typename F>
339 F FUNCTION_CAST(Address addr) { 339 F FUNCTION_CAST(Address addr) {
340 return reinterpret_cast<F>(reinterpret_cast<intptr_t>(addr)); 340 return reinterpret_cast<F>(reinterpret_cast<intptr_t>(addr));
341 } 341 }
342 342
343 343
344 #if __cplusplus >= 201103L
345 #define DISALLOW_BY_DELETE = delete
346 #else
347 #define DISALLOW_BY_DELETE
348 #endif
349
350
344 // A macro to disallow the evil copy constructor and operator= functions 351 // A macro to disallow the evil copy constructor and operator= functions
345 // This should be used in the private: declarations for a class 352 // This should be used in the private: declarations for a class
346 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ 353 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
347 TypeName(const TypeName&); \ 354 TypeName(const TypeName&) DISALLOW_BY_DELETE; \
348 void operator=(const TypeName&) 355 void operator=(const TypeName&) DISALLOW_BY_DELETE
349 356
350 357
351 // A macro to disallow all the implicit constructors, namely the 358 // A macro to disallow all the implicit constructors, namely the
352 // default constructor, copy constructor and operator= functions. 359 // default constructor, copy constructor and operator= functions.
353 // 360 //
354 // This should be used in the private: declarations for a class 361 // This should be used in the private: declarations for a class
355 // that wants to prevent anyone from instantiating it. This is 362 // that wants to prevent anyone from instantiating it. This is
356 // especially useful for classes containing only static methods. 363 // especially useful for classes containing only static methods.
357 #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \ 364 #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
358 TypeName(); \ 365 TypeName() DISALLOW_BY_DELETE; \
359 DISALLOW_COPY_AND_ASSIGN(TypeName) 366 DISALLOW_COPY_AND_ASSIGN(TypeName)
360 367
361 368
362 // Define used for helping GCC to make better inlining. Don't bother for debug 369 // Define used for helping GCC to make better inlining. Don't bother for debug
363 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation 370 // builds. On GCC 3.4.5 using __attribute__((always_inline)) causes compilation
364 // errors in debug build. 371 // errors in debug build.
365 #if defined(__GNUC__) && !defined(DEBUG) 372 #if defined(__GNUC__) && !defined(DEBUG)
366 #if (__GNUC__ >= 4) 373 #if (__GNUC__ >= 4)
367 #define INLINE(header) inline header __attribute__((always_inline)) 374 #define INLINE(header) inline header __attribute__((always_inline))
368 #define NO_INLINE(header) header __attribute__((noinline)) 375 #define NO_INLINE(header) header __attribute__((noinline))
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // the backend, so both modes are represented by the kStrictMode value. 454 // the backend, so both modes are represented by the kStrictMode value.
448 enum StrictModeFlag { 455 enum StrictModeFlag {
449 kNonStrictMode, 456 kNonStrictMode,
450 kStrictMode 457 kStrictMode
451 }; 458 };
452 459
453 460
454 } } // namespace v8::internal 461 } } // namespace v8::internal
455 462
456 #endif // V8_GLOBALS_H_ 463 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698