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 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2583 int number_of_fast_unused_fields_; | 2583 int number_of_fast_unused_fields_; |
2584 int number_of_slow_used_properties_; | 2584 int number_of_slow_used_properties_; |
2585 int number_of_slow_unused_properties_; | 2585 int number_of_slow_unused_properties_; |
2586 int number_of_fast_used_elements_; | 2586 int number_of_fast_used_elements_; |
2587 int number_of_fast_unused_elements_; | 2587 int number_of_fast_unused_elements_; |
2588 int number_of_slow_used_elements_; | 2588 int number_of_slow_used_elements_; |
2589 int number_of_slow_unused_elements_; | 2589 int number_of_slow_unused_elements_; |
2590 }; | 2590 }; |
2591 | 2591 |
2592 void IncrementSpillStatistics(SpillInformation* info); | 2592 void IncrementSpillStatistics(SpillInformation* info); |
| 2593 |
| 2594 // If a GC was caused while constructing this object, the elements pointer |
| 2595 // may point to a one pointer filler map. The object won't be rooted, but |
| 2596 // our heap verification code could stumble across it. |
| 2597 bool ElementsAreSafeToExamine(); |
2593 #endif | 2598 #endif |
2594 Object* SlowReverseLookup(Object* value); | 2599 Object* SlowReverseLookup(Object* value); |
2595 | 2600 |
2596 // Maximal number of fast properties for the JSObject. Used to | 2601 // Maximal number of fast properties for the JSObject. Used to |
2597 // restrict the number of map transitions to avoid an explosion in | 2602 // restrict the number of map transitions to avoid an explosion in |
2598 // the number of maps for objects used as dictionaries. | 2603 // the number of maps for objects used as dictionaries. |
2599 inline bool TooManyFastProperties( | 2604 inline bool TooManyFastProperties( |
2600 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); | 2605 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); |
2601 | 2606 |
2602 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). | 2607 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). |
(...skipping 7824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10427 } else { | 10432 } else { |
10428 value &= ~(1 << bit_position); | 10433 value &= ~(1 << bit_position); |
10429 } | 10434 } |
10430 return value; | 10435 return value; |
10431 } | 10436 } |
10432 }; | 10437 }; |
10433 | 10438 |
10434 } } // namespace v8::internal | 10439 } } // namespace v8::internal |
10435 | 10440 |
10436 #endif // V8_OBJECTS_H_ | 10441 #endif // V8_OBJECTS_H_ |
OLD | NEW |