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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.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 3139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3150 // If there is no frame, the context must be in rsi. 3150 // If there is no frame, the context must be in rsi.
3151 DCHECK(result.is(rsi)); 3151 DCHECK(result.is(rsi));
3152 } 3152 }
3153 } 3153 }
3154 3154
3155 3155
3156 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3156 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3157 DCHECK(ToRegister(instr->context()).is(rsi)); 3157 DCHECK(ToRegister(instr->context()).is(rsi));
3158 __ Push(instr->hydrogen()->pairs()); 3158 __ Push(instr->hydrogen()->pairs());
3159 __ Push(Smi::FromInt(instr->hydrogen()->flags())); 3159 __ Push(Smi::FromInt(instr->hydrogen()->flags()));
3160 __ Push(instr->hydrogen()->feedback_vector());
3160 CallRuntime(Runtime::kDeclareGlobals, instr); 3161 CallRuntime(Runtime::kDeclareGlobals, instr);
3161 } 3162 }
3162 3163
3163 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3164 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3164 int formal_parameter_count, int arity, 3165 int formal_parameter_count, int arity,
3165 bool is_tail_call, LInstruction* instr) { 3166 bool is_tail_call, LInstruction* instr) {
3166 bool dont_adapt_arguments = 3167 bool dont_adapt_arguments =
3167 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3168 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3168 bool can_invoke_directly = 3169 bool can_invoke_directly =
3169 dont_adapt_arguments || formal_parameter_count == arity; 3170 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after
5585 __ bind(deferred->exit()); 5586 __ bind(deferred->exit());
5586 __ bind(&done); 5587 __ bind(&done);
5587 } 5588 }
5588 5589
5589 #undef __ 5590 #undef __
5590 5591
5591 } // namespace internal 5592 } // namespace internal
5592 } // namespace v8 5593 } // namespace v8
5593 5594
5594 #endif // V8_TARGET_ARCH_X64 5595 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698