| 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 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3300 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3300 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 3301 } else { | 3301 } else { |
| 3302 // If there is no frame, the context must be in cp. | 3302 // If there is no frame, the context must be in cp. |
| 3303 DCHECK(result.is(cp)); | 3303 DCHECK(result.is(cp)); |
| 3304 } | 3304 } |
| 3305 } | 3305 } |
| 3306 | 3306 |
| 3307 | 3307 |
| 3308 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3308 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 3309 DCHECK(ToRegister(instr->context()).is(cp)); | 3309 DCHECK(ToRegister(instr->context()).is(cp)); |
| 3310 __ Move(scratch0(), instr->hydrogen()->pairs()); | 3310 __ Move(scratch0(), instr->hydrogen()->declarations()); |
| 3311 __ push(scratch0()); | 3311 __ push(scratch0()); |
| 3312 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); | 3312 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); |
| 3313 __ push(scratch0()); | 3313 __ push(scratch0()); |
| 3314 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); | 3314 __ Move(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3315 __ push(scratch0()); | 3315 __ push(scratch0()); |
| 3316 CallRuntime(Runtime::kDeclareGlobals, instr); | 3316 CallRuntime(Runtime::kDeclareGlobals, instr); |
| 3317 } | 3317 } |
| 3318 | 3318 |
| 3319 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3319 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 3320 int formal_parameter_count, int arity, | 3320 int formal_parameter_count, int arity, |
| (...skipping 2331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5652 __ LoadP(result, | 5652 __ LoadP(result, |
| 5653 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5653 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5654 __ bind(deferred->exit()); | 5654 __ bind(deferred->exit()); |
| 5655 __ bind(&done); | 5655 __ bind(&done); |
| 5656 } | 5656 } |
| 5657 | 5657 |
| 5658 #undef __ | 5658 #undef __ |
| 5659 | 5659 |
| 5660 } // namespace internal | 5660 } // namespace internal |
| 5661 } // namespace v8 | 5661 } // namespace v8 |
| OLD | NEW |