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

Side by Side Diff: src/objects.h

Issue 170343003: Directly store the transition target on LookupResult in TransitionResult. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/ic.cc ('k') | src/objects-inl.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 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 6065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6076 // with the given holder if the name is found. The holder may be 6076 // with the given holder if the name is found. The holder may be
6077 // NULL when this function is used from the compiler. 6077 // NULL when this function is used from the compiler.
6078 inline void LookupDescriptor(JSObject* holder, 6078 inline void LookupDescriptor(JSObject* holder,
6079 Name* name, 6079 Name* name,
6080 LookupResult* result); 6080 LookupResult* result);
6081 6081
6082 inline void LookupTransition(JSObject* holder, 6082 inline void LookupTransition(JSObject* holder,
6083 Name* name, 6083 Name* name,
6084 LookupResult* result); 6084 LookupResult* result);
6085 6085
6086 inline PropertyDetails GetLastDescriptorDetails();
6087
6086 // The size of transition arrays are limited so they do not end up in large 6088 // The size of transition arrays are limited so they do not end up in large
6087 // object space. Otherwise ClearNonLiveTransitions would leak memory while 6089 // object space. Otherwise ClearNonLiveTransitions would leak memory while
6088 // applying in-place right trimming. 6090 // applying in-place right trimming.
6089 inline bool CanHaveMoreTransitions(); 6091 inline bool CanHaveMoreTransitions();
6090 6092
6091 int LastAdded() { 6093 int LastAdded() {
6092 int number_of_own_descriptors = NumberOfOwnDescriptors(); 6094 int number_of_own_descriptors = NumberOfOwnDescriptors();
6093 ASSERT(number_of_own_descriptors > 0); 6095 ASSERT(number_of_own_descriptors > 0);
6094 return number_of_own_descriptors - 1; 6096 return number_of_own_descriptors - 1;
6095 } 6097 }
(...skipping 4662 matching lines...) Expand 10 before | Expand all | Expand 10 after
10758 } else { 10760 } else {
10759 value &= ~(1 << bit_position); 10761 value &= ~(1 << bit_position);
10760 } 10762 }
10761 return value; 10763 return value;
10762 } 10764 }
10763 }; 10765 };
10764 10766
10765 } } // namespace v8::internal 10767 } } // namespace v8::internal
10766 10768
10767 #endif // V8_OBJECTS_H_ 10769 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698