| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 if (HasFastProperties()) { | 320 if (HasFastProperties()) { |
| 321 CHECK(map()->unused_property_fields() == | 321 CHECK(map()->unused_property_fields() == |
| 322 (map()->inobject_properties() + properties()->length() - | 322 (map()->inobject_properties() + properties()->length() - |
| 323 map()->NextFreePropertyIndex())); | 323 map()->NextFreePropertyIndex())); |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 | 326 |
| 327 | 327 |
| 328 static const char* TypeToString(InstanceType type) { | 328 static const char* TypeToString(InstanceType type) { |
| 329 switch (type) { | 329 switch (type) { |
| 330 case INVALID_TYPE: return "INVALID"; |
| 330 case MAP_TYPE: return "MAP"; | 331 case MAP_TYPE: return "MAP"; |
| 331 case HEAP_NUMBER_TYPE: return "HEAP_NUMBER"; | 332 case HEAP_NUMBER_TYPE: return "HEAP_NUMBER"; |
| 332 case SHORT_SYMBOL_TYPE: | 333 case SHORT_SYMBOL_TYPE: |
| 333 case MEDIUM_SYMBOL_TYPE: | 334 case MEDIUM_SYMBOL_TYPE: |
| 334 case LONG_SYMBOL_TYPE: return "SYMBOL"; | 335 case LONG_SYMBOL_TYPE: return "SYMBOL"; |
| 335 case SHORT_ASCII_SYMBOL_TYPE: | 336 case SHORT_ASCII_SYMBOL_TYPE: |
| 336 case MEDIUM_ASCII_SYMBOL_TYPE: | 337 case MEDIUM_ASCII_SYMBOL_TYPE: |
| 337 case LONG_ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL"; | 338 case LONG_ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL"; |
| 338 case SHORT_SLICED_SYMBOL_TYPE: | 339 case SHORT_SLICED_SYMBOL_TYPE: |
| 339 case MEDIUM_SLICED_SYMBOL_TYPE: | 340 case MEDIUM_SLICED_SYMBOL_TYPE: |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 } | 1045 } |
| 1045 current = hash; | 1046 current = hash; |
| 1046 } | 1047 } |
| 1047 return true; | 1048 return true; |
| 1048 } | 1049 } |
| 1049 | 1050 |
| 1050 | 1051 |
| 1051 #endif // DEBUG | 1052 #endif // DEBUG |
| 1052 | 1053 |
| 1053 } } // namespace v8::internal | 1054 } } // namespace v8::internal |
| OLD | NEW |