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 3107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3118 __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3118 __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
3119 } else { | 3119 } else { |
3120 // If there is no frame, the context must be in cp. | 3120 // If there is no frame, the context must be in cp. |
3121 DCHECK(result.is(cp)); | 3121 DCHECK(result.is(cp)); |
3122 } | 3122 } |
3123 } | 3123 } |
3124 | 3124 |
3125 | 3125 |
3126 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3126 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3127 DCHECK(ToRegister(instr->context()).is(cp)); | 3127 DCHECK(ToRegister(instr->context()).is(cp)); |
3128 __ Move(scratch0(), instr->hydrogen()->pairs()); | 3128 __ Move(scratch0(), instr->hydrogen()->declarations()); |
3129 __ push(scratch0()); | 3129 __ push(scratch0()); |
3130 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3130 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
3131 __ push(scratch0()); | 3131 __ push(scratch0()); |
3132 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); | 3132 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); |
3133 __ push(scratch0()); | 3133 __ push(scratch0()); |
3134 CallRuntime(Runtime::kDeclareGlobals, instr); | 3134 CallRuntime(Runtime::kDeclareGlobals, instr); |
3135 } | 3135 } |
3136 | 3136 |
3137 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3137 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3138 int formal_parameter_count, int arity, | 3138 int formal_parameter_count, int arity, |
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5382 __ ldr(result, FieldMemOperand(scratch, | 5382 __ ldr(result, FieldMemOperand(scratch, |
5383 FixedArray::kHeaderSize - kPointerSize)); | 5383 FixedArray::kHeaderSize - kPointerSize)); |
5384 __ bind(deferred->exit()); | 5384 __ bind(deferred->exit()); |
5385 __ bind(&done); | 5385 __ bind(&done); |
5386 } | 5386 } |
5387 | 5387 |
5388 #undef __ | 5388 #undef __ |
5389 | 5389 |
5390 } // namespace internal | 5390 } // namespace internal |
5391 } // namespace v8 | 5391 } // namespace v8 |
OLD | NEW |