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

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

Issue 249883003: Dictionary::AtPut() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 6654 matching lines...) Expand 10 before | Expand all | Expand 10 after
6665 return Name::cast(other)->Hash(); 6665 return Name::cast(other)->Hash();
6666 } 6666 }
6667 6667
6668 6668
6669 MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Name* key) { 6669 MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Name* key) {
6670 ASSERT(key->IsUniqueName()); 6670 ASSERT(key->IsUniqueName());
6671 return key; 6671 return key;
6672 } 6672 }
6673 6673
6674 6674
6675 Handle<Object> NameDictionaryShape::AsHandle(Isolate* isolate, Name* key) {
6676 ASSERT(key->IsUniqueName());
6677 // TODO(ishell): Convert Name* to Handle<Name> to avoid re-wrapping here.
6678 return handle(key, isolate);
6679 }
6680
6681
6675 bool ObjectHashTableShape::IsMatch(Object* key, Object* other) { 6682 bool ObjectHashTableShape::IsMatch(Object* key, Object* other) {
6676 return key->SameValue(other); 6683 return key->SameValue(other);
6677 } 6684 }
6678 6685
6679 6686
6680 uint32_t ObjectHashTableShape::Hash(Object* key) { 6687 uint32_t ObjectHashTableShape::Hash(Object* key) {
6681 return Smi::cast(key->GetHash())->value(); 6688 return Smi::cast(key->GetHash())->value();
6682 } 6689 }
6683 6690
6684 6691
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
7014 #undef READ_SHORT_FIELD 7021 #undef READ_SHORT_FIELD
7015 #undef WRITE_SHORT_FIELD 7022 #undef WRITE_SHORT_FIELD
7016 #undef READ_BYTE_FIELD 7023 #undef READ_BYTE_FIELD
7017 #undef WRITE_BYTE_FIELD 7024 #undef WRITE_BYTE_FIELD
7018 #undef NOBARRIER_READ_BYTE_FIELD 7025 #undef NOBARRIER_READ_BYTE_FIELD
7019 #undef NOBARRIER_WRITE_BYTE_FIELD 7026 #undef NOBARRIER_WRITE_BYTE_FIELD
7020 7027
7021 } } // namespace v8::internal 7028 } } // namespace v8::internal
7022 7029
7023 #endif // V8_OBJECTS_INL_H_ 7030 #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