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

Side by Side Diff: src/code-stubs.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/builtins.cc ('k') | src/codegen.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 { 153 {
154 HandleScope scope(isolate); 154 HandleScope scope(isolate);
155 155
156 Handle<Code> new_object = GenerateCode(isolate); 156 Handle<Code> new_object = GenerateCode(isolate);
157 new_object->set_major_key(MajorKey()); 157 new_object->set_major_key(MajorKey());
158 FinishCode(new_object); 158 FinishCode(new_object);
159 RecordCodeGeneration(*new_object, isolate); 159 RecordCodeGeneration(*new_object, isolate);
160 160
161 #ifdef ENABLE_DISASSEMBLER 161 #ifdef ENABLE_DISASSEMBLER
162 if (FLAG_print_code_stubs) { 162 if (FLAG_print_code_stubs) {
163 new_object->Disassemble(*GetName()); 163 CodeTracer::Scope trace_scope(isolate->GetCodeTracer());
164 PrintF("\n"); 164 new_object->Disassemble(*GetName(), trace_scope.file());
165 PrintF(trace_scope.file(), "\n");
165 } 166 }
166 #endif 167 #endif
167 168
168 if (UseSpecialCache()) { 169 if (UseSpecialCache()) {
169 AddToSpecialCache(new_object); 170 AddToSpecialCache(new_object);
170 } else { 171 } else {
171 // Update the dictionary and the root in Heap. 172 // Update the dictionary and the root in Heap.
172 Handle<UnseededNumberDictionary> dict = 173 Handle<UnseededNumberDictionary> dict =
173 factory->DictionaryAtNumberPut( 174 factory->DictionaryAtNumberPut(
174 Handle<UnseededNumberDictionary>(heap->code_stubs()), 175 Handle<UnseededNumberDictionary>(heap->code_stubs()),
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 InstallDescriptor(isolate, &stub3); 1164 InstallDescriptor(isolate, &stub3);
1164 } 1165 }
1165 1166
1166 InternalArrayConstructorStub::InternalArrayConstructorStub( 1167 InternalArrayConstructorStub::InternalArrayConstructorStub(
1167 Isolate* isolate) { 1168 Isolate* isolate) {
1168 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1169 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1169 } 1170 }
1170 1171
1171 1172
1172 } } // namespace v8::internal 1173 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698