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 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 tag = Logger::KEYED_STORE_IC_TAG; | 1536 tag = Logger::KEYED_STORE_IC_TAG; |
1537 break; | 1537 break; |
1538 case Code::CALL_IC: | 1538 case Code::CALL_IC: |
1539 description = "A call IC from the snapshot"; | 1539 description = "A call IC from the snapshot"; |
1540 tag = Logger::CALL_IC_TAG; | 1540 tag = Logger::CALL_IC_TAG; |
1541 break; | 1541 break; |
1542 case Code::KEYED_CALL_IC: | 1542 case Code::KEYED_CALL_IC: |
1543 description = "A keyed call IC from the snapshot"; | 1543 description = "A keyed call IC from the snapshot"; |
1544 tag = Logger::KEYED_CALL_IC_TAG; | 1544 tag = Logger::KEYED_CALL_IC_TAG; |
1545 break; | 1545 break; |
| 1546 case Code::NUMBER_OF_KINDS: |
| 1547 break; |
1546 } | 1548 } |
1547 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); | 1549 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); |
1548 } | 1550 } |
1549 | 1551 |
1550 | 1552 |
1551 void Logger::LogCodeInfo() { | 1553 void Logger::LogCodeInfo() { |
1552 if (!log_->IsEnabled() || !FLAG_ll_prof) return; | 1554 if (!log_->IsEnabled() || !FLAG_ll_prof) return; |
1553 #if V8_TARGET_ARCH_IA32 | 1555 #if V8_TARGET_ARCH_IA32 |
1554 const char arch[] = "ia32"; | 1556 const char arch[] = "ia32"; |
1555 #elif V8_TARGET_ARCH_X64 | 1557 #elif V8_TARGET_ARCH_X64 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 profiler_ = NULL; | 1801 profiler_ = NULL; |
1800 } | 1802 } |
1801 | 1803 |
1802 delete ticker_; | 1804 delete ticker_; |
1803 ticker_ = NULL; | 1805 ticker_ = NULL; |
1804 | 1806 |
1805 return log_->Close(); | 1807 return log_->Close(); |
1806 } | 1808 } |
1807 | 1809 |
1808 } } // namespace v8::internal | 1810 } } // namespace v8::internal |
OLD | NEW |