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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 20084003: Add --trace-hydrogen-stubs flag (default = false). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tracing of stubs. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 CompilationInfoWithZone info_; 122 CompilationInfoWithZone info_;
123 CodeStubInterfaceDescriptor* descriptor_; 123 CodeStubInterfaceDescriptor* descriptor_;
124 HContext* context_; 124 HContext* context_;
125 }; 125 };
126 126
127 127
128 bool CodeStubGraphBuilderBase::BuildGraph() { 128 bool CodeStubGraphBuilderBase::BuildGraph() {
129 // Update the static counter each time a new code stub is generated. 129 // Update the static counter each time a new code stub is generated.
130 isolate()->counters()->code_stubs()->Increment(); 130 isolate()->counters()->code_stubs()->Increment();
131 131
132 if (FLAG_trace_hydrogen) { 132 if (FLAG_trace_hydrogen_stubs) {
133 const char* name = CodeStub::MajorName(stub()->MajorKey(), false); 133 const char* name = CodeStub::MajorName(stub()->MajorKey(), false);
134 PrintF("-----------------------------------------------------------\n"); 134 PrintF("-----------------------------------------------------------\n");
135 PrintF("Compiling stub %s using hydrogen\n", name); 135 PrintF("Compiling stub %s using hydrogen\n", name);
136 isolate()->GetHTracer()->TraceCompilation(&info_); 136 isolate()->GetHTracer()->TraceCompilation(&info_);
137 } 137 }
138 138
139 Zone* zone = this->zone(); 139 Zone* zone = this->zone();
140 int param_count = descriptor_->register_param_count_; 140 int param_count = descriptor_->register_param_count_;
141 HEnvironment* start_environment = graph()->start_environment(); 141 HEnvironment* start_environment = graph()->start_environment();
142 HBasicBlock* next_block = CreateBasicBlock(start_environment); 142 HBasicBlock* next_block = CreateBasicBlock(start_environment);
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 return value; 952 return value;
953 } 953 }
954 954
955 955
956 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() { 956 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() {
957 return DoGenerateCode(this); 957 return DoGenerateCode(this);
958 } 958 }
959 959
960 960
961 } } // namespace v8::internal 961 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698