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 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 int number_of_fast_unused_fields_; | 2588 int number_of_fast_unused_fields_; |
2589 int number_of_slow_used_properties_; | 2589 int number_of_slow_used_properties_; |
2590 int number_of_slow_unused_properties_; | 2590 int number_of_slow_unused_properties_; |
2591 int number_of_fast_used_elements_; | 2591 int number_of_fast_used_elements_; |
2592 int number_of_fast_unused_elements_; | 2592 int number_of_fast_unused_elements_; |
2593 int number_of_slow_used_elements_; | 2593 int number_of_slow_used_elements_; |
2594 int number_of_slow_unused_elements_; | 2594 int number_of_slow_unused_elements_; |
2595 }; | 2595 }; |
2596 | 2596 |
2597 void IncrementSpillStatistics(SpillInformation* info); | 2597 void IncrementSpillStatistics(SpillInformation* info); |
| 2598 #endif |
2598 | 2599 |
| 2600 #ifdef VERIFY_HEAP |
2599 // If a GC was caused while constructing this object, the elements pointer | 2601 // If a GC was caused while constructing this object, the elements pointer |
2600 // may point to a one pointer filler map. The object won't be rooted, but | 2602 // may point to a one pointer filler map. The object won't be rooted, but |
2601 // our heap verification code could stumble across it. | 2603 // our heap verification code could stumble across it. |
2602 bool ElementsAreSafeToExamine(); | 2604 bool ElementsAreSafeToExamine(); |
2603 #endif | 2605 #endif |
| 2606 |
2604 Object* SlowReverseLookup(Object* value); | 2607 Object* SlowReverseLookup(Object* value); |
2605 | 2608 |
2606 // Maximal number of fast properties for the JSObject. Used to | 2609 // Maximal number of fast properties for the JSObject. Used to |
2607 // restrict the number of map transitions to avoid an explosion in | 2610 // restrict the number of map transitions to avoid an explosion in |
2608 // the number of maps for objects used as dictionaries. | 2611 // the number of maps for objects used as dictionaries. |
2609 inline bool TooManyFastProperties( | 2612 inline bool TooManyFastProperties( |
2610 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); | 2613 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); |
2611 | 2614 |
2612 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). | 2615 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). |
2613 // Also maximal value of JSArray's length property. | 2616 // Also maximal value of JSArray's length property. |
(...skipping 7823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10437 } else { | 10440 } else { |
10438 value &= ~(1 << bit_position); | 10441 value &= ~(1 << bit_position); |
10439 } | 10442 } |
10440 return value; | 10443 return value; |
10441 } | 10444 } |
10442 }; | 10445 }; |
10443 | 10446 |
10444 } } // namespace v8::internal | 10447 } } // namespace v8::internal |
10445 | 10448 |
10446 #endif // V8_OBJECTS_H_ | 10449 #endif // V8_OBJECTS_H_ |
OLD | NEW |