| 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 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 break | 1554 break |
| 1555 | 1555 |
| 1556 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1556 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
| 1557 switch (static_cast<Code::Kind>(i)) { | 1557 switch (static_cast<Code::Kind>(i)) { |
| 1558 CASE(FUNCTION); | 1558 CASE(FUNCTION); |
| 1559 CASE(OPTIMIZED_FUNCTION); | 1559 CASE(OPTIMIZED_FUNCTION); |
| 1560 CASE(STUB); | 1560 CASE(STUB); |
| 1561 CASE(BUILTIN); | 1561 CASE(BUILTIN); |
| 1562 CASE(LOAD_IC); | 1562 CASE(LOAD_IC); |
| 1563 CASE(KEYED_LOAD_IC); | 1563 CASE(KEYED_LOAD_IC); |
| 1564 CASE(KEYED_EXTERNAL_ARRAY_LOAD_IC); |
| 1564 CASE(STORE_IC); | 1565 CASE(STORE_IC); |
| 1565 CASE(KEYED_STORE_IC); | 1566 CASE(KEYED_STORE_IC); |
| 1567 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC); |
| 1566 CASE(CALL_IC); | 1568 CASE(CALL_IC); |
| 1567 CASE(KEYED_CALL_IC); | 1569 CASE(KEYED_CALL_IC); |
| 1568 CASE(BINARY_OP_IC); | 1570 CASE(BINARY_OP_IC); |
| 1569 CASE(TYPE_RECORDING_BINARY_OP_IC); | 1571 CASE(TYPE_RECORDING_BINARY_OP_IC); |
| 1570 CASE(COMPARE_IC); | 1572 CASE(COMPARE_IC); |
| 1571 } | 1573 } |
| 1572 } | 1574 } |
| 1573 | 1575 |
| 1574 #undef CASE | 1576 #undef CASE |
| 1575 | 1577 |
| (...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3122 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 3124 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
| 3123 if (obj->IsCode()) { | 3125 if (obj->IsCode()) { |
| 3124 Code* code = Code::cast(obj); | 3126 Code* code = Code::cast(obj); |
| 3125 isolate->code_kind_statistics()[code->kind()] += code->Size(); | 3127 isolate->code_kind_statistics()[code->kind()] += code->Size(); |
| 3126 } | 3128 } |
| 3127 } | 3129 } |
| 3128 } | 3130 } |
| 3129 #endif // DEBUG | 3131 #endif // DEBUG |
| 3130 | 3132 |
| 3131 } } // namespace v8::internal | 3133 } } // namespace v8::internal |
| OLD | NEW |