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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.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/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 } 3382 }
3383 } 3383 }
3384 3384
3385 3385
3386 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3386 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3387 DCHECK(ToRegister(instr->context()).is(cp)); 3387 DCHECK(ToRegister(instr->context()).is(cp));
3388 __ Move(scratch0(), instr->hydrogen()->pairs()); 3388 __ Move(scratch0(), instr->hydrogen()->pairs());
3389 __ push(scratch0()); 3389 __ push(scratch0());
3390 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); 3390 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags()));
3391 __ push(scratch0()); 3391 __ push(scratch0());
3392 __ Move(scratch0(), instr->hydrogen()->feedback_vector());
3393 __ push(scratch0());
3392 CallRuntime(Runtime::kDeclareGlobals, instr); 3394 CallRuntime(Runtime::kDeclareGlobals, instr);
3393 } 3395 }
3394 3396
3395 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3397 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3396 int formal_parameter_count, int arity, 3398 int formal_parameter_count, int arity,
3397 bool is_tail_call, LInstruction* instr) { 3399 bool is_tail_call, LInstruction* instr) {
3398 bool dont_adapt_arguments = 3400 bool dont_adapt_arguments =
3399 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3401 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3400 bool can_invoke_directly = 3402 bool can_invoke_directly =
3401 dont_adapt_arguments || formal_parameter_count == arity; 3403 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
5799 __ LoadP(result, 5801 __ LoadP(result,
5800 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5802 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5801 __ bind(deferred->exit()); 5803 __ bind(deferred->exit());
5802 __ bind(&done); 5804 __ bind(&done);
5803 } 5805 }
5804 5806
5805 #undef __ 5807 #undef __
5806 5808
5807 } // namespace internal 5809 } // namespace internal
5808 } // namespace v8 5810 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698