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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after
3447 3447
3448 __ AssertString(x0); 3448 __ AssertString(x0);
3449 3449
3450 __ Ldr(x10, FieldMemOperand(x0, String::kHashFieldOffset)); 3450 __ Ldr(x10, FieldMemOperand(x0, String::kHashFieldOffset));
3451 __ IndexFromHash(x10, x0); 3451 __ IndexFromHash(x10, x0);
3452 3452
3453 context()->Plug(x0); 3453 context()->Plug(x0);
3454 } 3454 }
3455 3455
3456 3456
3457 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3458 ZoneList<Expression*>* args = expr->arguments();
3459 DCHECK_EQ(1, args->length());
3460 VisitForAccumulatorValue(args->at(0));
3461 __ AssertFunction(x0);
3462 __ Ldr(x0, FieldMemOperand(x0, HeapObject::kMapOffset));
3463 __ Ldr(x0, FieldMemOperand(x0, Map::kPrototypeOffset));
3464 context()->Plug(x0);
3465 }
3466
3467
3457 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { 3468 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) {
3458 ASM_LOCATION("FullCodeGenerator::EmitFastOneByteArrayJoin"); 3469 ASM_LOCATION("FullCodeGenerator::EmitFastOneByteArrayJoin");
3459 3470
3460 ZoneList<Expression*>* args = expr->arguments(); 3471 ZoneList<Expression*>* args = expr->arguments();
3461 DCHECK(args->length() == 2); 3472 DCHECK(args->length() == 2);
3462 VisitForStackValue(args->at(1)); 3473 VisitForStackValue(args->at(1));
3463 VisitForAccumulatorValue(args->at(0)); 3474 VisitForAccumulatorValue(args->at(0));
3464 3475
3465 Register array = x0; 3476 Register array = x0;
3466 Register result = x0; 3477 Register result = x0;
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
4863 } 4874 }
4864 4875
4865 return INTERRUPT; 4876 return INTERRUPT;
4866 } 4877 }
4867 4878
4868 4879
4869 } // namespace internal 4880 } // namespace internal
4870 } // namespace v8 4881 } // namespace v8
4871 4882
4872 #endif // V8_TARGET_ARCH_ARM64 4883 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698