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

Side by Side Diff: include/v8.h

Issue 6368051: A MessageObject is a purely internal object to hold information about (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments 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 | « no previous file | src/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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-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 3430 matching lines...) Expand 10 before | Expand all | Expand 10 after
3441 static const int kHeapObjectMapOffset = 0; 3441 static const int kHeapObjectMapOffset = 0;
3442 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize; 3442 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize;
3443 static const int kStringResourceOffset = 3443 static const int kStringResourceOffset =
3444 InternalConstants<kApiPointerSize>::kStringResourceOffset; 3444 InternalConstants<kApiPointerSize>::kStringResourceOffset;
3445 3445
3446 static const int kProxyProxyOffset = kApiPointerSize; 3446 static const int kProxyProxyOffset = kApiPointerSize;
3447 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; 3447 static const int kJSObjectHeaderSize = 3 * kApiPointerSize;
3448 static const int kFullStringRepresentationMask = 0x07; 3448 static const int kFullStringRepresentationMask = 0x07;
3449 static const int kExternalTwoByteRepresentationTag = 0x02; 3449 static const int kExternalTwoByteRepresentationTag = 0x02;
3450 3450
3451 static const int kJSObjectType = 0x9f; 3451 static const int kJSObjectType = 0xa0;
3452 static const int kFirstNonstringType = 0x80; 3452 static const int kFirstNonstringType = 0x80;
3453 static const int kProxyType = 0x85; 3453 static const int kProxyType = 0x85;
3454 3454
3455 static inline bool HasHeapObjectTag(internal::Object* value) { 3455 static inline bool HasHeapObjectTag(internal::Object* value) {
3456 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == 3456 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) ==
3457 kHeapObjectTag); 3457 kHeapObjectTag);
3458 } 3458 }
3459 3459
3460 static inline bool HasSmiTag(internal::Object* value) { 3460 static inline bool HasSmiTag(internal::Object* value) {
3461 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); 3461 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3838 3838
3839 3839
3840 } // namespace v8 3840 } // namespace v8
3841 3841
3842 3842
3843 #undef V8EXPORT 3843 #undef V8EXPORT
3844 #undef TYPE_CHECK 3844 #undef TYPE_CHECK
3845 3845
3846 3846
3847 #endif // V8_H_ 3847 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698