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

Side by Side Diff: src/globals.h

Issue 115860: Change RelocInfo to write 64-bit data field on x64 architecture. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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/assembler.cc ('k') | test/cctest/test-utils.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Constants 104 // Constants
105 105
106 const int KB = 1024; 106 const int KB = 1024;
107 const int MB = KB * KB; 107 const int MB = KB * KB;
108 const int GB = KB * KB * KB; 108 const int GB = KB * KB * KB;
109 const int kMaxInt = 0x7FFFFFFF; 109 const int kMaxInt = 0x7FFFFFFF;
110 const int kMinInt = -kMaxInt - 1; 110 const int kMinInt = -kMaxInt - 1;
111 111
112 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; 112 const uint32_t kMaxUInt32 = 0xFFFFFFFFu;
113 113
114 const int kCharSize = sizeof(char); // NOLINT 114 const int kCharSize = sizeof(char); // NOLINT
115 const int kShortSize = sizeof(short); // NOLINT 115 const int kShortSize = sizeof(short); // NOLINT
116 const int kIntSize = sizeof(int); // NOLINT 116 const int kIntSize = sizeof(int); // NOLINT
117 const int kDoubleSize = sizeof(double); // NOLINT 117 const int kDoubleSize = sizeof(double); // NOLINT
118 const int kPointerSize = sizeof(void*); // NOLINT 118 const int kPointerSize = sizeof(void*); // NOLINT
119 const int kIntptrSize = sizeof(intptr_t); // NOLINT
119 120
120 #if V8_HOST_ARCH_64_BIT 121 #if V8_HOST_ARCH_64_BIT
121 const int kPointerSizeLog2 = 3; 122 const int kPointerSizeLog2 = 3;
122 #else 123 #else
123 const int kPointerSizeLog2 = 2; 124 const int kPointerSizeLog2 = 2;
124 #endif 125 #endif
125 126
126 const int kObjectAlignmentBits = kPointerSizeLog2; 127 const int kObjectAlignmentBits = kPointerSizeLog2;
127 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 128 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
128 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 129 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 555
555 Dest dest; 556 Dest dest;
556 memcpy(&dest, &source, sizeof(dest)); 557 memcpy(&dest, &source, sizeof(dest));
557 return dest; 558 return dest;
558 } 559 }
559 560
560 561
561 } } // namespace v8::internal 562 } } // namespace v8::internal
562 563
563 #endif // V8_GLOBALS_H_ 564 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | test/cctest/test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698