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

Side by Side Diff: include/v8.h

Issue 2468001: Fix generated code for String.charCodeAt. (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « no previous file | src/arm/codegen-arm.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 3159 matching lines...) Expand 10 before | Expand all | Expand 10 after
3170 // These values match non-compiler-dependent values defined within 3170 // These values match non-compiler-dependent values defined within
3171 // the implementation of v8. 3171 // the implementation of v8.
3172 static const int kHeapObjectMapOffset = 0; 3172 static const int kHeapObjectMapOffset = 0;
3173 static const int kMapInstanceTypeOffset = sizeof(void*) + sizeof(int); 3173 static const int kMapInstanceTypeOffset = sizeof(void*) + sizeof(int);
3174 static const int kStringResourceOffset = 3174 static const int kStringResourceOffset =
3175 InternalConstants<sizeof(void*)>::kStringResourceOffset; 3175 InternalConstants<sizeof(void*)>::kStringResourceOffset;
3176 3176
3177 static const int kProxyProxyOffset = sizeof(void*); 3177 static const int kProxyProxyOffset = sizeof(void*);
3178 static const int kJSObjectHeaderSize = 3 * sizeof(void*); 3178 static const int kJSObjectHeaderSize = 3 * sizeof(void*);
3179 static const int kFullStringRepresentationMask = 0x07; 3179 static const int kFullStringRepresentationMask = 0x07;
3180 static const int kExternalTwoByteRepresentationTag = 0x03; 3180 static const int kExternalTwoByteRepresentationTag = 0x02;
3181 3181
3182 // These constants are compiler dependent so their values must be 3182 // These constants are compiler dependent so their values must be
3183 // defined within the implementation. 3183 // defined within the implementation.
3184 V8EXPORT static int kJSObjectType; 3184 V8EXPORT static int kJSObjectType;
3185 V8EXPORT static int kFirstNonstringType; 3185 V8EXPORT static int kFirstNonstringType;
3186 V8EXPORT static int kProxyType; 3186 V8EXPORT static int kProxyType;
3187 3187
3188 static inline bool HasHeapObjectTag(internal::Object* value) { 3188 static inline bool HasHeapObjectTag(internal::Object* value) {
3189 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == 3189 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) ==
3190 kHeapObjectTag); 3190 kHeapObjectTag);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 3548
3549 } // namespace v8 3549 } // namespace v8
3550 3550
3551 3551
3552 #undef V8EXPORT 3552 #undef V8EXPORT
3553 #undef V8EXPORT_INLINE 3553 #undef V8EXPORT_INLINE
3554 #undef TYPE_CHECK 3554 #undef TYPE_CHECK
3555 3555
3556 3556
3557 #endif // V8_H_ 3557 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698