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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 break; | 1589 break; |
1590 | 1590 |
1591 case ObjectLiteral::Property::SETTER: | 1591 case ObjectLiteral::Property::SETTER: |
1592 PushOperand(Smi::FromInt(NONE)); | 1592 PushOperand(Smi::FromInt(NONE)); |
1593 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1593 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1594 break; | 1594 break; |
1595 } | 1595 } |
1596 } | 1596 } |
1597 } | 1597 } |
1598 | 1598 |
1599 if (expr->has_function()) { | |
1600 DCHECK(result_saved); | |
1601 __ ldr(r0, MemOperand(sp)); | |
1602 __ push(r0); | |
1603 __ CallRuntime(Runtime::kToFastProperties); | |
1604 } | |
1605 | |
1606 if (result_saved) { | 1599 if (result_saved) { |
1607 context()->PlugTOS(); | 1600 context()->PlugTOS(); |
1608 } else { | 1601 } else { |
1609 context()->Plug(r0); | 1602 context()->Plug(r0); |
1610 } | 1603 } |
1611 } | 1604 } |
1612 | 1605 |
1613 | 1606 |
1614 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1607 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1615 Comment cmnt(masm_, "[ ArrayLiteral"); | 1608 Comment cmnt(masm_, "[ ArrayLiteral"); |
(...skipping 2609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4225 DCHECK(interrupt_address == | 4218 DCHECK(interrupt_address == |
4226 isolate->builtins()->OnStackReplacement()->entry()); | 4219 isolate->builtins()->OnStackReplacement()->entry()); |
4227 return ON_STACK_REPLACEMENT; | 4220 return ON_STACK_REPLACEMENT; |
4228 } | 4221 } |
4229 | 4222 |
4230 | 4223 |
4231 } // namespace internal | 4224 } // namespace internal |
4232 } // namespace v8 | 4225 } // namespace v8 |
4233 | 4226 |
4234 #endif // V8_TARGET_ARCH_ARM | 4227 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |