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

Side by Side Diff: src/objects.h

Issue 3117006: Handle overwriting valueOf on String objects correctly when adding... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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 | « src/ia32/macro-assembler-ia32.cc ('k') | src/runtime.js » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 3136 matching lines...) Expand 10 before | Expand all | Expand 10 after
3147 static const int kHasNamedInterceptor = 3; 3147 static const int kHasNamedInterceptor = 3;
3148 static const int kHasIndexedInterceptor = 4; 3148 static const int kHasIndexedInterceptor = 4;
3149 static const int kIsUndetectable = 5; 3149 static const int kIsUndetectable = 5;
3150 static const int kHasInstanceCallHandler = 6; 3150 static const int kHasInstanceCallHandler = 6;
3151 static const int kIsAccessCheckNeeded = 7; 3151 static const int kIsAccessCheckNeeded = 7;
3152 3152
3153 // Bit positions for bit field 2 3153 // Bit positions for bit field 2
3154 static const int kIsExtensible = 0; 3154 static const int kIsExtensible = 0;
3155 static const int kFunctionWithPrototype = 1; 3155 static const int kFunctionWithPrototype = 1;
3156 static const int kHasFastElements = 2; 3156 static const int kHasFastElements = 2;
3157 static const int kStringWrapperSafeForDefaultValueOf = 3;
3157 3158
3158 // Layout of the default cache. It holds alternating name and code objects. 3159 // Layout of the default cache. It holds alternating name and code objects.
3159 static const int kCodeCacheEntrySize = 2; 3160 static const int kCodeCacheEntrySize = 2;
3160 static const int kCodeCacheEntryNameOffset = 0; 3161 static const int kCodeCacheEntryNameOffset = 0;
3161 static const int kCodeCacheEntryCodeOffset = 1; 3162 static const int kCodeCacheEntryCodeOffset = 1;
3162 3163
3163 private: 3164 private:
3164 DISALLOW_IMPLICIT_CONSTRUCTORS(Map); 3165 DISALLOW_IMPLICIT_CONSTRUCTORS(Map);
3165 }; 3166 };
3166 3167
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
5365 } else { 5366 } else {
5366 value &= ~(1 << bit_position); 5367 value &= ~(1 << bit_position);
5367 } 5368 }
5368 return value; 5369 return value;
5369 } 5370 }
5370 }; 5371 };
5371 5372
5372 } } // namespace v8::internal 5373 } } // namespace v8::internal
5373 5374
5374 #endif // V8_OBJECTS_H_ 5375 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698