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

Side by Side Diff: src/globals.h

Issue 1930: Adapt to new calling convention on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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/frames-arm.cc ('k') | src/ic-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 26 matching lines...) Expand all
37 typedef unsigned short uint16_t; // NOLINT 37 typedef unsigned short uint16_t; // NOLINT
38 typedef int int32_t; 38 typedef int int32_t;
39 typedef unsigned int uint32_t; 39 typedef unsigned int uint32_t;
40 typedef __int64 int64_t; 40 typedef __int64 int64_t;
41 typedef unsigned __int64 uint64_t; 41 typedef unsigned __int64 uint64_t;
42 #else 42 #else
43 #include <stdint.h> // for intptr_t 43 #include <stdint.h> // for intptr_t
44 #endif 44 #endif
45 45
46 46
47 // TODO(1233523): Get rid of this code that conditionally introduces a
48 // macro to allow us to check for platforms that use the old
49 // non-adapted arguments calling conventions.
50 #if defined(ARM) || defined(__arm__) || defined(__thumb__)
51 #define USE_OLD_CALLING_CONVENTIONS
52 #endif
53
54 namespace v8 { namespace internal { 47 namespace v8 { namespace internal {
55 48
56 // Support for alternative bool type. This is only enabled if the code is 49 // Support for alternative bool type. This is only enabled if the code is
57 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 50 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
58 // For instance, 'bool b = "false";' results in b == true! This is a hidden 51 // For instance, 'bool b = "false";' results in b == true! This is a hidden
59 // source of bugs. 52 // source of bugs.
60 // However, redefining the bool type does have some negative impact on some 53 // However, redefining the bool type does have some negative impact on some
61 // platforms. It gives rise to compiler warnings (i.e. with 54 // platforms. It gives rise to compiler warnings (i.e. with
62 // MSVC) in the API header files when mixing code that uses the standard 55 // MSVC) in the API header files when mixing code that uses the standard
63 // bool with code that uses the redefined version. 56 // bool with code that uses the redefined version.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 #else 458 #else
466 #define INLINE(header) inline __attribute__((always_inline)) header 459 #define INLINE(header) inline __attribute__((always_inline)) header
467 #endif 460 #endif
468 #else 461 #else
469 #define INLINE(header) inline header 462 #define INLINE(header) inline header
470 #endif 463 #endif
471 464
472 } } // namespace v8::internal 465 } } // namespace v8::internal
473 466
474 #endif // V8_GLOBALS_H_ 467 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/frames-arm.cc ('k') | src/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698