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

Side by Side Diff: src/builtins.cc

Issue 43273004: Allow redirecting disassembly and deoptimization traces into a file. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 PROFILE(isolate, 1743 PROFILE(isolate,
1744 CodeCreateEvent(Logger::BUILTIN_TAG, 1744 CodeCreateEvent(Logger::BUILTIN_TAG,
1745 Code::cast(code), 1745 Code::cast(code),
1746 functions[i].s_name)); 1746 functions[i].s_name));
1747 GDBJIT(AddCode(GDBJITInterface::BUILTIN, 1747 GDBJIT(AddCode(GDBJITInterface::BUILTIN,
1748 functions[i].s_name, 1748 functions[i].s_name,
1749 Code::cast(code))); 1749 Code::cast(code)));
1750 builtins_[i] = code; 1750 builtins_[i] = code;
1751 #ifdef ENABLE_DISASSEMBLER 1751 #ifdef ENABLE_DISASSEMBLER
1752 if (FLAG_print_builtin_code) { 1752 if (FLAG_print_builtin_code) {
1753 PrintF("Builtin: %s\n", functions[i].s_name); 1753 CodeTracer::Scope trace_scope(isolate->GetCodeTracer());
1754 Code::cast(code)->Disassemble(functions[i].s_name); 1754 PrintF(trace_scope.file(), "Builtin: %s\n", functions[i].s_name);
1755 PrintF("\n"); 1755 Code::cast(code)->Disassemble(functions[i].s_name, trace_scope.file());
1756 PrintF(trace_scope.file(), "\n");
1756 } 1757 }
1757 #endif 1758 #endif
1758 } else { 1759 } else {
1759 // Deserializing. The values will be filled in during IterateBuiltins. 1760 // Deserializing. The values will be filled in during IterateBuiltins.
1760 builtins_[i] = NULL; 1761 builtins_[i] = NULL;
1761 } 1762 }
1762 names_[i] = functions[i].s_name; 1763 names_[i] = functions[i].s_name;
1763 } 1764 }
1764 1765
1765 // Mark as initialized. 1766 // Mark as initialized.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 } 1822 }
1822 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1823 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1823 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1824 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1824 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 1825 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
1825 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1826 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1826 #undef DEFINE_BUILTIN_ACCESSOR_C 1827 #undef DEFINE_BUILTIN_ACCESSOR_C
1827 #undef DEFINE_BUILTIN_ACCESSOR_A 1828 #undef DEFINE_BUILTIN_ACCESSOR_A
1828 1829
1829 1830
1830 } } // namespace v8::internal 1831 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698