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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1450 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
1451 switch (static_cast<Code::Kind>(i)) { | 1451 switch (static_cast<Code::Kind>(i)) { |
1452 CASE(FUNCTION); | 1452 CASE(FUNCTION); |
1453 CASE(STUB); | 1453 CASE(STUB); |
1454 CASE(BUILTIN); | 1454 CASE(BUILTIN); |
1455 CASE(LOAD_IC); | 1455 CASE(LOAD_IC); |
1456 CASE(KEYED_LOAD_IC); | 1456 CASE(KEYED_LOAD_IC); |
1457 CASE(STORE_IC); | 1457 CASE(STORE_IC); |
1458 CASE(KEYED_STORE_IC); | 1458 CASE(KEYED_STORE_IC); |
1459 CASE(CALL_IC); | 1459 CASE(CALL_IC); |
| 1460 CASE(KEYED_CALL_IC); |
1460 CASE(BINARY_OP_IC); | 1461 CASE(BINARY_OP_IC); |
1461 } | 1462 } |
1462 } | 1463 } |
1463 | 1464 |
1464 #undef CASE | 1465 #undef CASE |
1465 | 1466 |
1466 PrintF("\n Code kind histograms: \n"); | 1467 PrintF("\n Code kind histograms: \n"); |
1467 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1468 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
1468 if (code_kind_statistics[i] > 0) { | 1469 if (code_kind_statistics[i] > 0) { |
1469 PrintF(" %-20s: %10d bytes\n", table[i], code_kind_statistics[i]); | 1470 PrintF(" %-20s: %10d bytes\n", table[i], code_kind_statistics[i]); |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2889 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 2890 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
2890 if (obj->IsCode()) { | 2891 if (obj->IsCode()) { |
2891 Code* code = Code::cast(obj); | 2892 Code* code = Code::cast(obj); |
2892 code_kind_statistics[code->kind()] += code->Size(); | 2893 code_kind_statistics[code->kind()] += code->Size(); |
2893 } | 2894 } |
2894 } | 2895 } |
2895 } | 2896 } |
2896 #endif // DEBUG | 2897 #endif // DEBUG |
2897 | 2898 |
2898 } } // namespace v8::internal | 2899 } } // namespace v8::internal |
OLD | NEW |