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 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3319 DCHECK(result.is(cp)); | 3319 DCHECK(result.is(cp)); |
3320 } | 3320 } |
3321 } | 3321 } |
3322 | 3322 |
3323 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3323 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3324 DCHECK(ToRegister(instr->context()).is(cp)); | 3324 DCHECK(ToRegister(instr->context()).is(cp)); |
3325 __ Move(scratch0(), instr->hydrogen()->pairs()); | 3325 __ Move(scratch0(), instr->hydrogen()->pairs()); |
3326 __ push(scratch0()); | 3326 __ push(scratch0()); |
3327 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); | 3327 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); |
3328 __ push(scratch0()); | 3328 __ push(scratch0()); |
| 3329 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3330 __ push(scratch0()); |
3329 CallRuntime(Runtime::kDeclareGlobals, instr); | 3331 CallRuntime(Runtime::kDeclareGlobals, instr); |
3330 } | 3332 } |
3331 | 3333 |
3332 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3334 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3333 int formal_parameter_count, int arity, | 3335 int formal_parameter_count, int arity, |
3334 bool is_tail_call, LInstruction* instr) { | 3336 bool is_tail_call, LInstruction* instr) { |
3335 bool dont_adapt_arguments = | 3337 bool dont_adapt_arguments = |
3336 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3338 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3337 bool can_invoke_directly = | 3339 bool can_invoke_directly = |
3338 dont_adapt_arguments || formal_parameter_count == arity; | 3340 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5684 __ LoadP(result, | 5686 __ LoadP(result, |
5685 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5687 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5686 __ bind(deferred->exit()); | 5688 __ bind(deferred->exit()); |
5687 __ bind(&done); | 5689 __ bind(&done); |
5688 } | 5690 } |
5689 | 5691 |
5690 #undef __ | 5692 #undef __ |
5691 | 5693 |
5692 } // namespace internal | 5694 } // namespace internal |
5693 } // namespace v8 | 5695 } // namespace v8 |
OLD | NEW |