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

Side by Side Diff: src/stub-cache.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/safepoint-table.cc ('k') | no next file » | 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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 #undef CALL_LOGGER_TAG 1135 #undef CALL_LOGGER_TAG
1136 1136
1137 1137
1138 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, 1138 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
1139 const char* name) { 1139 const char* name) {
1140 // Create code object in the heap. 1140 // Create code object in the heap.
1141 CodeDesc desc; 1141 CodeDesc desc;
1142 masm_.GetCode(&desc); 1142 masm_.GetCode(&desc);
1143 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject()); 1143 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject());
1144 #ifdef ENABLE_DISASSEMBLER 1144 #ifdef ENABLE_DISASSEMBLER
1145 if (FLAG_print_code_stubs) code->Disassemble(name); 1145 if (FLAG_print_code_stubs) {
1146 CodeTracer::Scope trace_scope(isolate()->GetCodeTracer());
1147 code->Disassemble(name, trace_scope.file());
1148 }
1146 #endif 1149 #endif
1147 return code; 1150 return code;
1148 } 1151 }
1149 1152
1150 1153
1151 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, 1154 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
1152 Handle<Name> name) { 1155 Handle<Name> name) {
1153 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) 1156 return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
1154 ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString()) 1157 ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
1155 : GetCodeWithFlags(flags, NULL); 1158 : GetCodeWithFlags(flags, NULL);
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 Handle<FunctionTemplateInfo>( 1821 Handle<FunctionTemplateInfo>(
1819 FunctionTemplateInfo::cast(signature->receiver())); 1822 FunctionTemplateInfo::cast(signature->receiver()));
1820 } 1823 }
1821 } 1824 }
1822 1825
1823 is_simple_api_call_ = true; 1826 is_simple_api_call_ = true;
1824 } 1827 }
1825 1828
1826 1829
1827 } } // namespace v8::internal 1830 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698