OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 case ObjectLiteral::Property::SETTER: | 1516 case ObjectLiteral::Property::SETTER: |
1517 // Duplicate receiver on stack. | 1517 // Duplicate receiver on stack. |
1518 __ ldr(r0, MemOperand(sp)); | 1518 __ ldr(r0, MemOperand(sp)); |
1519 __ push(r0); | 1519 __ push(r0); |
1520 VisitForStackValue(key); | 1520 VisitForStackValue(key); |
1521 __ mov(r1, Operand(property->kind() == ObjectLiteral::Property::SETTER ? | 1521 __ mov(r1, Operand(property->kind() == ObjectLiteral::Property::SETTER ? |
1522 Smi::FromInt(1) : | 1522 Smi::FromInt(1) : |
1523 Smi::FromInt(0))); | 1523 Smi::FromInt(0))); |
1524 __ push(r1); | 1524 __ push(r1); |
1525 VisitForStackValue(value); | 1525 VisitForStackValue(value); |
1526 __ CallRuntime(Runtime::kDefineAccessor, 4); | 1526 __ mov(r0, Operand(Smi::FromInt(NONE))); |
| 1527 __ push(r0); |
| 1528 __ CallRuntime(Runtime::kDefineOrRedefineAccessorProperty, 5); |
1527 break; | 1529 break; |
1528 } | 1530 } |
1529 } | 1531 } |
1530 | 1532 |
1531 if (expr->has_function()) { | 1533 if (expr->has_function()) { |
1532 ASSERT(result_saved); | 1534 ASSERT(result_saved); |
1533 __ ldr(r0, MemOperand(sp)); | 1535 __ ldr(r0, MemOperand(sp)); |
1534 __ push(r0); | 1536 __ push(r0); |
1535 __ CallRuntime(Runtime::kToFastProperties, 1); | 1537 __ CallRuntime(Runtime::kToFastProperties, 1); |
1536 } | 1538 } |
(...skipping 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4419 *context_length = 0; | 4421 *context_length = 0; |
4420 return previous_; | 4422 return previous_; |
4421 } | 4423 } |
4422 | 4424 |
4423 | 4425 |
4424 #undef __ | 4426 #undef __ |
4425 | 4427 |
4426 } } // namespace v8::internal | 4428 } } // namespace v8::internal |
4427 | 4429 |
4428 #endif // V8_TARGET_ARCH_ARM | 4430 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |