| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| 11 #include "src/ic/handler-compiler.h" | 11 #include "src/ic/handler-compiler.h" |
| 12 #include "src/ic/ic.h" | 12 #include "src/ic/ic.h" |
| 13 #include "src/ic/stub-cache.h" | 13 #include "src/ic/stub-cache.h" |
| 14 #include "src/isolate.h" | 14 #include "src/isolate.h" |
| 15 #include "src/mips64/code-stubs-mips64.h" | 15 #include "src/mips64/code-stubs-mips64.h" |
| 16 #include "src/regexp/jsregexp.h" | 16 #include "src/regexp/jsregexp.h" |
| 17 #include "src/regexp/regexp-macro-assembler.h" | 17 #include "src/regexp/regexp-macro-assembler.h" |
| 18 #include "src/runtime/runtime.h" | 18 #include "src/runtime/runtime.h" |
| 19 | 19 |
| 20 namespace v8 { | 20 namespace v8 { |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 #define __ ACCESS_MASM(masm) | 23 #define __ ACCESS_MASM(masm) |
| 24 | 24 |
| 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { | 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { |
| 26 __ dsll(t9, a0, kPointerSizeLog2); | 26 __ dsll(t9, a0, kPointerSizeLog2); |
| 27 __ Daddu(t9, sp, t9); | 27 __ Daddu(t9, sp, t9); |
| 28 __ sw(a1, MemOperand(t9, 0)); | 28 __ sd(a1, MemOperand(t9, 0)); |
| 29 __ Push(a1); | 29 __ Push(a1); |
| 30 __ Push(a2); | 30 __ Push(a2); |
| 31 __ Daddu(a0, a0, 3); | 31 __ Daddu(a0, a0, 3); |
| 32 __ TailCallRuntime(Runtime::kNewArray); | 32 __ TailCallRuntime(Runtime::kNewArray); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 35 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 36 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; | 36 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; |
| 37 descriptor->Initialize(a0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | 37 descriptor->Initialize(a0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); |
| 38 } | 38 } |
| (...skipping 5541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5580 kStackUnwindSpace, kInvalidStackOffset, | 5580 kStackUnwindSpace, kInvalidStackOffset, |
| 5581 return_value_operand, NULL); | 5581 return_value_operand, NULL); |
| 5582 } | 5582 } |
| 5583 | 5583 |
| 5584 #undef __ | 5584 #undef __ |
| 5585 | 5585 |
| 5586 } // namespace internal | 5586 } // namespace internal |
| 5587 } // namespace v8 | 5587 } // namespace v8 |
| 5588 | 5588 |
| 5589 #endif // V8_TARGET_ARCH_MIPS64 | 5589 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |