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

Side by Side Diff: src/v8globals.h

Issue 6460038: Version 3.1.3.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 10 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/uri.js ('k') | src/v8natives.js » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits; 62 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits;
63 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1; 63 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1;
64 64
65 // Tag information for Failure. 65 // Tag information for Failure.
66 const int kFailureTag = 3; 66 const int kFailureTag = 3;
67 const int kFailureTagSize = 2; 67 const int kFailureTagSize = 2;
68 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1; 68 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1;
69 69
70 70
71 // Zap-value: The value used for zapping dead objects. 71 // Zap-value: The value used for zapping dead objects.
72 // Should be a recognizable hex value tagged as a heap object pointer. 72 // Should be a recognizable hex value tagged as a failure.
73 #ifdef V8_HOST_ARCH_64_BIT 73 #ifdef V8_HOST_ARCH_64_BIT
74 const Address kZapValue = 74 const Address kZapValue =
75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); 75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef));
76 const Address kHandleZapValue = 76 const Address kHandleZapValue =
77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); 77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf));
78 const Address kFromSpaceZapValue = 78 const Address kFromSpaceZapValue =
79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); 79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf));
80 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb); 80 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb);
81 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeed); 81 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef);
82 #else 82 #else
83 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); 83 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef);
84 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); 84 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf);
85 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); 85 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf);
86 const uint32_t kSlotsZapValue = 0xbeefdeed; 86 const uint32_t kSlotsZapValue = 0xbeefdeef;
87 const uint32_t kDebugZapValue = 0xbadbaddb; 87 const uint32_t kDebugZapValue = 0xbadbaddb;
88 #endif 88 #endif
89 89
90 90
91 // Number of bits to represent the page size for paged spaces. The value of 13 91 // Number of bits to represent the page size for paged spaces. The value of 13
92 // gives 8K bytes per page. 92 // gives 8K bytes per page.
93 const int kPageSizeBits = 13; 93 const int kPageSizeBits = 13;
94 94
95 // On Intel architecture, cache line size is 64 bytes. 95 // On Intel architecture, cache line size is 64 bytes.
96 // On ARM it may be less (32 bytes), but as far this constant is 96 // On ARM it may be less (32 bytes), but as far this constant is
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 // The Strict Mode (ECMA-262 5th edition, 4.2.2). 472 // The Strict Mode (ECMA-262 5th edition, 4.2.2).
473 enum StrictModeFlag { 473 enum StrictModeFlag {
474 kNonStrictMode, 474 kNonStrictMode,
475 kStrictMode 475 kStrictMode
476 }; 476 };
477 477
478 } } // namespace v8::internal 478 } } // namespace v8::internal
479 479
480 #endif // V8_V8GLOBALS_H_ 480 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/uri.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698