OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 tag = Logger::STORE_IC_TAG; | 1288 tag = Logger::STORE_IC_TAG; |
1289 break; | 1289 break; |
1290 case Code::KEYED_STORE_IC: | 1290 case Code::KEYED_STORE_IC: |
1291 description = "A keyed store IC from the snapshot"; | 1291 description = "A keyed store IC from the snapshot"; |
1292 tag = Logger::KEYED_STORE_IC_TAG; | 1292 tag = Logger::KEYED_STORE_IC_TAG; |
1293 break; | 1293 break; |
1294 case Code::CALL_IC: | 1294 case Code::CALL_IC: |
1295 description = "A call IC from the snapshot"; | 1295 description = "A call IC from the snapshot"; |
1296 tag = Logger::CALL_IC_TAG; | 1296 tag = Logger::CALL_IC_TAG; |
1297 break; | 1297 break; |
| 1298 case Code::KEYED_CALL_IC: |
| 1299 description = "A keyed call IC from the snapshot"; |
| 1300 tag = Logger::KEYED_CALL_IC_TAG; |
| 1301 break; |
1298 } | 1302 } |
1299 PROFILE(CodeCreateEvent(tag, code_object, description)); | 1303 PROFILE(CodeCreateEvent(tag, code_object, description)); |
1300 } | 1304 } |
1301 } | 1305 } |
1302 | 1306 |
1303 | 1307 |
1304 void Logger::LogCodeObjects() { | 1308 void Logger::LogCodeObjects() { |
1305 AssertNoAllocation no_alloc; | 1309 AssertNoAllocation no_alloc; |
1306 HeapIterator iterator; | 1310 HeapIterator iterator; |
1307 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { | 1311 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 } | 1552 } |
1549 // Otherwise, if the sliding state window computation has not been | 1553 // Otherwise, if the sliding state window computation has not been |
1550 // started we do it now. | 1554 // started we do it now. |
1551 if (sliding_state_window_ == NULL) { | 1555 if (sliding_state_window_ == NULL) { |
1552 sliding_state_window_ = new SlidingStateWindow(); | 1556 sliding_state_window_ = new SlidingStateWindow(); |
1553 } | 1557 } |
1554 #endif | 1558 #endif |
1555 } | 1559 } |
1556 | 1560 |
1557 } } // namespace v8::internal | 1561 } } // namespace v8::internal |
OLD | NEW |