OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 void MarkCompactPrologue(); | 1678 void MarkCompactPrologue(); |
1679 | 1679 |
1680 // Record statistics before and after garbage collection. | 1680 // Record statistics before and after garbage collection. |
1681 void ReportStatisticsBeforeGC(); | 1681 void ReportStatisticsBeforeGC(); |
1682 void ReportStatisticsAfterGC(); | 1682 void ReportStatisticsAfterGC(); |
1683 | 1683 |
1684 // Slow part of scavenge object. | 1684 // Slow part of scavenge object. |
1685 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object); | 1685 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object); |
1686 | 1686 |
1687 // Initializes a function with a shared part and prototype. | 1687 // Initializes a function with a shared part and prototype. |
1688 // Returns the function. | |
1689 // Note: this code was factored out of AllocateFunction such that | 1688 // Note: this code was factored out of AllocateFunction such that |
1690 // other parts of the VM could use it. Specifically, a function that creates | 1689 // other parts of the VM could use it. Specifically, a function that creates |
1691 // instances of type JS_FUNCTION_TYPE benefit from the use of this function. | 1690 // instances of type JS_FUNCTION_TYPE benefit from the use of this function. |
1692 // Please note this does not perform a garbage collection. | 1691 // Please note this does not perform a garbage collection. |
1693 MUST_USE_RESULT inline MaybeObject* InitializeFunction( | 1692 inline void InitializeFunction( |
1694 JSFunction* function, | 1693 JSFunction* function, |
1695 SharedFunctionInfo* shared, | 1694 SharedFunctionInfo* shared, |
1696 Object* prototype); | 1695 Object* prototype); |
1697 | 1696 |
1698 // Total RegExp code ever generated | 1697 // Total RegExp code ever generated |
1699 double total_regexp_code_generated_; | 1698 double total_regexp_code_generated_; |
1700 | 1699 |
1701 GCTracer* tracer_; | 1700 GCTracer* tracer_; |
1702 | 1701 |
1703 | 1702 |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2484 | 2483 |
2485 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2484 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2486 }; | 2485 }; |
2487 #endif // DEBUG || LIVE_OBJECT_LIST | 2486 #endif // DEBUG || LIVE_OBJECT_LIST |
2488 | 2487 |
2489 } } // namespace v8::internal | 2488 } } // namespace v8::internal |
2490 | 2489 |
2491 #undef HEAP | 2490 #undef HEAP |
2492 | 2491 |
2493 #endif // V8_HEAP_H_ | 2492 #endif // V8_HEAP_H_ |
OLD | NEW |