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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3239 matching lines...) Expand 10 before | Expand all | Expand 10 after
3250 if (info()->IsOptimizing()) { 3250 if (info()->IsOptimizing()) {
3251 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3251 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3252 } else { 3252 } else {
3253 // If there is no frame, the context must be in cp. 3253 // If there is no frame, the context must be in cp.
3254 DCHECK(result.is(cp)); 3254 DCHECK(result.is(cp));
3255 } 3255 }
3256 } 3256 }
3257 3257
3258 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3258 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3259 DCHECK(ToRegister(instr->context()).is(cp)); 3259 DCHECK(ToRegister(instr->context()).is(cp));
3260 __ Move(scratch0(), instr->hydrogen()->pairs()); 3260 __ Move(scratch0(), instr->hydrogen()->declarations());
3261 __ push(scratch0()); 3261 __ push(scratch0());
3262 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); 3262 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags()));
3263 __ push(scratch0()); 3263 __ push(scratch0());
3264 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); 3264 __ Move(scratch0(), instr->hydrogen()->feedback_vector());
3265 __ push(scratch0()); 3265 __ push(scratch0());
3266 CallRuntime(Runtime::kDeclareGlobals, instr); 3266 CallRuntime(Runtime::kDeclareGlobals, instr);
3267 } 3267 }
3268 3268
3269 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3269 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3270 int formal_parameter_count, int arity, 3270 int formal_parameter_count, int arity,
(...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 __ LoadP(result, 5560 __ LoadP(result,
5561 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5561 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5562 __ bind(deferred->exit()); 5562 __ bind(deferred->exit());
5563 __ bind(&done); 5563 __ bind(&done);
5564 } 5564 }
5565 5565
5566 #undef __ 5566 #undef __
5567 5567
5568 } // namespace internal 5568 } // namespace internal
5569 } // namespace v8 5569 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698