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 1582041: Reapply: Inline fast cases in string keyed load IC. (Closed)
Patch Set: . Created 10 years, 8 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
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | src/ia32/ic-ia32.cc » ('J')
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 const int kIntptrSize = sizeof(intptr_t); // NOLINT 140 const int kIntptrSize = sizeof(intptr_t); // NOLINT
141 141
142 #if V8_HOST_ARCH_64_BIT 142 #if V8_HOST_ARCH_64_BIT
143 const int kPointerSizeLog2 = 3; 143 const int kPointerSizeLog2 = 3;
144 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 144 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
145 #else 145 #else
146 const int kPointerSizeLog2 = 2; 146 const int kPointerSizeLog2 = 2;
147 const intptr_t kIntptrSignBit = 0x80000000; 147 const intptr_t kIntptrSignBit = 0x80000000;
148 #endif 148 #endif
149 149
150 // Mask for the sign bit in a smi.
151 const intptr_t kSmiSignMask = kIntptrSignBit;
152
150 const int kObjectAlignmentBits = kPointerSizeLog2; 153 const int kObjectAlignmentBits = kPointerSizeLog2;
151 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 154 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
152 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 155 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
153 156
154 // Desired alignment for pointers. 157 // Desired alignment for pointers.
155 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); 158 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2);
156 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; 159 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1;
157 160
158 // Desired alignment for maps. 161 // Desired alignment for maps.
159 #if V8_HOST_ARCH_64_BIT 162 #if V8_HOST_ARCH_64_BIT
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 CMOV = 15, // x86 606 CMOV = 15, // x86
604 RDTSC = 4, // x86 607 RDTSC = 4, // x86
605 CPUID = 10, // x86 608 CPUID = 10, // x86
606 VFP3 = 1, // ARM 609 VFP3 = 1, // ARM
607 ARMv7 = 2, // ARM 610 ARMv7 = 2, // ARM
608 SAHF = 0}; // x86 611 SAHF = 0}; // x86
609 612
610 } } // namespace v8::internal 613 } } // namespace v8::internal
611 614
612 #endif // V8_GLOBALS_H_ 615 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | src/ia32/ic-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698