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 <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 tag = CodeEventListener::STUB_TAG; | 1462 tag = CodeEventListener::STUB_TAG; |
1463 break; | 1463 break; |
1464 case AbstractCode::JS_TO_WASM_FUNCTION: | 1464 case AbstractCode::JS_TO_WASM_FUNCTION: |
1465 description = "A JavaScript to Wasm adapter"; | 1465 description = "A JavaScript to Wasm adapter"; |
1466 tag = CodeEventListener::STUB_TAG; | 1466 tag = CodeEventListener::STUB_TAG; |
1467 break; | 1467 break; |
1468 case AbstractCode::WASM_TO_JS_FUNCTION: | 1468 case AbstractCode::WASM_TO_JS_FUNCTION: |
1469 description = "A Wasm to JavaScript adapter"; | 1469 description = "A Wasm to JavaScript adapter"; |
1470 tag = CodeEventListener::STUB_TAG; | 1470 tag = CodeEventListener::STUB_TAG; |
1471 break; | 1471 break; |
| 1472 case AbstractCode::JS_TO_NATIVE_FUNCTION: |
| 1473 description = "A JavaScript to native adapter"; |
| 1474 tag = CodeEventListener::STUB_TAG; |
| 1475 break; |
1472 case AbstractCode::NUMBER_OF_KINDS: | 1476 case AbstractCode::NUMBER_OF_KINDS: |
1473 UNIMPLEMENTED(); | 1477 UNIMPLEMENTED(); |
1474 } | 1478 } |
1475 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); | 1479 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); |
1476 } | 1480 } |
1477 | 1481 |
1478 | 1482 |
1479 void Logger::LogCodeObjects() { | 1483 void Logger::LogCodeObjects() { |
1480 Heap* heap = isolate_->heap(); | 1484 Heap* heap = isolate_->heap(); |
1481 HeapIterator iterator(heap); | 1485 HeapIterator iterator(heap); |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 | 1784 |
1781 if (profiler_listener_.get() != nullptr) { | 1785 if (profiler_listener_.get() != nullptr) { |
1782 removeCodeEventListener(profiler_listener_.get()); | 1786 removeCodeEventListener(profiler_listener_.get()); |
1783 } | 1787 } |
1784 | 1788 |
1785 return log_->Close(); | 1789 return log_->Close(); |
1786 } | 1790 } |
1787 | 1791 |
1788 } // namespace internal | 1792 } // namespace internal |
1789 } // namespace v8 | 1793 } // namespace v8 |
OLD | NEW |