OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3382 } | 3382 } |
3383 } | 3383 } |
3384 | 3384 |
3385 | 3385 |
3386 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3386 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3387 DCHECK(ToRegister(instr->context()).is(cp)); | 3387 DCHECK(ToRegister(instr->context()).is(cp)); |
3388 __ Move(scratch0(), instr->hydrogen()->pairs()); | 3388 __ Move(scratch0(), instr->hydrogen()->pairs()); |
3389 __ push(scratch0()); | 3389 __ push(scratch0()); |
3390 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); | 3390 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); |
3391 __ push(scratch0()); | 3391 __ push(scratch0()); |
| 3392 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3393 __ push(scratch0()); |
3392 CallRuntime(Runtime::kDeclareGlobals, instr); | 3394 CallRuntime(Runtime::kDeclareGlobals, instr); |
3393 } | 3395 } |
3394 | 3396 |
3395 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3397 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3396 int formal_parameter_count, int arity, | 3398 int formal_parameter_count, int arity, |
3397 bool is_tail_call, LInstruction* instr) { | 3399 bool is_tail_call, LInstruction* instr) { |
3398 bool dont_adapt_arguments = | 3400 bool dont_adapt_arguments = |
3399 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3401 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3400 bool can_invoke_directly = | 3402 bool can_invoke_directly = |
3401 dont_adapt_arguments || formal_parameter_count == arity; | 3403 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5799 __ LoadP(result, | 5801 __ LoadP(result, |
5800 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5802 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5801 __ bind(deferred->exit()); | 5803 __ bind(deferred->exit()); |
5802 __ bind(&done); | 5804 __ bind(&done); |
5803 } | 5805 } |
5804 | 5806 |
5805 #undef __ | 5807 #undef __ |
5806 | 5808 |
5807 } // namespace internal | 5809 } // namespace internal |
5808 } // namespace v8 | 5810 } // namespace v8 |
OLD | NEW |