| 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 break | 1211 break |
| 1212 | 1212 |
| 1213 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1213 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
| 1214 switch (static_cast<Code::Kind>(i)) { | 1214 switch (static_cast<Code::Kind>(i)) { |
| 1215 CASE(FUNCTION); | 1215 CASE(FUNCTION); |
| 1216 CASE(OPTIMIZED_FUNCTION); | 1216 CASE(OPTIMIZED_FUNCTION); |
| 1217 CASE(STUB); | 1217 CASE(STUB); |
| 1218 CASE(BUILTIN); | 1218 CASE(BUILTIN); |
| 1219 CASE(LOAD_IC); | 1219 CASE(LOAD_IC); |
| 1220 CASE(KEYED_LOAD_IC); | 1220 CASE(KEYED_LOAD_IC); |
| 1221 CASE(KEYED_EXTERNAL_ARRAY_LOAD_IC); |
| 1221 CASE(STORE_IC); | 1222 CASE(STORE_IC); |
| 1222 CASE(KEYED_STORE_IC); | 1223 CASE(KEYED_STORE_IC); |
| 1224 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC); |
| 1223 CASE(CALL_IC); | 1225 CASE(CALL_IC); |
| 1224 CASE(KEYED_CALL_IC); | 1226 CASE(KEYED_CALL_IC); |
| 1225 CASE(BINARY_OP_IC); | 1227 CASE(BINARY_OP_IC); |
| 1226 CASE(TYPE_RECORDING_BINARY_OP_IC); | 1228 CASE(TYPE_RECORDING_BINARY_OP_IC); |
| 1227 CASE(COMPARE_IC); | 1229 CASE(COMPARE_IC); |
| 1228 } | 1230 } |
| 1229 } | 1231 } |
| 1230 | 1232 |
| 1231 #undef CASE | 1233 #undef CASE |
| 1232 | 1234 |
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2512 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 2514 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
| 2513 if (obj->IsCode()) { | 2515 if (obj->IsCode()) { |
| 2514 Code* code = Code::cast(obj); | 2516 Code* code = Code::cast(obj); |
| 2515 code_kind_statistics[code->kind()] += code->Size(); | 2517 code_kind_statistics[code->kind()] += code->Size(); |
| 2516 } | 2518 } |
| 2517 } | 2519 } |
| 2518 } | 2520 } |
| 2519 #endif // DEBUG | 2521 #endif // DEBUG |
| 2520 | 2522 |
| 2521 } } // namespace v8::internal | 2523 } } // namespace v8::internal |
| OLD | NEW |