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

Unified Diff: src/code-stubs.cc

Issue 10235006: Print compare-state with --print-code-stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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 | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 11016c823875e2cc4736a5f5d4c848e0671ec8ef..03604c513aa2193ea2238f49be9209aa2a0e3c2d 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -81,13 +81,6 @@ void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) {
GDBJIT(AddCode(GDBJITInterface::STUB, *name, code));
Counters* counters = isolate->counters();
counters->total_stubs_code_size()->Increment(code->instruction_size());
-
-#ifdef ENABLE_DISASSEMBLER
- if (FLAG_print_code_stubs) {
- code->Disassemble(*name);
- PrintF("\n");
- }
-#endif
}
@@ -128,6 +121,13 @@ Handle<Code> CodeStub::GetCode() {
RecordCodeGeneration(*new_object, &masm);
Vyacheslav Egorov (Chromium) 2012/04/26 15:39:51 I think more logical would be to move code->set_ma
Michael Starzinger 2012/04/26 16:19:58 Done. But I still left the printing here. Because
FinishCode(new_object);
+#ifdef ENABLE_DISASSEMBLER
+ if (FLAG_print_code_stubs) {
+ new_object->Disassemble(*GetName());
+ PrintF("\n");
+ }
+#endif
+
if (UseSpecialCache()) {
AddToSpecialCache(new_object);
} else {
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698