OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3530 // size). | 3530 // size). |
3531 // | 3531 // |
3532 // - A different constructor function sharing the same SharedFunctionInfo is | 3532 // - A different constructor function sharing the same SharedFunctionInfo is |
3533 // called in the same context. This could be another closure in the same | 3533 // called in the same context. This could be another closure in the same |
3534 // context, or the first function could have been disposed. | 3534 // context, or the first function could have been disposed. |
3535 // This is handled the same way as the previous case. | 3535 // This is handled the same way as the previous case. |
3536 // | 3536 // |
3537 // Important: inobject slack tracking is not attempted during the snapshot | 3537 // Important: inobject slack tracking is not attempted during the snapshot |
3538 // creation. | 3538 // creation. |
3539 | 3539 |
3540 static const int kGenerousAllocationCount = 16; | 3540 static const int kGenerousAllocationCount = 8; |
3541 | 3541 |
3542 // [construction_count]: Counter for constructor calls made during | 3542 // [construction_count]: Counter for constructor calls made during |
3543 // the tracking phase. | 3543 // the tracking phase. |
3544 inline int construction_count(); | 3544 inline int construction_count(); |
3545 inline void set_construction_count(int value); | 3545 inline void set_construction_count(int value); |
3546 | 3546 |
3547 // [initial_map]: initial map of the first function called as a constructor. | 3547 // [initial_map]: initial map of the first function called as a constructor. |
3548 // Saved for the duration of the tracking phase. | 3548 // Saved for the duration of the tracking phase. |
3549 // This is a weak link (GC resets it to undefined_value if no other live | 3549 // This is a weak link (GC resets it to undefined_value if no other live |
3550 // object reference this map). | 3550 // object reference this map). |
(...skipping 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5719 } else { | 5719 } else { |
5720 value &= ~(1 << bit_position); | 5720 value &= ~(1 << bit_position); |
5721 } | 5721 } |
5722 return value; | 5722 return value; |
5723 } | 5723 } |
5724 }; | 5724 }; |
5725 | 5725 |
5726 } } // namespace v8::internal | 5726 } } // namespace v8::internal |
5727 | 5727 |
5728 #endif // V8_OBJECTS_H_ | 5728 #endif // V8_OBJECTS_H_ |
OLD | NEW |