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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 2107193002: [ic] Initialize feedback slots for LoadGlobalIC in Runtime::kDeclareGlobals when possible to ... (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing on top of Issue 2127583002 Patch 120001 Created 4 years, 5 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/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/hydrogen.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 4681 matching lines...) Expand 10 before | Expand all | Expand 10 after
4692 DCHECK(ToRegister(instr->context()).is(cp)); 4692 DCHECK(ToRegister(instr->context()).is(cp));
4693 Register scratch1 = x5; 4693 Register scratch1 = x5;
4694 Register scratch2 = x6; 4694 Register scratch2 = x6;
4695 DCHECK(instr->IsMarkedAsCall()); 4695 DCHECK(instr->IsMarkedAsCall());
4696 4696
4697 // TODO(all): if Mov could handle object in new space then it could be used 4697 // TODO(all): if Mov could handle object in new space then it could be used
4698 // here. 4698 // here.
4699 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); 4699 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs());
4700 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); 4700 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags()));
4701 __ Push(scratch1, scratch2); 4701 __ Push(scratch1, scratch2);
4702 __ LoadHeapObject(scratch1, instr->hydrogen()->feedback_vector());
4703 __ Push(scratch1);
4702 CallRuntime(Runtime::kDeclareGlobals, instr); 4704 CallRuntime(Runtime::kDeclareGlobals, instr);
4703 } 4705 }
4704 4706
4705 4707
4706 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { 4708 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) {
4707 PushSafepointRegistersScope scope(this); 4709 PushSafepointRegistersScope scope(this);
4708 LoadContextFromDeferred(instr->context()); 4710 LoadContextFromDeferred(instr->context());
4709 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); 4711 __ CallRuntimeSaveDoubles(Runtime::kStackGuard);
4710 RecordSafepointWithLazyDeopt( 4712 RecordSafepointWithLazyDeopt(
4711 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 4713 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
5729 // Index is equal to negated out of object property index plus 1. 5731 // Index is equal to negated out of object property index plus 1.
5730 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5732 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5731 __ Ldr(result, FieldMemOperand(result, 5733 __ Ldr(result, FieldMemOperand(result,
5732 FixedArray::kHeaderSize - kPointerSize)); 5734 FixedArray::kHeaderSize - kPointerSize));
5733 __ Bind(deferred->exit()); 5735 __ Bind(deferred->exit());
5734 __ Bind(&done); 5736 __ Bind(&done);
5735 } 5737 }
5736 5738
5737 } // namespace internal 5739 } // namespace internal
5738 } // namespace v8 5740 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698