| 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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 static const int kInitialSymbolTableSize = 2048; | 1096 static const int kInitialSymbolTableSize = 2048; |
| 1097 static const int kInitialEvalCacheSize = 64; | 1097 static const int kInitialEvalCacheSize = 64; |
| 1098 | 1098 |
| 1099 friend class Factory; | 1099 friend class Factory; |
| 1100 friend class DisallowAllocationFailure; | 1100 friend class DisallowAllocationFailure; |
| 1101 friend class AlwaysAllocateScope; | 1101 friend class AlwaysAllocateScope; |
| 1102 friend class LinearAllocationScope; | 1102 friend class LinearAllocationScope; |
| 1103 }; | 1103 }; |
| 1104 | 1104 |
| 1105 | 1105 |
| 1106 struct HeapStats { | 1106 class HeapStats { |
| 1107 public: |
| 1107 int new_space_size; | 1108 int new_space_size; |
| 1108 int new_space_capacity; | 1109 int new_space_capacity; |
| 1109 int old_pointer_space_size; | 1110 int old_pointer_space_size; |
| 1110 int old_pointer_space_capacity; | 1111 int old_pointer_space_capacity; |
| 1111 int old_data_space_size; | 1112 int old_data_space_size; |
| 1112 int old_data_space_capacity; | 1113 int old_data_space_capacity; |
| 1113 int code_space_size; | 1114 int code_space_size; |
| 1114 int code_space_capacity; | 1115 int code_space_capacity; |
| 1115 int map_space_size; | 1116 int map_space_size; |
| 1116 int map_space_capacity; | 1117 int map_space_capacity; |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1616 } | 1617 } |
| 1617 static TranscendentalCache* caches_[kNumberOfCaches]; | 1618 static TranscendentalCache* caches_[kNumberOfCaches]; |
| 1618 Element elements_[kCacheSize]; | 1619 Element elements_[kCacheSize]; |
| 1619 Type type_; | 1620 Type type_; |
| 1620 }; | 1621 }; |
| 1621 | 1622 |
| 1622 | 1623 |
| 1623 } } // namespace v8::internal | 1624 } } // namespace v8::internal |
| 1624 | 1625 |
| 1625 #endif // V8_HEAP_H_ | 1626 #endif // V8_HEAP_H_ |
| OLD | NEW |