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

Side by Side Diff: include/v8.h

Issue 7094003: Per-Isolate cache for polymorphic stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address Mads' comments Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.h » ('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 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 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 static const int kHeapObjectMapOffset = 0; 3696 static const int kHeapObjectMapOffset = 0;
3697 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; 3697 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize;
3698 static const int kStringResourceOffset = 3698 static const int kStringResourceOffset =
3699 InternalConstants<kApiPointerSize>::kStringResourceOffset; 3699 InternalConstants<kApiPointerSize>::kStringResourceOffset;
3700 3700
3701 static const int kForeignAddressOffset = kApiPointerSize; 3701 static const int kForeignAddressOffset = kApiPointerSize;
3702 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; 3702 static const int kJSObjectHeaderSize = 3 * kApiPointerSize;
3703 static const int kFullStringRepresentationMask = 0x07; 3703 static const int kFullStringRepresentationMask = 0x07;
3704 static const int kExternalTwoByteRepresentationTag = 0x02; 3704 static const int kExternalTwoByteRepresentationTag = 0x02;
3705 3705
3706 static const int kJSObjectType = 0xa2; 3706 static const int kJSObjectType = 0xa3;
3707 static const int kFirstNonstringType = 0x80; 3707 static const int kFirstNonstringType = 0x80;
3708 static const int kForeignType = 0x85; 3708 static const int kForeignType = 0x85;
3709 3709
3710 static inline bool HasHeapObjectTag(internal::Object* value) { 3710 static inline bool HasHeapObjectTag(internal::Object* value) {
3711 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == 3711 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) ==
3712 kHeapObjectTag); 3712 kHeapObjectTag);
3713 } 3713 }
3714 3714
3715 static inline bool HasSmiTag(internal::Object* value) { 3715 static inline bool HasSmiTag(internal::Object* value) {
3716 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); 3716 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag);
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
4115 4115
4116 4116
4117 } // namespace v8 4117 } // namespace v8
4118 4118
4119 4119
4120 #undef V8EXPORT 4120 #undef V8EXPORT
4121 #undef TYPE_CHECK 4121 #undef TYPE_CHECK
4122 4122
4123 4123
4124 #endif // V8_H_ 4124 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698