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

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

Issue 2060173002: [fullcodegen] Factor out VisitRegExpLiteral from architectures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.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 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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 : Runtime::kLoadLookupSlotInsideTypeof; 1351 : Runtime::kLoadLookupSlotInsideTypeof;
1352 __ CallRuntime(function_id); 1352 __ CallRuntime(function_id);
1353 __ Bind(&done); 1353 __ Bind(&done);
1354 context()->Plug(x0); 1354 context()->Plug(x0);
1355 break; 1355 break;
1356 } 1356 }
1357 } 1357 }
1358 } 1358 }
1359 1359
1360 1360
1361 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1362 Comment cmnt(masm_, "[ RegExpLiteral");
1363 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1364 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1365 __ Mov(x1, Operand(expr->pattern()));
1366 __ Mov(x0, Smi::FromInt(expr->flags()));
1367 FastCloneRegExpStub stub(isolate());
1368 __ CallStub(&stub);
1369 context()->Plug(x0);
1370 }
1371
1372
1373 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1361 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1374 Expression* expression = (property == NULL) ? NULL : property->value(); 1362 Expression* expression = (property == NULL) ? NULL : property->value();
1375 if (expression == NULL) { 1363 if (expression == NULL) {
1376 __ LoadRoot(x10, Heap::kNullValueRootIndex); 1364 __ LoadRoot(x10, Heap::kNullValueRootIndex);
1377 PushOperand(x10); 1365 PushOperand(x10);
1378 } else { 1366 } else {
1379 VisitForStackValue(expression); 1367 VisitForStackValue(expression);
1380 if (NeedsHomeObject(expression)) { 1368 if (NeedsHomeObject(expression)) {
1381 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || 1369 DCHECK(property->kind() == ObjectLiteral::Property::GETTER ||
1382 property->kind() == ObjectLiteral::Property::SETTER); 1370 property->kind() == ObjectLiteral::Property::SETTER);
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after
3883 } 3871 }
3884 3872
3885 return INTERRUPT; 3873 return INTERRUPT;
3886 } 3874 }
3887 3875
3888 3876
3889 } // namespace internal 3877 } // namespace internal
3890 } // namespace v8 3878 } // namespace v8
3891 3879
3892 #endif // V8_TARGET_ARCH_ARM64 3880 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698