OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/log.h" | 5 #include "src/log.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1569 break; | 1569 break; |
1570 case AbstractCode::STORE_IC: | 1570 case AbstractCode::STORE_IC: |
1571 description = "A store IC from the snapshot"; | 1571 description = "A store IC from the snapshot"; |
1572 tag = Logger::STORE_IC_TAG; | 1572 tag = Logger::STORE_IC_TAG; |
1573 break; | 1573 break; |
1574 case AbstractCode::KEYED_STORE_IC: | 1574 case AbstractCode::KEYED_STORE_IC: |
1575 description = "A keyed store IC from the snapshot"; | 1575 description = "A keyed store IC from the snapshot"; |
1576 tag = Logger::KEYED_STORE_IC_TAG; | 1576 tag = Logger::KEYED_STORE_IC_TAG; |
1577 break; | 1577 break; |
1578 case AbstractCode::WASM_FUNCTION: | 1578 case AbstractCode::WASM_FUNCTION: |
1579 description = "A wasm function"; | 1579 description = "A Wasm function"; |
1580 tag = Logger::STUB_TAG; | |
1581 break; | |
1582 case AbstractCode::JS_TO_WASM_FUNCTION: | |
1583 description = "A JavaScript to Wasm thunk"; | |
titzer
2016/03/03 23:25:05
thunk sounds so violent! We generally use the term
bradn
2016/03/03 23:28:49
Done.
| |
1584 tag = Logger::STUB_TAG; | |
1585 break; | |
1586 case AbstractCode::WASM_TO_JS_FUNCTION: | |
1587 description = "A Wasm to JavaScript thunk"; | |
1580 tag = Logger::STUB_TAG; | 1588 tag = Logger::STUB_TAG; |
1581 break; | 1589 break; |
1582 } | 1590 } |
1583 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); | 1591 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); |
1584 } | 1592 } |
1585 | 1593 |
1586 | 1594 |
1587 void Logger::LogCodeObjects() { | 1595 void Logger::LogCodeObjects() { |
1588 Heap* heap = isolate_->heap(); | 1596 Heap* heap = isolate_->heap(); |
1589 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, | 1597 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1835 removeCodeEventListener(jit_logger_); | 1843 removeCodeEventListener(jit_logger_); |
1836 delete jit_logger_; | 1844 delete jit_logger_; |
1837 jit_logger_ = NULL; | 1845 jit_logger_ = NULL; |
1838 } | 1846 } |
1839 | 1847 |
1840 return log_->Close(); | 1848 return log_->Close(); |
1841 } | 1849 } |
1842 | 1850 |
1843 } // namespace internal | 1851 } // namespace internal |
1844 } // namespace v8 | 1852 } // namespace v8 |
OLD | NEW |