OLD | NEW |
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 5983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5994 // map with DICTIONARY_ELEMENTS was found in the prototype chain. | 5994 // map with DICTIONARY_ELEMENTS was found in the prototype chain. |
5995 bool DictionaryElementsInPrototypeChainOnly(); | 5995 bool DictionaryElementsInPrototypeChainOnly(); |
5996 | 5996 |
5997 inline bool HasTransitionArray(); | 5997 inline bool HasTransitionArray(); |
5998 inline bool HasElementsTransition(); | 5998 inline bool HasElementsTransition(); |
5999 inline Map* elements_transition_map(); | 5999 inline Map* elements_transition_map(); |
6000 MUST_USE_RESULT inline MaybeObject* set_elements_transition_map( | 6000 MUST_USE_RESULT inline MaybeObject* set_elements_transition_map( |
6001 Map* transitioned_map); | 6001 Map* transitioned_map); |
6002 inline void SetTransition(int transition_index, Map* target); | 6002 inline void SetTransition(int transition_index, Map* target); |
6003 inline Map* GetTransition(int transition_index); | 6003 inline Map* GetTransition(int transition_index); |
| 6004 inline int SearchTransition(Name* name); |
6004 | 6005 |
6005 static Handle<TransitionArray> AddTransition(Handle<Map> map, | 6006 static Handle<TransitionArray> AddTransition(Handle<Map> map, |
6006 Handle<Name> key, | 6007 Handle<Name> key, |
6007 Handle<Map> target, | 6008 Handle<Map> target, |
6008 SimpleTransitionFlag flag); | 6009 SimpleTransitionFlag flag); |
6009 | 6010 |
6010 MUST_USE_RESULT inline MaybeObject* AddTransition(Name* key, | 6011 MUST_USE_RESULT inline MaybeObject* AddTransition(Name* key, |
6011 Map* target, | 6012 Map* target, |
6012 SimpleTransitionFlag flag); | 6013 SimpleTransitionFlag flag); |
6013 DECL_ACCESSORS(transitions, TransitionArray) | 6014 DECL_ACCESSORS(transitions, TransitionArray) |
(...skipping 4807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10821 } else { | 10822 } else { |
10822 value &= ~(1 << bit_position); | 10823 value &= ~(1 << bit_position); |
10823 } | 10824 } |
10824 return value; | 10825 return value; |
10825 } | 10826 } |
10826 }; | 10827 }; |
10827 | 10828 |
10828 } } // namespace v8::internal | 10829 } } // namespace v8::internal |
10829 | 10830 |
10830 #endif // V8_OBJECTS_H_ | 10831 #endif // V8_OBJECTS_H_ |
OLD | NEW |