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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 // If there is no frame, the context must be in esi. 3231 // If there is no frame, the context must be in esi.
3232 DCHECK(result.is(esi)); 3232 DCHECK(result.is(esi));
3233 } 3233 }
3234 } 3234 }
3235 3235
3236 3236
3237 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3237 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3238 DCHECK(ToRegister(instr->context()).is(esi)); 3238 DCHECK(ToRegister(instr->context()).is(esi));
3239 __ push(Immediate(instr->hydrogen()->pairs())); 3239 __ push(Immediate(instr->hydrogen()->pairs()));
3240 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); 3240 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags())));
3241 __ push(Immediate(instr->hydrogen()->feedback_vector()));
3241 CallRuntime(Runtime::kDeclareGlobals, instr); 3242 CallRuntime(Runtime::kDeclareGlobals, instr);
3242 } 3243 }
3243 3244
3244 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3245 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3245 int formal_parameter_count, int arity, 3246 int formal_parameter_count, int arity,
3246 bool is_tail_call, LInstruction* instr) { 3247 bool is_tail_call, LInstruction* instr) {
3247 bool dont_adapt_arguments = 3248 bool dont_adapt_arguments =
3248 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3249 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3249 bool can_invoke_directly = 3250 bool can_invoke_directly =
3250 dont_adapt_arguments || formal_parameter_count == arity; 3251 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after
5793 __ bind(deferred->exit()); 5794 __ bind(deferred->exit());
5794 __ bind(&done); 5795 __ bind(&done);
5795 } 5796 }
5796 5797
5797 #undef __ 5798 #undef __
5798 5799
5799 } // namespace internal 5800 } // namespace internal
5800 } // namespace v8 5801 } // namespace v8
5801 5802
5802 #endif // V8_TARGET_ARCH_X87 5803 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698