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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 break; | 1534 break; |
1535 | 1535 |
1536 case ObjectLiteral::Property::SETTER: | 1536 case ObjectLiteral::Property::SETTER: |
1537 PushOperand(Smi::FromInt(NONE)); | 1537 PushOperand(Smi::FromInt(NONE)); |
1538 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1538 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1539 break; | 1539 break; |
1540 } | 1540 } |
1541 } | 1541 } |
1542 } | 1542 } |
1543 | 1543 |
1544 if (expr->has_function()) { | |
1545 DCHECK(result_saved); | |
1546 __ Push(Operand(rsp, 0)); | |
1547 __ CallRuntime(Runtime::kToFastProperties); | |
1548 } | |
1549 | |
1550 if (result_saved) { | 1544 if (result_saved) { |
1551 context()->PlugTOS(); | 1545 context()->PlugTOS(); |
1552 } else { | 1546 } else { |
1553 context()->Plug(rax); | 1547 context()->Plug(rax); |
1554 } | 1548 } |
1555 } | 1549 } |
1556 | 1550 |
1557 | 1551 |
1558 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1552 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1559 Comment cmnt(masm_, "[ ArrayLiteral"); | 1553 Comment cmnt(masm_, "[ ArrayLiteral"); |
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4036 DCHECK_EQ( | 4030 DCHECK_EQ( |
4037 isolate->builtins()->OnStackReplacement()->entry(), | 4031 isolate->builtins()->OnStackReplacement()->entry(), |
4038 Assembler::target_address_at(call_target_address, unoptimized_code)); | 4032 Assembler::target_address_at(call_target_address, unoptimized_code)); |
4039 return ON_STACK_REPLACEMENT; | 4033 return ON_STACK_REPLACEMENT; |
4040 } | 4034 } |
4041 | 4035 |
4042 } // namespace internal | 4036 } // namespace internal |
4043 } // namespace v8 | 4037 } // namespace v8 |
4044 | 4038 |
4045 #endif // V8_TARGET_ARCH_X64 | 4039 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |