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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 break; | 1510 break; |
1511 | 1511 |
1512 case ObjectLiteral::Property::SETTER: | 1512 case ObjectLiteral::Property::SETTER: |
1513 PushOperand(Smi::FromInt(NONE)); | 1513 PushOperand(Smi::FromInt(NONE)); |
1514 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1514 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1515 break; | 1515 break; |
1516 } | 1516 } |
1517 } | 1517 } |
1518 } | 1518 } |
1519 | 1519 |
1520 if (expr->has_function()) { | |
1521 DCHECK(result_saved); | |
1522 __ push(Operand(esp, 0)); | |
1523 __ CallRuntime(Runtime::kToFastProperties); | |
1524 } | |
1525 | |
1526 if (result_saved) { | 1520 if (result_saved) { |
1527 context()->PlugTOS(); | 1521 context()->PlugTOS(); |
1528 } else { | 1522 } else { |
1529 context()->Plug(eax); | 1523 context()->Plug(eax); |
1530 } | 1524 } |
1531 } | 1525 } |
1532 | 1526 |
1533 | 1527 |
1534 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1528 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1535 Comment cmnt(masm_, "[ ArrayLiteral"); | 1529 Comment cmnt(masm_, "[ ArrayLiteral"); |
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4050 isolate->builtins()->OnStackReplacement()->entry(), | 4044 isolate->builtins()->OnStackReplacement()->entry(), |
4051 Assembler::target_address_at(call_target_address, unoptimized_code)); | 4045 Assembler::target_address_at(call_target_address, unoptimized_code)); |
4052 return ON_STACK_REPLACEMENT; | 4046 return ON_STACK_REPLACEMENT; |
4053 } | 4047 } |
4054 | 4048 |
4055 | 4049 |
4056 } // namespace internal | 4050 } // namespace internal |
4057 } // namespace v8 | 4051 } // namespace v8 |
4058 | 4052 |
4059 #endif // V8_TARGET_ARCH_IA32 | 4053 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |