OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 | 1715 |
1716 class GCTracer BASE_EMBEDDED { | 1716 class GCTracer BASE_EMBEDDED { |
1717 public: | 1717 public: |
1718 class Scope BASE_EMBEDDED { | 1718 class Scope BASE_EMBEDDED { |
1719 public: | 1719 public: |
1720 enum ScopeId { | 1720 enum ScopeId { |
1721 EXTERNAL, | 1721 EXTERNAL, |
1722 MC_MARK, | 1722 MC_MARK, |
1723 MC_SWEEP, | 1723 MC_SWEEP, |
1724 MC_COMPACT, | 1724 MC_COMPACT, |
| 1725 MC_FLUSH_CODE, |
1725 kNumberOfScopes | 1726 kNumberOfScopes |
1726 }; | 1727 }; |
1727 | 1728 |
1728 Scope(GCTracer* tracer, ScopeId scope) | 1729 Scope(GCTracer* tracer, ScopeId scope) |
1729 : tracer_(tracer), | 1730 : tracer_(tracer), |
1730 scope_(scope) { | 1731 scope_(scope) { |
1731 start_time_ = OS::TimeCurrentMillis(); | 1732 start_time_ = OS::TimeCurrentMillis(); |
1732 } | 1733 } |
1733 | 1734 |
1734 ~Scope() { | 1735 ~Scope() { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 | 1975 |
1975 // To speed up scavenge collections new space string are kept | 1976 // To speed up scavenge collections new space string are kept |
1976 // separate from old space strings. | 1977 // separate from old space strings. |
1977 static List<Object*> new_space_strings_; | 1978 static List<Object*> new_space_strings_; |
1978 static List<Object*> old_space_strings_; | 1979 static List<Object*> old_space_strings_; |
1979 }; | 1980 }; |
1980 | 1981 |
1981 } } // namespace v8::internal | 1982 } } // namespace v8::internal |
1982 | 1983 |
1983 #endif // V8_HEAP_H_ | 1984 #endif // V8_HEAP_H_ |
OLD | NEW |