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

Side by Side Diff: src/globals.h

Issue 3587002: Backport r5553 "Do not invoke indexed interceptor getters for negative indice... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.1/
Patch Set: Created 10 years, 2 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/arm/ic-arm.cc ('k') | src/ia32/ic-ia32.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const int kIntptrSize = sizeof(intptr_t); // NOLINT 139 const int kIntptrSize = sizeof(intptr_t); // NOLINT
140 140
141 #if V8_HOST_ARCH_64_BIT 141 #if V8_HOST_ARCH_64_BIT
142 const int kPointerSizeLog2 = 3; 142 const int kPointerSizeLog2 = 3;
143 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 143 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
144 #else 144 #else
145 const int kPointerSizeLog2 = 2; 145 const int kPointerSizeLog2 = 2;
146 const intptr_t kIntptrSignBit = 0x80000000; 146 const intptr_t kIntptrSignBit = 0x80000000;
147 #endif 147 #endif
148 148
149 // Mask for the sign bit in a smi.
150 const intptr_t kSmiSignMask = kIntptrSignBit;
151
149 const int kObjectAlignmentBits = kPointerSizeLog2; 152 const int kObjectAlignmentBits = kPointerSizeLog2;
150 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 153 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
151 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 154 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
152 155
153 // Desired alignment for pointers. 156 // Desired alignment for pointers.
154 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); 157 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2);
155 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; 158 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1;
156 159
157 // Desired alignment for maps. 160 // Desired alignment for maps.
158 #if V8_HOST_ARCH_64_BIT 161 #if V8_HOST_ARCH_64_BIT
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 CMOV = 15, // x86 601 CMOV = 15, // x86
599 RDTSC = 4, // x86 602 RDTSC = 4, // x86
600 CPUID = 10, // x86 603 CPUID = 10, // x86
601 VFP3 = 1, // ARM 604 VFP3 = 1, // ARM
602 ARMv7 = 2, // ARM 605 ARMv7 = 2, // ARM
603 SAHF = 0}; // x86 606 SAHF = 0}; // x86
604 607
605 } } // namespace v8::internal 608 } } // namespace v8::internal
606 609
607 #endif // V8_GLOBALS_H_ 610 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698