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

Side by Side Diff: src/v8globals.h

Issue 6529032: Merge 6168:6800 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
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/v8-counters.h ('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 = 0xbadbaddbbadbaddb; 80 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb);
81 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef);
81 #else 82 #else
82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); 83 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef);
83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); 84 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf);
84 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); 85 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf);
85 const uint32_t kSlotsZapValue = 0xbeefdeed; 86 const uint32_t kSlotsZapValue = 0xbeefdeef;
86 const uint32_t kDebugZapValue = 0xbadbaddb; 87 const uint32_t kDebugZapValue = 0xbadbaddb;
87 #endif 88 #endif
88 89
89 90
90 // Number of bits to represent the page size for paged spaces. The value of 20 91 // Number of bits to represent the page size for paged spaces. The value of 20
91 // gives 1Mb bytes per page. 92 // gives 1Mb bytes per page.
92 const int kPageSizeBits = 20; 93 const int kPageSizeBits = 20;
93 94
94 // On Intel architecture, cache line size is 64 bytes. 95 // On Intel architecture, cache line size is 64 bytes.
95 // 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 enum CpuFeature { SSE4_1 = 32 + 19, // x86 462 enum CpuFeature { SSE4_1 = 32 + 19, // x86
462 SSE3 = 32 + 0, // x86 463 SSE3 = 32 + 0, // x86
463 SSE2 = 26, // x86 464 SSE2 = 26, // x86
464 CMOV = 15, // x86 465 CMOV = 15, // x86
465 RDTSC = 4, // x86 466 RDTSC = 4, // x86
466 CPUID = 10, // x86 467 CPUID = 10, // x86
467 VFP3 = 1, // ARM 468 VFP3 = 1, // ARM
468 ARMv7 = 2, // ARM 469 ARMv7 = 2, // ARM
469 SAHF = 0}; // x86 470 SAHF = 0}; // x86
470 471
472 // The Strict Mode (ECMA-262 5th edition, 4.2.2).
473 enum StrictModeFlag {
474 kNonStrictMode,
475 kStrictMode
476 };
477
471 } } // namespace v8::internal 478 } } // namespace v8::internal
472 479
473 #endif // V8_V8GLOBALS_H_ 480 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/v8-counters.h ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698