| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |