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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after
3306 DCHECK(result.is(cp)); 3306 DCHECK(result.is(cp));
3307 } 3307 }
3308 } 3308 }
3309 3309
3310 3310
3311 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3311 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3312 DCHECK(ToRegister(instr->context()).is(cp)); 3312 DCHECK(ToRegister(instr->context()).is(cp));
3313 __ li(scratch0(), instr->hydrogen()->pairs()); 3313 __ li(scratch0(), instr->hydrogen()->pairs());
3314 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3314 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3315 __ Push(scratch0(), scratch1()); 3315 __ Push(scratch0(), scratch1());
3316 __ li(scratch0(), instr->hydrogen()->feedback_vector());
3317 __ Push(scratch0());
3316 CallRuntime(Runtime::kDeclareGlobals, instr); 3318 CallRuntime(Runtime::kDeclareGlobals, instr);
3317 } 3319 }
3318 3320
3319 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3321 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3320 int formal_parameter_count, int arity, 3322 int formal_parameter_count, int arity,
3321 bool is_tail_call, LInstruction* instr) { 3323 bool is_tail_call, LInstruction* instr) {
3322 bool dont_adapt_arguments = 3324 bool dont_adapt_arguments =
3323 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3325 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3324 bool can_invoke_directly = 3326 bool can_invoke_directly =
3325 dont_adapt_arguments || formal_parameter_count == arity; 3327 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after
5745 __ ld(result, FieldMemOperand(scratch, 5747 __ ld(result, FieldMemOperand(scratch,
5746 FixedArray::kHeaderSize - kPointerSize)); 5748 FixedArray::kHeaderSize - kPointerSize));
5747 __ bind(deferred->exit()); 5749 __ bind(deferred->exit());
5748 __ bind(&done); 5750 __ bind(&done);
5749 } 5751 }
5750 5752
5751 #undef __ 5753 #undef __
5752 5754
5753 } // namespace internal 5755 } // namespace internal
5754 } // namespace v8 5756 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698