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

Side by Side Diff: include/v8.h

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Typos. Created 8 years, 9 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/SConscript » ('j') | src/date.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3853 matching lines...) Expand 10 before | Expand all | Expand 10 after
3864 static const int kHeapObjectMapOffset = 0; 3864 static const int kHeapObjectMapOffset = 0;
3865 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; 3865 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize;
3866 static const int kStringResourceOffset = 3866 static const int kStringResourceOffset =
3867 InternalConstants<kApiPointerSize>::kStringResourceOffset; 3867 InternalConstants<kApiPointerSize>::kStringResourceOffset;
3868 3868
3869 static const int kForeignAddressOffset = kApiPointerSize; 3869 static const int kForeignAddressOffset = kApiPointerSize;
3870 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; 3870 static const int kJSObjectHeaderSize = 3 * kApiPointerSize;
3871 static const int kFullStringRepresentationMask = 0x07; 3871 static const int kFullStringRepresentationMask = 0x07;
3872 static const int kExternalTwoByteRepresentationTag = 0x02; 3872 static const int kExternalTwoByteRepresentationTag = 0x02;
3873 3873
3874 static const int kJSObjectType = 0xa9; 3874 static const int kJSObjectType = 0xaa;
3875 static const int kFirstNonstringType = 0x80; 3875 static const int kFirstNonstringType = 0x80;
3876 static const int kForeignType = 0x85; 3876 static const int kForeignType = 0x85;
3877 3877
3878 static inline bool HasHeapObjectTag(internal::Object* value) { 3878 static inline bool HasHeapObjectTag(internal::Object* value) {
3879 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == 3879 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) ==
3880 kHeapObjectTag); 3880 kHeapObjectTag);
3881 } 3881 }
3882 3882
3883 static inline bool HasSmiTag(internal::Object* value) { 3883 static inline bool HasSmiTag(internal::Object* value) {
3884 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); 3884 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag);
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
4303 4303
4304 4304
4305 } // namespace v8 4305 } // namespace v8
4306 4306
4307 4307
4308 #undef V8EXPORT 4308 #undef V8EXPORT
4309 #undef TYPE_CHECK 4309 #undef TYPE_CHECK
4310 4310
4311 4311
4312 #endif // V8_H_ 4312 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/SConscript » ('j') | src/date.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698