| 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 3227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3238     __ ld(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3238     __ ld(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 
| 3239   } else { | 3239   } else { | 
| 3240     // If there is no frame, the context must be in cp. | 3240     // If there is no frame, the context must be in cp. | 
| 3241     DCHECK(result.is(cp)); | 3241     DCHECK(result.is(cp)); | 
| 3242   } | 3242   } | 
| 3243 } | 3243 } | 
| 3244 | 3244 | 
| 3245 | 3245 | 
| 3246 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3246 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 
| 3247   DCHECK(ToRegister(instr->context()).is(cp)); | 3247   DCHECK(ToRegister(instr->context()).is(cp)); | 
| 3248   __ li(scratch0(), instr->hydrogen()->pairs()); | 3248   __ li(scratch0(), instr->hydrogen()->declarations()); | 
| 3249   __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3249   __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 
| 3250   __ Push(scratch0(), scratch1()); | 3250   __ Push(scratch0(), scratch1()); | 
| 3251   __ li(scratch0(), instr->hydrogen()->feedback_vector()); | 3251   __ li(scratch0(), instr->hydrogen()->feedback_vector()); | 
| 3252   __ Push(scratch0()); | 3252   __ Push(scratch0()); | 
| 3253   CallRuntime(Runtime::kDeclareGlobals, instr); | 3253   CallRuntime(Runtime::kDeclareGlobals, instr); | 
| 3254 } | 3254 } | 
| 3255 | 3255 | 
| 3256 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3256 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 
| 3257                                  int formal_parameter_count, int arity, | 3257                                  int formal_parameter_count, int arity, | 
| 3258                                  bool is_tail_call, LInstruction* instr) { | 3258                                  bool is_tail_call, LInstruction* instr) { | 
| (...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5621   __ ld(result, FieldMemOperand(scratch, | 5621   __ ld(result, FieldMemOperand(scratch, | 
| 5622                                 FixedArray::kHeaderSize - kPointerSize)); | 5622                                 FixedArray::kHeaderSize - kPointerSize)); | 
| 5623   __ bind(deferred->exit()); | 5623   __ bind(deferred->exit()); | 
| 5624   __ bind(&done); | 5624   __ bind(&done); | 
| 5625 } | 5625 } | 
| 5626 | 5626 | 
| 5627 #undef __ | 5627 #undef __ | 
| 5628 | 5628 | 
| 5629 }  // namespace internal | 5629 }  // namespace internal | 
| 5630 }  // namespace v8 | 5630 }  // namespace v8 | 
| OLD | NEW | 
|---|