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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
554 return cell_space(); | 554 return cell_space(); |
555 case CODE_SPACE: | 555 case CODE_SPACE: |
556 return code_space(); | 556 return code_space(); |
557 case NEW_SPACE: | 557 case NEW_SPACE: |
558 case LO_SPACE: | 558 case LO_SPACE: |
559 UNREACHABLE(); | 559 UNREACHABLE(); |
560 } | 560 } |
561 return NULL; | 561 return NULL; |
562 } | 562 } |
563 | 563 |
564 void AddMarkingTime(double marking_time) { | |
Michael Starzinger
2013/01/28 13:55:39
Drop these callbacks.
Hannes Payer (out of office)
2013/01/29 12:01:54
As discussed offline, I will mark them TODO remove
| |
565 marking_time_ += marking_time; | |
566 } | |
567 | |
568 double marking_time() const { | |
569 return marking_time_; | |
570 } | |
571 | |
572 void AddSweepingTime(double sweeping_time) { | |
573 sweeping_time_ += sweeping_time; | |
574 } | |
575 | |
576 double sweeping_time() const { | |
577 return sweeping_time_; | |
578 } | |
579 | |
564 bool always_allocate() { return always_allocate_scope_depth_ != 0; } | 580 bool always_allocate() { return always_allocate_scope_depth_ != 0; } |
565 Address always_allocate_scope_depth_address() { | 581 Address always_allocate_scope_depth_address() { |
566 return reinterpret_cast<Address>(&always_allocate_scope_depth_); | 582 return reinterpret_cast<Address>(&always_allocate_scope_depth_); |
567 } | 583 } |
568 bool linear_allocation() { | 584 bool linear_allocation() { |
569 return linear_allocation_scope_depth_ != 0; | 585 return linear_allocation_scope_depth_ != 0; |
570 } | 586 } |
571 | 587 |
572 Address* NewSpaceAllocationTopAddress() { | 588 Address* NewSpaceAllocationTopAddress() { |
573 return new_space_.allocation_top_address(); | 589 return new_space_.allocation_top_address(); |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2015 inline void InitializeFunction( | 2031 inline void InitializeFunction( |
2016 JSFunction* function, | 2032 JSFunction* function, |
2017 SharedFunctionInfo* shared, | 2033 SharedFunctionInfo* shared, |
2018 Object* prototype); | 2034 Object* prototype); |
2019 | 2035 |
2020 // Total RegExp code ever generated | 2036 // Total RegExp code ever generated |
2021 double total_regexp_code_generated_; | 2037 double total_regexp_code_generated_; |
2022 | 2038 |
2023 GCTracer* tracer_; | 2039 GCTracer* tracer_; |
2024 | 2040 |
2041 double marking_time_; | |
Michael Starzinger
2013/01/28 13:55:39
Move these counters into IncrementalMarking and th
Hannes Payer (out of office)
2013/01/29 12:01:54
As discussed offline, they stay in heap.h
On 2013
| |
2042 double sweeping_time_; | |
2025 | 2043 |
2026 // Allocates a small number to string cache. | 2044 // Allocates a small number to string cache. |
2027 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); | 2045 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |
2028 // Creates and installs the full-sized number string cache. | 2046 // Creates and installs the full-sized number string cache. |
2029 void AllocateFullSizeNumberStringCache(); | 2047 void AllocateFullSizeNumberStringCache(); |
2030 // Get the length of the number to string cache based on the max semispace | 2048 // Get the length of the number to string cache based on the max semispace |
2031 // size. | 2049 // size. |
2032 int FullSizeNumberStringCacheLength(); | 2050 int FullSizeNumberStringCacheLength(); |
2033 // Flush the number to string cache. | 2051 // Flush the number to string cache. |
2034 void FlushNumberStringCache(); | 2052 void FlushNumberStringCache(); |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2879 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2897 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2880 | 2898 |
2881 private: | 2899 private: |
2882 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2900 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2883 }; | 2901 }; |
2884 #endif // DEBUG || LIVE_OBJECT_LIST | 2902 #endif // DEBUG || LIVE_OBJECT_LIST |
2885 | 2903 |
2886 } } // namespace v8::internal | 2904 } } // namespace v8::internal |
2887 | 2905 |
2888 #endif // V8_HEAP_H_ | 2906 #endif // V8_HEAP_H_ |
OLD | NEW |