| 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 break | 1210 break |
| 1211 | 1211 |
| 1212 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { | 1212 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
| 1213 switch (static_cast<Code::Kind>(i)) { | 1213 switch (static_cast<Code::Kind>(i)) { |
| 1214 CASE(FUNCTION); | 1214 CASE(FUNCTION); |
| 1215 CASE(OPTIMIZED_FUNCTION); | 1215 CASE(OPTIMIZED_FUNCTION); |
| 1216 CASE(STUB); | 1216 CASE(STUB); |
| 1217 CASE(BUILTIN); | 1217 CASE(BUILTIN); |
| 1218 CASE(LOAD_IC); | 1218 CASE(LOAD_IC); |
| 1219 CASE(KEYED_LOAD_IC); | 1219 CASE(KEYED_LOAD_IC); |
| 1220 CASE(KEYED_EXTERNAL_ARRAY_LOAD_IC); | |
| 1221 CASE(STORE_IC); | 1220 CASE(STORE_IC); |
| 1222 CASE(KEYED_STORE_IC); | 1221 CASE(KEYED_STORE_IC); |
| 1223 CASE(KEYED_EXTERNAL_ARRAY_STORE_IC); | |
| 1224 CASE(CALL_IC); | 1222 CASE(CALL_IC); |
| 1225 CASE(KEYED_CALL_IC); | 1223 CASE(KEYED_CALL_IC); |
| 1226 CASE(TYPE_RECORDING_UNARY_OP_IC); | 1224 CASE(TYPE_RECORDING_UNARY_OP_IC); |
| 1227 CASE(TYPE_RECORDING_BINARY_OP_IC); | 1225 CASE(TYPE_RECORDING_BINARY_OP_IC); |
| 1228 CASE(COMPARE_IC); | 1226 CASE(COMPARE_IC); |
| 1229 } | 1227 } |
| 1230 } | 1228 } |
| 1231 | 1229 |
| 1232 #undef CASE | 1230 #undef CASE |
| 1233 | 1231 |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2267 for (HeapObject* obj = obj_it.Next(); obj != NULL; obj = obj_it.Next()) { | 2265 for (HeapObject* obj = obj_it.Next(); obj != NULL; obj = obj_it.Next()) { |
| 2268 if (obj->IsCode()) { | 2266 if (obj->IsCode()) { |
| 2269 Code* code = Code::cast(obj); | 2267 Code* code = Code::cast(obj); |
| 2270 isolate->code_kind_statistics()[code->kind()] += code->Size(); | 2268 isolate->code_kind_statistics()[code->kind()] += code->Size(); |
| 2271 } | 2269 } |
| 2272 } | 2270 } |
| 2273 } | 2271 } |
| 2274 #endif // DEBUG | 2272 #endif // DEBUG |
| 2275 | 2273 |
| 2276 } } // namespace v8::internal | 2274 } } // namespace v8::internal |
| OLD | NEW |