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 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 tag = Logger::LOAD_IC_TAG; | 1871 tag = Logger::LOAD_IC_TAG; |
1872 break; | 1872 break; |
1873 case Code::STORE_IC: | 1873 case Code::STORE_IC: |
1874 description = "A store IC from the snapshot"; | 1874 description = "A store IC from the snapshot"; |
1875 tag = Logger::STORE_IC_TAG; | 1875 tag = Logger::STORE_IC_TAG; |
1876 break; | 1876 break; |
1877 case Code::KEYED_STORE_IC: | 1877 case Code::KEYED_STORE_IC: |
1878 description = "A keyed store IC from the snapshot"; | 1878 description = "A keyed store IC from the snapshot"; |
1879 tag = Logger::KEYED_STORE_IC_TAG; | 1879 tag = Logger::KEYED_STORE_IC_TAG; |
1880 break; | 1880 break; |
1881 case Code::CALL_IC: | |
1882 description = "A call IC from the snapshot"; | |
1883 tag = Logger::CALL_IC_TAG; | |
1884 break; | |
1885 case Code::KEYED_CALL_IC: | |
1886 description = "A keyed call IC from the snapshot"; | |
1887 tag = Logger::KEYED_CALL_IC_TAG; | |
1888 break; | |
1889 case Code::NUMBER_OF_KINDS: | 1881 case Code::NUMBER_OF_KINDS: |
1890 break; | 1882 break; |
1891 } | 1883 } |
1892 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); | 1884 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); |
1893 } | 1885 } |
1894 | 1886 |
1895 | 1887 |
1896 void Logger::LogCodeObjects() { | 1888 void Logger::LogCodeObjects() { |
1897 Heap* heap = isolate_->heap(); | 1889 Heap* heap = isolate_->heap(); |
1898 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, | 1890 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2161 if (jit_logger_) { | 2153 if (jit_logger_) { |
2162 removeCodeEventListener(jit_logger_); | 2154 removeCodeEventListener(jit_logger_); |
2163 delete jit_logger_; | 2155 delete jit_logger_; |
2164 jit_logger_ = NULL; | 2156 jit_logger_ = NULL; |
2165 } | 2157 } |
2166 | 2158 |
2167 return log_->Close(); | 2159 return log_->Close(); |
2168 } | 2160 } |
2169 | 2161 |
2170 } } // namespace v8::internal | 2162 } } // namespace v8::internal |
OLD | NEW |