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 5078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5089 // |safe_to_add_transitions| is set to false if adding transitions is not | 5089 // |safe_to_add_transitions| is set to false if adding transitions is not |
5090 // allowed. | 5090 // allowed. |
5091 Map* LookupElementsTransitionMap(ElementsKind elements_kind); | 5091 Map* LookupElementsTransitionMap(ElementsKind elements_kind); |
5092 | 5092 |
5093 // Returns the transitioned map for this map with the most generic | 5093 // Returns the transitioned map for this map with the most generic |
5094 // elements_kind that's found in |candidates|, or null handle if no match is | 5094 // elements_kind that's found in |candidates|, or null handle if no match is |
5095 // found at all. | 5095 // found at all. |
5096 Handle<Map> FindTransitionedMap(MapHandleList* candidates); | 5096 Handle<Map> FindTransitionedMap(MapHandleList* candidates); |
5097 Map* FindTransitionedMap(MapList* candidates); | 5097 Map* FindTransitionedMap(MapList* candidates); |
5098 | 5098 |
5099 // Zaps the contents of backing data structures in debug mode. Note that the | 5099 // Zaps the contents of backing data structures. Note that the |
5100 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects | 5100 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects |
5101 // holding weak references when incremental marking is used, because it also | 5101 // holding weak references when incremental marking is used, because it also |
5102 // iterates over objects that are otherwise unreachable. | 5102 // iterates over objects that are otherwise unreachable. |
5103 #ifdef DEBUG | 5103 // In general we only want to call these functions in release mode when |
| 5104 // heap verification is turned on. |
5104 void ZapPrototypeTransitions(); | 5105 void ZapPrototypeTransitions(); |
5105 void ZapTransitions(); | 5106 void ZapTransitions(); |
5106 #endif | |
5107 | 5107 |
5108 // Dispatched behavior. | 5108 // Dispatched behavior. |
5109 #ifdef OBJECT_PRINT | 5109 #ifdef OBJECT_PRINT |
5110 inline void MapPrint() { | 5110 inline void MapPrint() { |
5111 MapPrint(stdout); | 5111 MapPrint(stdout); |
5112 } | 5112 } |
5113 void MapPrint(FILE* out); | 5113 void MapPrint(FILE* out); |
5114 #endif | 5114 #endif |
5115 #ifdef DEBUG | 5115 #ifdef DEBUG |
5116 void MapVerify(); | 5116 void MapVerify(); |
(...skipping 3921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9038 } else { | 9038 } else { |
9039 value &= ~(1 << bit_position); | 9039 value &= ~(1 << bit_position); |
9040 } | 9040 } |
9041 return value; | 9041 return value; |
9042 } | 9042 } |
9043 }; | 9043 }; |
9044 | 9044 |
9045 } } // namespace v8::internal | 9045 } } // namespace v8::internal |
9046 | 9046 |
9047 #endif // V8_OBJECTS_H_ | 9047 #endif // V8_OBJECTS_H_ |
OLD | NEW |