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

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

Issue 1297203002: Add CompileInfo::GetDebugName() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_immed_bytecodes
Patch Set: Fix test crash Created 5 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
« no previous file with comments | « src/code-stubs.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include "src/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/field-index.h" 8 #include "src/field-index.h"
9 #include "src/hydrogen.h" 9 #include "src/hydrogen.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 CodeStubDescriptor descriptor_; 124 CodeStubDescriptor descriptor_;
125 HContext* context_; 125 HContext* context_;
126 }; 126 };
127 127
128 128
129 bool CodeStubGraphBuilderBase::BuildGraph() { 129 bool CodeStubGraphBuilderBase::BuildGraph() {
130 // Update the static counter each time a new code stub is generated. 130 // Update the static counter each time a new code stub is generated.
131 isolate()->counters()->code_stubs()->Increment(); 131 isolate()->counters()->code_stubs()->Increment();
132 132
133 if (FLAG_trace_hydrogen_stubs) { 133 if (FLAG_trace_hydrogen_stubs) {
134 const char* name = CodeStub::MajorName(stub()->MajorKey(), false); 134 const char* name = CodeStub::MajorName(stub()->MajorKey());
135 PrintF("-----------------------------------------------------------\n"); 135 PrintF("-----------------------------------------------------------\n");
136 PrintF("Compiling stub %s using hydrogen\n", name); 136 PrintF("Compiling stub %s using hydrogen\n", name);
137 isolate()->GetHTracer()->TraceCompilation(info()); 137 isolate()->GetHTracer()->TraceCompilation(info());
138 } 138 }
139 139
140 int param_count = GetParameterCount(); 140 int param_count = GetParameterCount();
141 int register_param_count = GetRegisterParameterCount(); 141 int register_param_count = GetRegisterParameterCount();
142 HEnvironment* start_environment = graph()->start_environment(); 142 HEnvironment* start_environment = graph()->start_environment();
143 HBasicBlock* next_block = CreateBasicBlock(start_environment); 143 HBasicBlock* next_block = CreateBasicBlock(start_environment);
144 Goto(next_block); 144 Goto(next_block);
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 return Pop(); 2206 return Pop();
2207 } 2207 }
2208 2208
2209 2209
2210 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2210 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2211 return DoGenerateCode(this); 2211 return DoGenerateCode(this);
2212 } 2212 }
2213 2213
2214 } // namespace internal 2214 } // namespace internal
2215 } // namespace v8 2215 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698