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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 } 1422 }
1423 } 1423 }
1424 } 1424 }
1425 1425
1426 1426
1427 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 1427 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1428 Comment cmnt(masm_, "[ RegExpLiteral"); 1428 Comment cmnt(masm_, "[ RegExpLiteral");
1429 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1429 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1430 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); 1430 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index()));
1431 __ mov(r4, Operand(expr->pattern())); 1431 __ mov(r4, Operand(expr->pattern()));
1432 __ mov(r3, Operand(expr->flags())); 1432 __ LoadSmiLiteral(r3, Smi::FromInt(expr->flags()));
1433 FastCloneRegExpStub stub(isolate()); 1433 FastCloneRegExpStub stub(isolate());
1434 __ CallStub(&stub); 1434 __ CallStub(&stub);
1435 context()->Plug(r3); 1435 context()->Plug(r3);
1436 } 1436 }
1437 1437
1438 1438
1439 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1439 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1440 Expression* expression = (property == NULL) ? NULL : property->value(); 1440 Expression* expression = (property == NULL) ? NULL : property->value();
1441 if (expression == NULL) { 1441 if (expression == NULL) {
1442 __ LoadRoot(r4, Heap::kNullValueRootIndex); 1442 __ LoadRoot(r4, Heap::kNullValueRootIndex);
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after
4960 return ON_STACK_REPLACEMENT; 4960 return ON_STACK_REPLACEMENT;
4961 } 4961 }
4962 4962
4963 DCHECK(interrupt_address == 4963 DCHECK(interrupt_address ==
4964 isolate->builtins()->OsrAfterStackCheck()->entry()); 4964 isolate->builtins()->OsrAfterStackCheck()->entry());
4965 return OSR_AFTER_STACK_CHECK; 4965 return OSR_AFTER_STACK_CHECK;
4966 } 4966 }
4967 } // namespace internal 4967 } // namespace internal
4968 } // namespace v8 4968 } // namespace v8
4969 #endif // V8_TARGET_ARCH_PPC 4969 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698