Chromium Code Reviews| 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 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1877 int number_of_fast_used_elements_; | 1877 int number_of_fast_used_elements_; |
| 1878 int number_of_fast_unused_elements_; | 1878 int number_of_fast_unused_elements_; |
| 1879 int number_of_slow_used_elements_; | 1879 int number_of_slow_used_elements_; |
| 1880 int number_of_slow_unused_elements_; | 1880 int number_of_slow_unused_elements_; |
| 1881 }; | 1881 }; |
| 1882 | 1882 |
| 1883 void IncrementSpillStatistics(SpillInformation* info); | 1883 void IncrementSpillStatistics(SpillInformation* info); |
| 1884 #endif | 1884 #endif |
| 1885 Object* SlowReverseLookup(Object* value); | 1885 Object* SlowReverseLookup(Object* value); |
| 1886 | 1886 |
| 1887 // Getters and setters are stored in a fixed array property. | |
| 1888 // These are constants for their indices. | |
| 1889 static const int kGetterIndex; | |
|
mnaganov (inactive)
2011/11/11 22:47:46
Please define values inline.
| |
| 1890 static const int kSetterIndex; | |
| 1891 | |
| 1887 // Maximal number of fast properties for the JSObject. Used to | 1892 // Maximal number of fast properties for the JSObject. Used to |
| 1888 // restrict the number of map transitions to avoid an explosion in | 1893 // restrict the number of map transitions to avoid an explosion in |
| 1889 // the number of maps for objects used as dictionaries. | 1894 // the number of maps for objects used as dictionaries. |
| 1890 inline int MaxFastProperties(); | 1895 inline int MaxFastProperties(); |
| 1891 | 1896 |
| 1892 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). | 1897 // Maximal number of elements (numbered 0 .. kMaxElementCount - 1). |
| 1893 // Also maximal value of JSArray's length property. | 1898 // Also maximal value of JSArray's length property. |
| 1894 static const uint32_t kMaxElementCount = 0xffffffffu; | 1899 static const uint32_t kMaxElementCount = 0xffffffffu; |
| 1895 | 1900 |
| 1896 // Constants for heuristics controlling conversion of fast elements | 1901 // Constants for heuristics controlling conversion of fast elements |
| (...skipping 5963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7860 } else { | 7865 } else { |
| 7861 value &= ~(1 << bit_position); | 7866 value &= ~(1 << bit_position); |
| 7862 } | 7867 } |
| 7863 return value; | 7868 return value; |
| 7864 } | 7869 } |
| 7865 }; | 7870 }; |
| 7866 | 7871 |
| 7867 } } // namespace v8::internal | 7872 } } // namespace v8::internal |
| 7868 | 7873 |
| 7869 #endif // V8_OBJECTS_H_ | 7874 #endif // V8_OBJECTS_H_ |
| OLD | NEW |