| 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 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 CASE(FUNCTION); | 1561 CASE(FUNCTION); |
| 1562 CASE(OPTIMIZED_FUNCTION); | 1562 CASE(OPTIMIZED_FUNCTION); |
| 1563 CASE(STUB); | 1563 CASE(STUB); |
| 1564 CASE(BUILTIN); | 1564 CASE(BUILTIN); |
| 1565 CASE(LOAD_IC); | 1565 CASE(LOAD_IC); |
| 1566 CASE(KEYED_LOAD_IC); | 1566 CASE(KEYED_LOAD_IC); |
| 1567 CASE(STORE_IC); | 1567 CASE(STORE_IC); |
| 1568 CASE(KEYED_STORE_IC); | 1568 CASE(KEYED_STORE_IC); |
| 1569 CASE(CALL_IC); | 1569 CASE(CALL_IC); |
| 1570 CASE(KEYED_CALL_IC); | 1570 CASE(KEYED_CALL_IC); |
| 1571 CASE(TYPE_RECORDING_UNARY_OP_IC); | 1571 CASE(UNARY_OP_IC); |
| 1572 CASE(TYPE_RECORDING_BINARY_OP_IC); | 1572 CASE(BINARY_OP_IC); |
| 1573 CASE(COMPARE_IC); | 1573 CASE(COMPARE_IC); |
| 1574 } | 1574 } |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 #undef CASE | 1577 #undef CASE |
| 1578 | 1578 |
| 1579 PrintF("\n Code kind histograms: \n"); | 1579 PrintF("\n Code kind histograms: \n"); |
| 1580 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1580 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
| 1581 if (isolate->code_kind_statistics()[i] > 0) { | 1581 if (isolate->code_kind_statistics()[i] > 0) { |
| 1582 PrintF(" %-20s: %10d bytes\n", table[i], | 1582 PrintF(" %-20s: %10d bytes\n", table[i], |
| (...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3136 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 3136 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
| 3137 if (obj->IsCode()) { | 3137 if (obj->IsCode()) { |
| 3138 Code* code = Code::cast(obj); | 3138 Code* code = Code::cast(obj); |
| 3139 isolate->code_kind_statistics()[code->kind()] += code->Size(); | 3139 isolate->code_kind_statistics()[code->kind()] += code->Size(); |
| 3140 } | 3140 } |
| 3141 } | 3141 } |
| 3142 } | 3142 } |
| 3143 #endif // DEBUG | 3143 #endif // DEBUG |
| 3144 | 3144 |
| 3145 } } // namespace v8::internal | 3145 } } // namespace v8::internal |
| OLD | NEW |