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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 } 1409 }
1410 } 1410 }
1411 } 1411 }
1412 1412
1413 1413
1414 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 1414 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1415 Comment cmnt(masm_, "[ RegExpLiteral"); 1415 Comment cmnt(masm_, "[ RegExpLiteral");
1416 __ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 1416 __ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
1417 __ Move(rax, Smi::FromInt(expr->literal_index())); 1417 __ Move(rax, Smi::FromInt(expr->literal_index()));
1418 __ Move(rcx, expr->pattern()); 1418 __ Move(rcx, expr->pattern());
1419 __ Move(rdx, expr->flags()); 1419 __ Move(rdx, Smi::FromInt(expr->flags()));
1420 FastCloneRegExpStub stub(isolate()); 1420 FastCloneRegExpStub stub(isolate());
1421 __ CallStub(&stub); 1421 __ CallStub(&stub);
1422 context()->Plug(rax); 1422 context()->Plug(rax);
1423 } 1423 }
1424 1424
1425 1425
1426 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { 1426 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) {
1427 Expression* expression = (property == NULL) ? NULL : property->value(); 1427 Expression* expression = (property == NULL) ? NULL : property->value();
1428 if (expression == NULL) { 1428 if (expression == NULL) {
1429 __ PushRoot(Heap::kNullValueRootIndex); 1429 __ PushRoot(Heap::kNullValueRootIndex);
(...skipping 3456 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 Assembler::target_address_at(call_target_address, 4886 Assembler::target_address_at(call_target_address,
4887 unoptimized_code)); 4887 unoptimized_code));
4888 return OSR_AFTER_STACK_CHECK; 4888 return OSR_AFTER_STACK_CHECK;
4889 } 4889 }
4890 4890
4891 4891
4892 } // namespace internal 4892 } // namespace internal
4893 } // namespace v8 4893 } // namespace v8
4894 4894
4895 #endif // V8_TARGET_ARCH_X64 4895 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698