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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 } 1455 }
1456 } 1456 }
1457 } 1457 }
1458 1458
1459 1459
1460 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 1460 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1461 Comment cmnt(masm_, "[ RegExpLiteral"); 1461 Comment cmnt(masm_, "[ RegExpLiteral");
1462 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1462 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1463 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); 1463 __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
1464 __ li(a1, Operand(expr->pattern())); 1464 __ li(a1, Operand(expr->pattern()));
1465 __ li(a0, Operand(expr->flags())); 1465 __ li(a0, Operand(Smi::FromInt(expr->flags())));
1466 FastCloneRegExpStub stub(isolate()); 1466 FastCloneRegExpStub stub(isolate());
1467 __ CallStub(&stub); 1467 __ CallStub(&stub);
1468 context()->Plug(v0); 1468 context()->Plug(v0);
1469 } 1469 }
1470 1470
1471 1471
1472 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1472 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1473 Expression* expression = (property == NULL) ? NULL : property->value(); 1473 Expression* expression = (property == NULL) ? NULL : property->value();
1474 if (expression == NULL) { 1474 if (expression == NULL) {
1475 __ LoadRoot(a1, Heap::kNullValueRootIndex); 1475 __ LoadRoot(a1, Heap::kNullValueRootIndex);
(...skipping 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after
4983 reinterpret_cast<uint64_t>( 4983 reinterpret_cast<uint64_t>(
4984 isolate->builtins()->OsrAfterStackCheck()->entry())); 4984 isolate->builtins()->OsrAfterStackCheck()->entry()));
4985 return OSR_AFTER_STACK_CHECK; 4985 return OSR_AFTER_STACK_CHECK;
4986 } 4986 }
4987 4987
4988 4988
4989 } // namespace internal 4989 } // namespace internal
4990 } // namespace v8 4990 } // namespace v8
4991 4991
4992 #endif // V8_TARGET_ARCH_MIPS64 4992 #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