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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2664 { | 2664 { |
2665 __ Branch(&non_function_call, ne, t1, Operand(JS_FUNCTION_PROXY_TYPE)); | 2665 __ Branch(&non_function_call, ne, t1, Operand(JS_FUNCTION_PROXY_TYPE)); |
2666 // TODO(neis): This doesn't match the ES6 spec for [[Construct]] on proxies. | 2666 // TODO(neis): This doesn't match the ES6 spec for [[Construct]] on proxies. |
2667 __ lw(a1, FieldMemOperand(a1, JSFunctionProxy::kConstructTrapOffset)); | 2667 __ lw(a1, FieldMemOperand(a1, JSFunctionProxy::kConstructTrapOffset)); |
2668 __ Jump(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 2668 __ Jump(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
2669 | 2669 |
2670 __ bind(&non_function_call); | 2670 __ bind(&non_function_call); |
2671 { | 2671 { |
2672 // Determine the delegate for the target (if any). | 2672 // Determine the delegate for the target (if any). |
2673 FrameScope scope(masm, StackFrame::INTERNAL); | 2673 FrameScope scope(masm, StackFrame::INTERNAL); |
2674 __ sll(a0, a0, kSmiTagSize); // Smi tagged. | 2674 __ SmiTag(a0); |
2675 __ Push(a0, a1); | 2675 __ Push(a0, a1); |
2676 __ CallRuntime(Runtime::kGetConstructorDelegate, 1); | 2676 __ CallRuntime(Runtime::kGetConstructorDelegate, 1); |
2677 __ mov(a1, v0); | 2677 __ mov(a1, v0); |
2678 __ Pop(a0); | 2678 __ Pop(a0); |
2679 __ sra(a0, a0, kSmiTagSize); // Un-tag. | 2679 __ SmiUntag(a0); |
2680 } | 2680 } |
2681 // The delegate is always a regular function. | 2681 // The delegate is always a regular function. |
2682 __ AssertFunction(a1); | 2682 __ AssertFunction(a1); |
2683 __ Jump(masm->isolate()->builtins()->CallFunction(), | 2683 __ Jump(masm->isolate()->builtins()->CallFunction(), |
2684 RelocInfo::CODE_TARGET); | 2684 RelocInfo::CODE_TARGET); |
2685 } | 2685 } |
2686 } | 2686 } |
2687 | 2687 |
2688 | 2688 |
2689 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 2689 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
(...skipping 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5755 MemOperand(fp, 6 * kPointerSize), NULL); | 5755 MemOperand(fp, 6 * kPointerSize), NULL); |
5756 } | 5756 } |
5757 | 5757 |
5758 | 5758 |
5759 #undef __ | 5759 #undef __ |
5760 | 5760 |
5761 } // namespace internal | 5761 } // namespace internal |
5762 } // namespace v8 | 5762 } // namespace v8 |
5763 | 5763 |
5764 #endif // V8_TARGET_ARCH_MIPS | 5764 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |