Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 871693002: MIPS: new classes: change semantics of super(...) call and add new.target to construct stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed nits. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 __ ld(a5, FieldMemOperand(a2, AllocationSite::kMapOffset)); 2732 __ ld(a5, FieldMemOperand(a2, AllocationSite::kMapOffset));
2733 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); 2733 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex);
2734 __ Branch(&feedback_register_initialized, eq, a5, Operand(at)); 2734 __ Branch(&feedback_register_initialized, eq, a5, Operand(at));
2735 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 2735 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
2736 __ bind(&feedback_register_initialized); 2736 __ bind(&feedback_register_initialized);
2737 } 2737 }
2738 2738
2739 __ AssertUndefinedOrAllocationSite(a2, a5); 2739 __ AssertUndefinedOrAllocationSite(a2, a5);
2740 } 2740 }
2741 2741
2742 // Pass function as original constructor.
2743 __ mov(a3, a1);
2744
2742 // Jump to the function-specific construct stub. 2745 // Jump to the function-specific construct stub.
2743 Register jmp_reg = a4; 2746 Register jmp_reg = a4;
2744 __ ld(jmp_reg, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 2747 __ ld(jmp_reg, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
2745 __ ld(jmp_reg, FieldMemOperand(jmp_reg, 2748 __ ld(jmp_reg, FieldMemOperand(jmp_reg,
2746 SharedFunctionInfo::kConstructStubOffset)); 2749 SharedFunctionInfo::kConstructStubOffset));
2747 __ Daddu(at, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); 2750 __ Daddu(at, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag));
2748 __ Jump(at); 2751 __ Jump(at);
2749 2752
2750 // a0: number of arguments 2753 // a0: number of arguments
2751 // a1: called object 2754 // a1: called object
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after
5179 kStackUnwindSpace, NULL, 5182 kStackUnwindSpace, NULL,
5180 MemOperand(fp, 6 * kPointerSize), NULL); 5183 MemOperand(fp, 6 * kPointerSize), NULL);
5181 } 5184 }
5182 5185
5183 5186
5184 #undef __ 5187 #undef __
5185 5188
5186 } } // namespace v8::internal 5189 } } // namespace v8::internal
5187 5190
5188 #endif // V8_TARGET_ARCH_MIPS64 5191 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698