OLD | NEW |
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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3306 DCHECK(result.is(cp)); | 3306 DCHECK(result.is(cp)); |
3307 } | 3307 } |
3308 } | 3308 } |
3309 | 3309 |
3310 | 3310 |
3311 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3311 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3312 DCHECK(ToRegister(instr->context()).is(cp)); | 3312 DCHECK(ToRegister(instr->context()).is(cp)); |
3313 __ li(scratch0(), instr->hydrogen()->pairs()); | 3313 __ li(scratch0(), instr->hydrogen()->pairs()); |
3314 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3314 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
3315 __ Push(scratch0(), scratch1()); | 3315 __ Push(scratch0(), scratch1()); |
| 3316 __ li(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3317 __ Push(scratch0()); |
3316 CallRuntime(Runtime::kDeclareGlobals, instr); | 3318 CallRuntime(Runtime::kDeclareGlobals, instr); |
3317 } | 3319 } |
3318 | 3320 |
3319 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3321 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3320 int formal_parameter_count, int arity, | 3322 int formal_parameter_count, int arity, |
3321 bool is_tail_call, LInstruction* instr) { | 3323 bool is_tail_call, LInstruction* instr) { |
3322 bool dont_adapt_arguments = | 3324 bool dont_adapt_arguments = |
3323 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3325 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3324 bool can_invoke_directly = | 3326 bool can_invoke_directly = |
3325 dont_adapt_arguments || formal_parameter_count == arity; | 3327 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5745 __ ld(result, FieldMemOperand(scratch, | 5747 __ ld(result, FieldMemOperand(scratch, |
5746 FixedArray::kHeaderSize - kPointerSize)); | 5748 FixedArray::kHeaderSize - kPointerSize)); |
5747 __ bind(deferred->exit()); | 5749 __ bind(deferred->exit()); |
5748 __ bind(&done); | 5750 __ bind(&done); |
5749 } | 5751 } |
5750 | 5752 |
5751 #undef __ | 5753 #undef __ |
5752 | 5754 |
5753 } // namespace internal | 5755 } // namespace internal |
5754 } // namespace v8 | 5756 } // namespace v8 |
OLD | NEW |