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/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 1483933002: Deprecate unused RelocInfo::CONSTRUCT_CALL mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 414
415 ElementsKind kind = instr->hydrogen()->elements_kind(); 415 ElementsKind kind = instr->hydrogen()->elements_kind();
416 AllocationSiteOverrideMode override_mode = 416 AllocationSiteOverrideMode override_mode =
417 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) 417 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
418 ? DISABLE_ALLOCATION_SITES 418 ? DISABLE_ALLOCATION_SITES
419 : DONT_OVERRIDE; 419 : DONT_OVERRIDE;
420 420
421 if (instr->arity() == 0) { 421 if (instr->arity() == 0) {
422 ArrayNoArgumentConstructorStub stub(isolate(), kind, override_mode); 422 ArrayNoArgumentConstructorStub stub(isolate(), kind, override_mode);
423 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 423 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
424 } else if (instr->arity() == 1) { 424 } else if (instr->arity() == 1) {
425 Label done; 425 Label done;
426 if (IsFastPackedElementsKind(kind)) { 426 if (IsFastPackedElementsKind(kind)) {
427 Label packed_case; 427 Label packed_case;
428 428
429 // We might need to create a holey array; look at the first argument. 429 // We might need to create a holey array; look at the first argument.
430 __ Peek(x10, 0); 430 __ Peek(x10, 0);
431 __ Cbz(x10, &packed_case); 431 __ Cbz(x10, &packed_case);
432 432
433 ElementsKind holey_kind = GetHoleyElementsKind(kind); 433 ElementsKind holey_kind = GetHoleyElementsKind(kind);
434 ArraySingleArgumentConstructorStub stub(isolate(), 434 ArraySingleArgumentConstructorStub stub(isolate(),
435 holey_kind, 435 holey_kind,
436 override_mode); 436 override_mode);
437 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 437 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
438 __ B(&done); 438 __ B(&done);
439 __ Bind(&packed_case); 439 __ Bind(&packed_case);
440 } 440 }
441 441
442 ArraySingleArgumentConstructorStub stub(isolate(), kind, override_mode); 442 ArraySingleArgumentConstructorStub stub(isolate(), kind, override_mode);
443 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 443 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
444 __ Bind(&done); 444 __ Bind(&done);
445 } else { 445 } else {
446 ArrayNArgumentsConstructorStub stub(isolate(), kind, override_mode); 446 ArrayNArgumentsConstructorStub stub(isolate(), kind, override_mode);
447 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 447 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
448 } 448 }
449 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta()); 449 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta());
450 450
451 DCHECK(ToRegister(instr->result()).is(x0)); 451 DCHECK(ToRegister(instr->result()).is(x0));
452 } 452 }
453 453
454 454
455 void LCodeGen::CallRuntime(const Runtime::Function* function, 455 void LCodeGen::CallRuntime(const Runtime::Function* function,
456 int num_arguments, 456 int num_arguments,
457 LInstruction* instr, 457 LInstruction* instr,
(...skipping 5437 matching lines...) Expand 10 before | Expand all | Expand 10 after
5895 Handle<ScopeInfo> scope_info = instr->scope_info(); 5895 Handle<ScopeInfo> scope_info = instr->scope_info();
5896 __ Push(scope_info); 5896 __ Push(scope_info);
5897 __ Push(ToRegister(instr->function())); 5897 __ Push(ToRegister(instr->function()));
5898 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5898 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5899 RecordSafepoint(Safepoint::kNoLazyDeopt); 5899 RecordSafepoint(Safepoint::kNoLazyDeopt);
5900 } 5900 }
5901 5901
5902 5902
5903 } // namespace internal 5903 } // namespace internal
5904 } // namespace v8 5904 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698