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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/factory.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 } 1457 }
1458 } 1458 }
1459 } 1459 }
1460 1460
1461 1461
1462 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 1462 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1463 Comment cmnt(masm_, "[ RegExpLiteral"); 1463 Comment cmnt(masm_, "[ RegExpLiteral");
1464 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1464 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1465 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); 1465 __ mov(r2, Operand(Smi::FromInt(expr->literal_index())));
1466 __ mov(r1, Operand(expr->pattern())); 1466 __ mov(r1, Operand(expr->pattern()));
1467 __ mov(r0, Operand(expr->flags())); 1467 __ mov(r0, Operand(Smi::FromInt(expr->flags())));
1468 FastCloneRegExpStub stub(isolate()); 1468 FastCloneRegExpStub stub(isolate());
1469 __ CallStub(&stub); 1469 __ CallStub(&stub);
1470 context()->Plug(r0); 1470 context()->Plug(r0);
1471 } 1471 }
1472 1472
1473 1473
1474 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1474 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1475 Expression* expression = (property == NULL) ? NULL : property->value(); 1475 Expression* expression = (property == NULL) ? NULL : property->value();
1476 if (expression == NULL) { 1476 if (expression == NULL) {
1477 __ LoadRoot(r1, Heap::kNullValueRootIndex); 1477 __ LoadRoot(r1, Heap::kNullValueRootIndex);
(...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after
5011 DCHECK(interrupt_address == 5011 DCHECK(interrupt_address ==
5012 isolate->builtins()->OsrAfterStackCheck()->entry()); 5012 isolate->builtins()->OsrAfterStackCheck()->entry());
5013 return OSR_AFTER_STACK_CHECK; 5013 return OSR_AFTER_STACK_CHECK;
5014 } 5014 }
5015 5015
5016 5016
5017 } // namespace internal 5017 } // namespace internal
5018 } // namespace v8 5018 } // namespace v8
5019 5019
5020 #endif // V8_TARGET_ARCH_ARM 5020 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698