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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 DCHECK(result.is(cp)); 3122 DCHECK(result.is(cp));
3123 } 3123 }
3124 } 3124 }
3125 3125
3126 3126
3127 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3127 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3128 DCHECK(ToRegister(instr->context()).is(cp)); 3128 DCHECK(ToRegister(instr->context()).is(cp));
3129 __ li(scratch0(), instr->hydrogen()->pairs()); 3129 __ li(scratch0(), instr->hydrogen()->pairs());
3130 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3130 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3131 __ Push(scratch0(), scratch1()); 3131 __ Push(scratch0(), scratch1());
3132 __ li(scratch0(), instr->hydrogen()->feedback_vector());
3133 __ Push(scratch0());
3132 CallRuntime(Runtime::kDeclareGlobals, instr); 3134 CallRuntime(Runtime::kDeclareGlobals, instr);
3133 } 3135 }
3134 3136
3135 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3137 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3136 int formal_parameter_count, int arity, 3138 int formal_parameter_count, int arity,
3137 bool is_tail_call, LInstruction* instr) { 3139 bool is_tail_call, LInstruction* instr) {
3138 bool dont_adapt_arguments = 3140 bool dont_adapt_arguments =
3139 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3141 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3140 bool can_invoke_directly = 3142 bool can_invoke_directly =
3141 dont_adapt_arguments || formal_parameter_count == arity; 3143 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
5541 __ lw(result, FieldMemOperand(scratch, 5543 __ lw(result, FieldMemOperand(scratch,
5542 FixedArray::kHeaderSize - kPointerSize)); 5544 FixedArray::kHeaderSize - kPointerSize));
5543 __ bind(deferred->exit()); 5545 __ bind(deferred->exit());
5544 __ bind(&done); 5546 __ bind(&done);
5545 } 5547 }
5546 5548
5547 #undef __ 5549 #undef __
5548 5550
5549 } // namespace internal 5551 } // namespace internal
5550 } // namespace v8 5552 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698