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

Side by Side Diff: src/globals.h

Issue 649563006: Introduce phantom weak handles in the API and use them internally for debug info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 1 month 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/global-handles.cc ('k') | test/cctest/test-api.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); 285 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef);
286 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); 286 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf);
287 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); 287 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf);
288 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); 288 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf);
289 const uint32_t kSlotsZapValue = 0xbeefdeef; 289 const uint32_t kSlotsZapValue = 0xbeefdeef;
290 const uint32_t kDebugZapValue = 0xbadbaddb; 290 const uint32_t kDebugZapValue = 0xbadbaddb;
291 const uint32_t kFreeListZapValue = 0xfeed1eaf; 291 const uint32_t kFreeListZapValue = 0xfeed1eaf;
292 #endif 292 #endif
293 293
294 const int kCodeZapValue = 0xbadc0de; 294 const int kCodeZapValue = 0xbadc0de;
295 const uint32_t kPhantomReferenceZap = 0xca11bac;
295 296
296 // On Intel architecture, cache line size is 64 bytes. 297 // On Intel architecture, cache line size is 64 bytes.
297 // On ARM it may be less (32 bytes), but as far this constant is 298 // On ARM it may be less (32 bytes), but as far this constant is
298 // used for aligning data, it doesn't hurt to align on a greater value. 299 // used for aligning data, it doesn't hurt to align on a greater value.
299 #define PROCESSOR_CACHE_LINE_SIZE 64 300 #define PROCESSOR_CACHE_LINE_SIZE 64
300 301
301 // Constants relevant to double precision floating point numbers. 302 // Constants relevant to double precision floating point numbers.
302 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. 303 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30.
303 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); 304 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32);
304 305
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 806
806 inline bool IsConciseMethod(FunctionKind kind) { 807 inline bool IsConciseMethod(FunctionKind kind) {
807 DCHECK(IsValidFunctionKind(kind)); 808 DCHECK(IsValidFunctionKind(kind));
808 return kind & FunctionKind::kConciseMethod; 809 return kind & FunctionKind::kConciseMethod;
809 } 810 }
810 } } // namespace v8::internal 811 } } // namespace v8::internal
811 812
812 namespace i = v8::internal; 813 namespace i = v8::internal;
813 814
814 #endif // V8_GLOBALS_H_ 815 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698