| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(KEYED_EXTERNAL_ARRAY_LOAD_IC); | 1567 CASE(KEYED_EXTERNAL_ARRAY_LOAD_IC); |
| 1568 CASE(STORE_IC); | 1568 CASE(STORE_IC); |
| 1569 CASE(KEYED_STORE_IC); | 1569 CASE(KEYED_STORE_IC); |
| 1570 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC); | 1570 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC); |
| 1571 CASE(CALL_IC); | 1571 CASE(CALL_IC); |
| 1572 CASE(KEYED_CALL_IC); | 1572 CASE(KEYED_CALL_IC); |
| 1573 CASE(BINARY_OP_IC); | |
| 1574 CASE(TYPE_RECORDING_BINARY_OP_IC); | 1573 CASE(TYPE_RECORDING_BINARY_OP_IC); |
| 1575 CASE(COMPARE_IC); | 1574 CASE(COMPARE_IC); |
| 1576 } | 1575 } |
| 1577 } | 1576 } |
| 1578 | 1577 |
| 1579 #undef CASE | 1578 #undef CASE |
| 1580 | 1579 |
| 1581 PrintF("\n Code kind histograms: \n"); | 1580 PrintF("\n Code kind histograms: \n"); |
| 1582 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1581 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
| 1583 if (isolate->code_kind_statistics()[i] > 0) { | 1582 if (isolate->code_kind_statistics()[i] > 0) { |
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3138 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 3137 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
| 3139 if (obj->IsCode()) { | 3138 if (obj->IsCode()) { |
| 3140 Code* code = Code::cast(obj); | 3139 Code* code = Code::cast(obj); |
| 3141 isolate->code_kind_statistics()[code->kind()] += code->Size(); | 3140 isolate->code_kind_statistics()[code->kind()] += code->Size(); |
| 3142 } | 3141 } |
| 3143 } | 3142 } |
| 3144 } | 3143 } |
| 3145 #endif // DEBUG | 3144 #endif // DEBUG |
| 3146 | 3145 |
| 3147 } } // namespace v8::internal | 3146 } } // namespace v8::internal |
| OLD | NEW |