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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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/hydrogen-instructions.h ('k') | src/crankshaft/mips/lithium-codegen-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 // If there is no frame, the context must be in esi. 2955 // If there is no frame, the context must be in esi.
2956 DCHECK(result.is(esi)); 2956 DCHECK(result.is(esi));
2957 } 2957 }
2958 } 2958 }
2959 2959
2960 2960
2961 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 2961 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
2962 DCHECK(ToRegister(instr->context()).is(esi)); 2962 DCHECK(ToRegister(instr->context()).is(esi));
2963 __ push(Immediate(instr->hydrogen()->pairs())); 2963 __ push(Immediate(instr->hydrogen()->pairs()));
2964 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); 2964 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags())));
2965 __ push(Immediate(instr->hydrogen()->feedback_vector()));
2965 CallRuntime(Runtime::kDeclareGlobals, instr); 2966 CallRuntime(Runtime::kDeclareGlobals, instr);
2966 } 2967 }
2967 2968
2968 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 2969 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
2969 int formal_parameter_count, int arity, 2970 int formal_parameter_count, int arity,
2970 bool is_tail_call, LInstruction* instr) { 2971 bool is_tail_call, LInstruction* instr) {
2971 bool dont_adapt_arguments = 2972 bool dont_adapt_arguments =
2972 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 2973 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
2973 bool can_invoke_directly = 2974 bool can_invoke_directly =
2974 dont_adapt_arguments || formal_parameter_count == arity; 2975 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
5307 __ bind(deferred->exit()); 5308 __ bind(deferred->exit());
5308 __ bind(&done); 5309 __ bind(&done);
5309 } 5310 }
5310 5311
5311 #undef __ 5312 #undef __
5312 5313
5313 } // namespace internal 5314 } // namespace internal
5314 } // namespace v8 5315 } // namespace v8
5315 5316
5316 #endif // V8_TARGET_ARCH_IA32 5317 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698