Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/log.cc

Issue 2084663004: WIP: prototype ffi support Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 tag = CodeEventListener::STUB_TAG; 1551 tag = CodeEventListener::STUB_TAG;
1552 break; 1552 break;
1553 case AbstractCode::JS_TO_WASM_FUNCTION: 1553 case AbstractCode::JS_TO_WASM_FUNCTION:
1554 description = "A JavaScript to Wasm adapter"; 1554 description = "A JavaScript to Wasm adapter";
1555 tag = CodeEventListener::STUB_TAG; 1555 tag = CodeEventListener::STUB_TAG;
1556 break; 1556 break;
1557 case AbstractCode::WASM_TO_JS_FUNCTION: 1557 case AbstractCode::WASM_TO_JS_FUNCTION:
1558 description = "A Wasm to JavaScript adapter"; 1558 description = "A Wasm to JavaScript adapter";
1559 tag = CodeEventListener::STUB_TAG; 1559 tag = CodeEventListener::STUB_TAG;
1560 break; 1560 break;
1561 case AbstractCode::JS_TO_NATIVE_FUNCTION:
1562 description = "A JavaScript to native adapter";
1563 tag = CodeEventListener::STUB_TAG;
1564 break;
1561 case AbstractCode::NUMBER_OF_KINDS: 1565 case AbstractCode::NUMBER_OF_KINDS:
1562 UNIMPLEMENTED(); 1566 UNIMPLEMENTED();
1563 } 1567 }
1564 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); 1568 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description));
1565 } 1569 }
1566 1570
1567 1571
1568 void Logger::LogCodeObjects() { 1572 void Logger::LogCodeObjects() {
1569 Heap* heap = isolate_->heap(); 1573 Heap* heap = isolate_->heap();
1570 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1574 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask,
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 removeCodeEventListener(jit_logger_); 1862 removeCodeEventListener(jit_logger_);
1859 delete jit_logger_; 1863 delete jit_logger_;
1860 jit_logger_ = NULL; 1864 jit_logger_ = NULL;
1861 } 1865 }
1862 1866
1863 return log_->Close(); 1867 return log_->Close();
1864 } 1868 }
1865 1869
1866 } // namespace internal 1870 } // namespace internal
1867 } // namespace v8 1871 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698