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

Side by Side Diff: src/jsregexp.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/isolate.cc ('k') | src/objects.h » ('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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 while (!work_list.is_empty()) { 1143 while (!work_list.is_empty()) {
1144 work_list.RemoveLast()->Emit(this, &new_trace); 1144 work_list.RemoveLast()->Emit(this, &new_trace);
1145 } 1145 }
1146 if (reg_exp_too_big_) return IrregexpRegExpTooBig(zone_->isolate()); 1146 if (reg_exp_too_big_) return IrregexpRegExpTooBig(zone_->isolate());
1147 1147
1148 Handle<HeapObject> code = macro_assembler_->GetCode(pattern); 1148 Handle<HeapObject> code = macro_assembler_->GetCode(pattern);
1149 heap->IncreaseTotalRegexpCodeGenerated(code->Size()); 1149 heap->IncreaseTotalRegexpCodeGenerated(code->Size());
1150 work_list_ = NULL; 1150 work_list_ = NULL;
1151 #ifdef DEBUG 1151 #ifdef DEBUG
1152 if (FLAG_print_code) { 1152 if (FLAG_print_code) {
1153 Handle<Code>::cast(code)->Disassemble(*pattern->ToCString()); 1153 CodeTracer::Scope trace_scope(heap->isolate()->GetCodeTracer());
1154 Handle<Code>::cast(code)->Disassemble(*pattern->ToCString(),
1155 trace_scope.file());
1154 } 1156 }
1155 if (FLAG_trace_regexp_assembler) { 1157 if (FLAG_trace_regexp_assembler) {
1156 delete macro_assembler_; 1158 delete macro_assembler_;
1157 } 1159 }
1158 #endif 1160 #endif
1159 return RegExpEngine::CompilationResult(*code, next_register_); 1161 return RegExpEngine::CompilationResult(*code, next_register_);
1160 } 1162 }
1161 1163
1162 1164
1163 bool Trace::DeferredAction::Mentions(int that) { 1165 bool Trace::DeferredAction::Mentions(int that) {
(...skipping 4947 matching lines...) Expand 10 before | Expand all | Expand 10 after
6111 } 6113 }
6112 6114
6113 return compiler.Assemble(&macro_assembler, 6115 return compiler.Assemble(&macro_assembler,
6114 node, 6116 node,
6115 data->capture_count, 6117 data->capture_count,
6116 pattern); 6118 pattern);
6117 } 6119 }
6118 6120
6119 6121
6120 }} // namespace v8::internal 6122 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698