OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |