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

Unified Diff: src/objects.cc

Issue 1151883004: Add compiler field to code print output. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 125a76716c034b8b61e74f2d62920fcf6b6615a0..cb2d100329e00e594feda5baa8d52dcd56285f15 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11933,6 +11933,12 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
if (kind() == OPTIMIZED_FUNCTION) {
os << "stack_slots = " << stack_slots() << "\n";
}
+ os << "compiler = " << (is_turbofanned()
+ ? "turbofan"
+ : is_crankshafted() ? "crankshaft"
+ : kind() == Code::FUNCTION
+ ? "full-codegen"
+ : "unknown") << "\n";
os << "Instructions (size = " << instruction_size() << ")\n";
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698