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

Side by Side Diff: src/v8globals.h

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/v8.cc ('k') | src/version.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 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 30 matching lines...) Expand all
41 const intptr_t kSmiSignMask = kIntptrSignBit; 41 const intptr_t kSmiSignMask = kIntptrSignBit;
42 42
43 const int kObjectAlignmentBits = kPointerSizeLog2; 43 const int kObjectAlignmentBits = kPointerSizeLog2;
44 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 44 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
45 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 45 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
46 46
47 // Desired alignment for pointers. 47 // Desired alignment for pointers.
48 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); 48 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2);
49 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; 49 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1;
50 50
51 // Desired alignment for double values.
52 const intptr_t kDoubleAlignment = 8;
53 const intptr_t kDoubleAlignmentMask = kDoubleAlignment - 1;
54
51 // Desired alignment for maps. 55 // Desired alignment for maps.
52 #if V8_HOST_ARCH_64_BIT 56 #if V8_HOST_ARCH_64_BIT
53 const intptr_t kMapAlignmentBits = kObjectAlignmentBits; 57 const intptr_t kMapAlignmentBits = kObjectAlignmentBits;
54 #else 58 #else
55 const intptr_t kMapAlignmentBits = kObjectAlignmentBits + 3; 59 const intptr_t kMapAlignmentBits = kObjectAlignmentBits + 3;
56 #endif 60 #endif
57 const intptr_t kMapAlignment = (1 << kMapAlignmentBits); 61 const intptr_t kMapAlignment = (1 << kMapAlignmentBits);
58 const intptr_t kMapAlignmentMask = kMapAlignment - 1; 62 const intptr_t kMapAlignmentMask = kMapAlignment - 1;
59 63
60 // Desired alignment for generated code is 32 bytes (to improve cache line 64 // Desired alignment for generated code is 32 bytes (to improve cache line
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 553
550 enum ClearExceptionFlag { 554 enum ClearExceptionFlag {
551 KEEP_EXCEPTION, 555 KEEP_EXCEPTION,
552 CLEAR_EXCEPTION 556 CLEAR_EXCEPTION
553 }; 557 };
554 558
555 559
556 } } // namespace v8::internal 560 } } // namespace v8::internal
557 561
558 #endif // V8_V8GLOBALS_H_ 562 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698