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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
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 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 DCHECK(result.is(cp)); 3319 DCHECK(result.is(cp));
3320 } 3320 }
3321 } 3321 }
3322 3322
3323 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3323 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3324 DCHECK(ToRegister(instr->context()).is(cp)); 3324 DCHECK(ToRegister(instr->context()).is(cp));
3325 __ Move(scratch0(), instr->hydrogen()->pairs()); 3325 __ Move(scratch0(), instr->hydrogen()->pairs());
3326 __ push(scratch0()); 3326 __ push(scratch0());
3327 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); 3327 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags()));
3328 __ push(scratch0()); 3328 __ push(scratch0());
3329 __ Move(scratch0(), instr->hydrogen()->feedback_vector());
3330 __ push(scratch0());
3329 CallRuntime(Runtime::kDeclareGlobals, instr); 3331 CallRuntime(Runtime::kDeclareGlobals, instr);
3330 } 3332 }
3331 3333
3332 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3334 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3333 int formal_parameter_count, int arity, 3335 int formal_parameter_count, int arity,
3334 bool is_tail_call, LInstruction* instr) { 3336 bool is_tail_call, LInstruction* instr) {
3335 bool dont_adapt_arguments = 3337 bool dont_adapt_arguments =
3336 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3338 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3337 bool can_invoke_directly = 3339 bool can_invoke_directly =
3338 dont_adapt_arguments || formal_parameter_count == arity; 3340 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
5684 __ LoadP(result, 5686 __ LoadP(result,
5685 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5687 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5686 __ bind(deferred->exit()); 5688 __ bind(deferred->exit());
5687 __ bind(&done); 5689 __ bind(&done);
5688 } 5690 }
5689 5691
5690 #undef __ 5692 #undef __
5691 5693
5692 } // namespace internal 5694 } // namespace internal
5693 } // namespace v8 5695 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698