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

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

Issue 1472323002: [es6] Correct parsing of regular expression literal flags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix oversight in interpreter 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/ia32/full-codegen-ia32.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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 } 1446 }
1447 } 1447 }
1448 } 1448 }
1449 1449
1450 1450
1451 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 1451 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1452 Comment cmnt(masm_, "[ RegExpLiteral"); 1452 Comment cmnt(masm_, "[ RegExpLiteral");
1453 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1453 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1454 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1454 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1455 __ Mov(x1, Operand(expr->pattern())); 1455 __ Mov(x1, Operand(expr->pattern()));
1456 __ Mov(x0, Operand(expr->flags())); 1456 __ Mov(x0, Smi::FromInt(expr->flags()));
1457 FastCloneRegExpStub stub(isolate()); 1457 FastCloneRegExpStub stub(isolate());
1458 __ CallStub(&stub); 1458 __ CallStub(&stub);
1459 context()->Plug(x0); 1459 context()->Plug(x0);
1460 } 1460 }
1461 1461
1462 1462
1463 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1463 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1464 Expression* expression = (property == NULL) ? NULL : property->value(); 1464 Expression* expression = (property == NULL) ? NULL : property->value();
1465 if (expression == NULL) { 1465 if (expression == NULL) {
1466 __ LoadRoot(x10, Heap::kNullValueRootIndex); 1466 __ LoadRoot(x10, Heap::kNullValueRootIndex);
(...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after
5001 } 5001 }
5002 5002
5003 return INTERRUPT; 5003 return INTERRUPT;
5004 } 5004 }
5005 5005
5006 5006
5007 } // namespace internal 5007 } // namespace internal
5008 } // namespace v8 5008 } // namespace v8
5009 5009
5010 #endif // V8_TARGET_ARCH_ARM64 5010 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698