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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 3205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3216 } | 3216 } |
3217 } | 3217 } |
3218 | 3218 |
3219 | 3219 |
3220 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3220 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3221 DCHECK(ToRegister(instr->context()).is(cp)); | 3221 DCHECK(ToRegister(instr->context()).is(cp)); |
3222 __ Move(scratch0(), instr->hydrogen()->pairs()); | 3222 __ Move(scratch0(), instr->hydrogen()->pairs()); |
3223 __ push(scratch0()); | 3223 __ push(scratch0()); |
3224 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3224 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
3225 __ push(scratch0()); | 3225 __ push(scratch0()); |
| 3226 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3227 __ push(scratch0()); |
3226 CallRuntime(Runtime::kDeclareGlobals, instr); | 3228 CallRuntime(Runtime::kDeclareGlobals, instr); |
3227 } | 3229 } |
3228 | 3230 |
3229 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3231 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3230 int formal_parameter_count, int arity, | 3232 int formal_parameter_count, int arity, |
3231 bool is_tail_call, LInstruction* instr) { | 3233 bool is_tail_call, LInstruction* instr) { |
3232 bool dont_adapt_arguments = | 3234 bool dont_adapt_arguments = |
3233 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3235 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3234 bool can_invoke_directly = | 3236 bool can_invoke_directly = |
3235 dont_adapt_arguments || formal_parameter_count == arity; | 3237 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5543 __ ldr(result, FieldMemOperand(scratch, | 5545 __ ldr(result, FieldMemOperand(scratch, |
5544 FixedArray::kHeaderSize - kPointerSize)); | 5546 FixedArray::kHeaderSize - kPointerSize)); |
5545 __ bind(deferred->exit()); | 5547 __ bind(deferred->exit()); |
5546 __ bind(&done); | 5548 __ bind(&done); |
5547 } | 5549 } |
5548 | 5550 |
5549 #undef __ | 5551 #undef __ |
5550 | 5552 |
5551 } // namespace internal | 5553 } // namespace internal |
5552 } // namespace v8 | 5554 } // namespace v8 |
OLD | NEW |