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

Side by Side Diff: src/objects-inl.h

Issue 24566005: Internalize names before using them in slow-mode objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5903 matching lines...) Expand 10 before | Expand all | Expand 10 after
5914 return key->Hash(); 5914 return key->Hash();
5915 } 5915 }
5916 5916
5917 5917
5918 uint32_t NameDictionaryShape::HashForObject(Name* key, Object* other) { 5918 uint32_t NameDictionaryShape::HashForObject(Name* key, Object* other) {
5919 return Name::cast(other)->Hash(); 5919 return Name::cast(other)->Hash();
5920 } 5920 }
5921 5921
5922 5922
5923 MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Name* key) { 5923 MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Name* key) {
5924 ASSERT(key->IsUniqueName());
5924 return key; 5925 return key;
5925 } 5926 }
5926 5927
5927 5928
5928 template <int entrysize> 5929 template <int entrysize>
5929 bool ObjectHashTableShape<entrysize>::IsMatch(Object* key, Object* other) { 5930 bool ObjectHashTableShape<entrysize>::IsMatch(Object* key, Object* other) {
5930 return key->SameValue(other); 5931 return key->SameValue(other);
5931 } 5932 }
5932 5933
5933 5934
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
6250 #undef WRITE_UINT32_FIELD 6251 #undef WRITE_UINT32_FIELD
6251 #undef READ_SHORT_FIELD 6252 #undef READ_SHORT_FIELD
6252 #undef WRITE_SHORT_FIELD 6253 #undef WRITE_SHORT_FIELD
6253 #undef READ_BYTE_FIELD 6254 #undef READ_BYTE_FIELD
6254 #undef WRITE_BYTE_FIELD 6255 #undef WRITE_BYTE_FIELD
6255 6256
6256 6257
6257 } } // namespace v8::internal 6258 } } // namespace v8::internal
6258 6259
6259 #endif // V8_OBJECTS_INL_H_ 6260 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698