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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.cc

Issue 2507143003: [ic] Pass globals' names to Runtime::kDeclareGlobals. (Closed)
Patch Set: Created 4 years, 1 month 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 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); 2862 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset));
2863 } else { 2863 } else {
2864 // If there is no frame, the context must be in esi. 2864 // If there is no frame, the context must be in esi.
2865 DCHECK(result.is(esi)); 2865 DCHECK(result.is(esi));
2866 } 2866 }
2867 } 2867 }
2868 2868
2869 2869
2870 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 2870 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
2871 DCHECK(ToRegister(instr->context()).is(esi)); 2871 DCHECK(ToRegister(instr->context()).is(esi));
2872 __ push(Immediate(instr->hydrogen()->pairs())); 2872 __ push(Immediate(instr->hydrogen()->declarations()));
2873 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); 2873 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags())));
2874 __ push(Immediate(instr->hydrogen()->feedback_vector())); 2874 __ push(Immediate(instr->hydrogen()->feedback_vector()));
2875 CallRuntime(Runtime::kDeclareGlobals, instr); 2875 CallRuntime(Runtime::kDeclareGlobals, instr);
2876 } 2876 }
2877 2877
2878 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 2878 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
2879 int formal_parameter_count, int arity, 2879 int formal_parameter_count, int arity,
2880 bool is_tail_call, LInstruction* instr) { 2880 bool is_tail_call, LInstruction* instr) {
2881 bool dont_adapt_arguments = 2881 bool dont_adapt_arguments =
2882 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 2882 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after
5148 __ bind(deferred->exit()); 5148 __ bind(deferred->exit());
5149 __ bind(&done); 5149 __ bind(&done);
5150 } 5150 }
5151 5151
5152 #undef __ 5152 #undef __
5153 5153
5154 } // namespace internal 5154 } // namespace internal
5155 } // namespace v8 5155 } // namespace v8
5156 5156
5157 #endif // V8_TARGET_ARCH_IA32 5157 #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