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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/compiler/ast-graph-builder.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 3205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3216 } 3216 }
3217 } 3217 }
3218 3218
3219 3219
3220 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3220 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3221 DCHECK(ToRegister(instr->context()).is(cp)); 3221 DCHECK(ToRegister(instr->context()).is(cp));
3222 __ Move(scratch0(), instr->hydrogen()->pairs()); 3222 __ Move(scratch0(), instr->hydrogen()->pairs());
3223 __ push(scratch0()); 3223 __ push(scratch0());
3224 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3224 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3225 __ push(scratch0()); 3225 __ push(scratch0());
3226 __ Move(scratch0(), instr->hydrogen()->feedback_vector());
3227 __ push(scratch0());
3226 CallRuntime(Runtime::kDeclareGlobals, instr); 3228 CallRuntime(Runtime::kDeclareGlobals, instr);
3227 } 3229 }
3228 3230
3229 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3231 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3230 int formal_parameter_count, int arity, 3232 int formal_parameter_count, int arity,
3231 bool is_tail_call, LInstruction* instr) { 3233 bool is_tail_call, LInstruction* instr) {
3232 bool dont_adapt_arguments = 3234 bool dont_adapt_arguments =
3233 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3235 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3234 bool can_invoke_directly = 3236 bool can_invoke_directly =
3235 dont_adapt_arguments || formal_parameter_count == arity; 3237 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
5543 __ ldr(result, FieldMemOperand(scratch, 5545 __ ldr(result, FieldMemOperand(scratch,
5544 FixedArray::kHeaderSize - kPointerSize)); 5546 FixedArray::kHeaderSize - kPointerSize));
5545 __ bind(deferred->exit()); 5547 __ bind(deferred->exit());
5546 __ bind(&done); 5548 __ bind(&done);
5547 } 5549 }
5548 5550
5549 #undef __ 5551 #undef __
5550 5552
5551 } // namespace internal 5553 } // namespace internal
5552 } // namespace v8 5554 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698