OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 break; | 1522 break; |
1523 | 1523 |
1524 case ObjectLiteral::Property::SETTER: | 1524 case ObjectLiteral::Property::SETTER: |
1525 PushOperand(Smi::FromInt(NONE)); | 1525 PushOperand(Smi::FromInt(NONE)); |
1526 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1526 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1527 break; | 1527 break; |
1528 } | 1528 } |
1529 } | 1529 } |
1530 } | 1530 } |
1531 | 1531 |
1532 if (expr->has_function()) { | |
1533 DCHECK(result_saved); | |
1534 __ LoadP(r2, MemOperand(sp)); | |
1535 __ push(r2); | |
1536 __ CallRuntime(Runtime::kToFastProperties); | |
1537 } | |
1538 | |
1539 if (result_saved) { | 1532 if (result_saved) { |
1540 context()->PlugTOS(); | 1533 context()->PlugTOS(); |
1541 } else { | 1534 } else { |
1542 context()->Plug(r2); | 1535 context()->Plug(r2); |
1543 } | 1536 } |
1544 } | 1537 } |
1545 | 1538 |
1546 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1539 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1547 Comment cmnt(masm_, "[ ArrayLiteral"); | 1540 Comment cmnt(masm_, "[ ArrayLiteral"); |
1548 | 1541 |
(...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4080 } | 4073 } |
4081 | 4074 |
4082 DCHECK(interrupt_address == | 4075 DCHECK(interrupt_address == |
4083 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4076 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4084 return OSR_AFTER_STACK_CHECK; | 4077 return OSR_AFTER_STACK_CHECK; |
4085 } | 4078 } |
4086 | 4079 |
4087 } // namespace internal | 4080 } // namespace internal |
4088 } // namespace v8 | 4081 } // namespace v8 |
4089 #endif // V8_TARGET_ARCH_S390 | 4082 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |