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 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 inline void PrintElements() { | 1921 inline void PrintElements() { |
1922 PrintElements(stdout); | 1922 PrintElements(stdout); |
1923 } | 1923 } |
1924 void PrintElements(FILE* out); | 1924 void PrintElements(FILE* out); |
1925 #endif | 1925 #endif |
1926 | 1926 |
1927 void PrintElementsTransition( | 1927 void PrintElementsTransition( |
1928 FILE* file, ElementsKind from_kind, FixedArrayBase* from_elements, | 1928 FILE* file, ElementsKind from_kind, FixedArrayBase* from_elements, |
1929 ElementsKind to_kind, FixedArrayBase* to_elements); | 1929 ElementsKind to_kind, FixedArrayBase* to_elements); |
1930 | 1930 |
| 1931 void RecordElementsTransition( |
| 1932 ElementsKind from_kind, FixedArrayBase* from_elements, |
| 1933 ElementsKind to_kind, FixedArrayBase* to_elements); |
| 1934 |
1931 #ifdef DEBUG | 1935 #ifdef DEBUG |
1932 // Structure for collecting spill information about JSObjects. | 1936 // Structure for collecting spill information about JSObjects. |
1933 class SpillInformation { | 1937 class SpillInformation { |
1934 public: | 1938 public: |
1935 void Clear(); | 1939 void Clear(); |
1936 void Print(); | 1940 void Print(); |
1937 int number_of_objects_; | 1941 int number_of_objects_; |
1938 int number_of_objects_with_fast_properties_; | 1942 int number_of_objects_with_fast_properties_; |
1939 int number_of_objects_with_fast_elements_; | 1943 int number_of_objects_with_fast_elements_; |
1940 int number_of_fast_used_fields_; | 1944 int number_of_fast_used_fields_; |
(...skipping 6067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8008 } else { | 8012 } else { |
8009 value &= ~(1 << bit_position); | 8013 value &= ~(1 << bit_position); |
8010 } | 8014 } |
8011 return value; | 8015 return value; |
8012 } | 8016 } |
8013 }; | 8017 }; |
8014 | 8018 |
8015 } } // namespace v8::internal | 8019 } } // namespace v8::internal |
8016 | 8020 |
8017 #endif // V8_OBJECTS_H_ | 8021 #endif // V8_OBJECTS_H_ |
OLD | NEW |