Chromium Code Reviews

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

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | src/compiler.h » ('j') | src/compiler.h » ('J')
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/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/field-index.h" 10 #include "src/field-index.h"
(...skipping 260 matching lines...)
271 // stub-failure deopt mechanism. 271 // stub-failure deopt mechanism.
272 if (stub->IsUninitialized() && descriptor.has_miss_handler()) { 272 if (stub->IsUninitialized() && descriptor.has_miss_handler()) {
273 DCHECK(!descriptor.stack_parameter_count().is_valid()); 273 DCHECK(!descriptor.stack_parameter_count().is_valid());
274 return stub->GenerateLightweightMissCode(descriptor.miss_handler()); 274 return stub->GenerateLightweightMissCode(descriptor.miss_handler());
275 } 275 }
276 base::ElapsedTimer timer; 276 base::ElapsedTimer timer;
277 if (FLAG_profile_hydrogen_code_stub_compilation) { 277 if (FLAG_profile_hydrogen_code_stub_compilation) {
278 timer.Start(); 278 timer.Start();
279 } 279 }
280 Zone zone(isolate->allocator()); 280 Zone zone(isolate->allocator());
281 CompilationInfo info(CodeStub::MajorName(stub->MajorKey()), isolate, &zone, 281 CompilationInfo info(CStrVector(CodeStub::MajorName(stub->MajorKey())),
282 stub->GetCodeFlags()); 282 isolate, &zone, stub->GetCodeFlags());
283 // Parameter count is number of stack parameters. 283 // Parameter count is number of stack parameters.
284 int parameter_count = descriptor.GetStackParameterCount(); 284 int parameter_count = descriptor.GetStackParameterCount();
285 if (descriptor.function_mode() == NOT_JS_FUNCTION_STUB_MODE) { 285 if (descriptor.function_mode() == NOT_JS_FUNCTION_STUB_MODE) {
286 parameter_count--; 286 parameter_count--;
287 } 287 }
288 info.set_parameter_count(parameter_count); 288 info.set_parameter_count(parameter_count);
289 CodeStubGraphBuilder<Stub> builder(&info, stub); 289 CodeStubGraphBuilder<Stub> builder(&info, stub);
290 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); 290 LChunk* chunk = OptimizeGraph(builder.CreateGraph());
291 Handle<Code> code = chunk->Codegen(); 291 Handle<Code> code = chunk->Codegen();
292 if (FLAG_profile_hydrogen_code_stub_compilation) { 292 if (FLAG_profile_hydrogen_code_stub_compilation) {
(...skipping 2011 matching lines...)
2304 return Pop(); 2304 return Pop();
2305 } 2305 }
2306 2306
2307 2307
2308 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2308 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2309 return DoGenerateCode(this); 2309 return DoGenerateCode(this);
2310 } 2310 }
2311 2311
2312 } // namespace internal 2312 } // namespace internal
2313 } // namespace v8 2313 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler.h » ('j') | src/compiler.h » ('J')

Powered by Google App Engine