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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 1524673002: [fullcodegen] Add support for %_GetSuperConstructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3740 matching lines...) Expand 10 before | Expand all | Expand 10 after
3751 3751
3752 __ AssertString(v0); 3752 __ AssertString(v0);
3753 3753
3754 __ lwu(v0, FieldMemOperand(v0, String::kHashFieldOffset)); 3754 __ lwu(v0, FieldMemOperand(v0, String::kHashFieldOffset));
3755 __ IndexFromHash(v0, v0); 3755 __ IndexFromHash(v0, v0);
3756 3756
3757 context()->Plug(v0); 3757 context()->Plug(v0);
3758 } 3758 }
3759 3759
3760 3760
3761 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3762 ZoneList<Expression*>* args = expr->arguments();
3763 DCHECK_EQ(1, args->length());
3764 VisitForAccumulatorValue(args->at(0));
3765 __ AssertFunction(v0);
3766 __ ld(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
3767 __ ld(v0, FieldMemOperand(v0, Map::kPrototypeOffset));
3768 context()->Plug(v0);
3769 }
3770
3771
3761 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { 3772 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) {
3762 Label bailout, done, one_char_separator, long_separator, 3773 Label bailout, done, one_char_separator, long_separator,
3763 non_trivial_array, not_size_one_array, loop, 3774 non_trivial_array, not_size_one_array, loop,
3764 empty_separator_loop, one_char_separator_loop, 3775 empty_separator_loop, one_char_separator_loop,
3765 one_char_separator_loop_entry, long_separator_loop; 3776 one_char_separator_loop_entry, long_separator_loop;
3766 ZoneList<Expression*>* args = expr->arguments(); 3777 ZoneList<Expression*>* args = expr->arguments();
3767 DCHECK(args->length() == 2); 3778 DCHECK(args->length() == 2);
3768 VisitForStackValue(args->at(1)); 3779 VisitForStackValue(args->at(1));
3769 VisitForAccumulatorValue(args->at(0)); 3780 VisitForAccumulatorValue(args->at(0));
3770 3781
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
4850 reinterpret_cast<uint64_t>( 4861 reinterpret_cast<uint64_t>(
4851 isolate->builtins()->OsrAfterStackCheck()->entry())); 4862 isolate->builtins()->OsrAfterStackCheck()->entry()));
4852 return OSR_AFTER_STACK_CHECK; 4863 return OSR_AFTER_STACK_CHECK;
4853 } 4864 }
4854 4865
4855 4866
4856 } // namespace internal 4867 } // namespace internal
4857 } // namespace v8 4868 } // namespace v8
4858 4869
4859 #endif // V8_TARGET_ARCH_MIPS64 4870 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698