| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 break; | 1502 break; |
| 1503 | 1503 |
| 1504 case ObjectLiteral::Property::SETTER: | 1504 case ObjectLiteral::Property::SETTER: |
| 1505 PushOperand(Smi::FromInt(NONE)); | 1505 PushOperand(Smi::FromInt(NONE)); |
| 1506 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1506 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
| 1507 break; | 1507 break; |
| 1508 } | 1508 } |
| 1509 } | 1509 } |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 if (expr->has_function()) { | |
| 1513 DCHECK(result_saved); | |
| 1514 __ push(Operand(esp, 0)); | |
| 1515 __ CallRuntime(Runtime::kToFastProperties); | |
| 1516 } | |
| 1517 | |
| 1518 if (result_saved) { | 1512 if (result_saved) { |
| 1519 context()->PlugTOS(); | 1513 context()->PlugTOS(); |
| 1520 } else { | 1514 } else { |
| 1521 context()->Plug(eax); | 1515 context()->Plug(eax); |
| 1522 } | 1516 } |
| 1523 } | 1517 } |
| 1524 | 1518 |
| 1525 | 1519 |
| 1526 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1520 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 1527 Comment cmnt(masm_, "[ ArrayLiteral"); | 1521 Comment cmnt(masm_, "[ ArrayLiteral"); |
| (...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4042 isolate->builtins()->OnStackReplacement()->entry(), | 4036 isolate->builtins()->OnStackReplacement()->entry(), |
| 4043 Assembler::target_address_at(call_target_address, unoptimized_code)); | 4037 Assembler::target_address_at(call_target_address, unoptimized_code)); |
| 4044 return ON_STACK_REPLACEMENT; | 4038 return ON_STACK_REPLACEMENT; |
| 4045 } | 4039 } |
| 4046 | 4040 |
| 4047 | 4041 |
| 4048 } // namespace internal | 4042 } // namespace internal |
| 4049 } // namespace v8 | 4043 } // namespace v8 |
| 4050 | 4044 |
| 4051 #endif // V8_TARGET_ARCH_X87 | 4045 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |