| 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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 case ObjectLiteral::Property::SETTER: | 1527 case ObjectLiteral::Property::SETTER: |
| 1528 // Duplicate receiver on stack. | 1528 // Duplicate receiver on stack. |
| 1529 __ lw(a0, MemOperand(sp)); | 1529 __ lw(a0, MemOperand(sp)); |
| 1530 __ push(a0); | 1530 __ push(a0); |
| 1531 VisitForStackValue(key); | 1531 VisitForStackValue(key); |
| 1532 __ li(a1, Operand(property->kind() == ObjectLiteral::Property::SETTER ? | 1532 __ li(a1, Operand(property->kind() == ObjectLiteral::Property::SETTER ? |
| 1533 Smi::FromInt(1) : | 1533 Smi::FromInt(1) : |
| 1534 Smi::FromInt(0))); | 1534 Smi::FromInt(0))); |
| 1535 __ push(a1); | 1535 __ push(a1); |
| 1536 VisitForStackValue(value); | 1536 VisitForStackValue(value); |
| 1537 __ CallRuntime(Runtime::kDefineAccessor, 4); | 1537 __ li(a0, Operand(Smi::FromInt(NONE))); |
| 1538 __ push(a0); |
| 1539 __ CallRuntime(Runtime::kDefineOrRedefineAccessorProperty, 5); |
| 1538 break; | 1540 break; |
| 1539 } | 1541 } |
| 1540 } | 1542 } |
| 1541 | 1543 |
| 1542 if (expr->has_function()) { | 1544 if (expr->has_function()) { |
| 1543 ASSERT(result_saved); | 1545 ASSERT(result_saved); |
| 1544 __ lw(a0, MemOperand(sp)); | 1546 __ lw(a0, MemOperand(sp)); |
| 1545 __ push(a0); | 1547 __ push(a0); |
| 1546 __ CallRuntime(Runtime::kToFastProperties, 1); | 1548 __ CallRuntime(Runtime::kToFastProperties, 1); |
| 1547 } | 1549 } |
| (...skipping 2909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4457 *context_length = 0; | 4459 *context_length = 0; |
| 4458 return previous_; | 4460 return previous_; |
| 4459 } | 4461 } |
| 4460 | 4462 |
| 4461 | 4463 |
| 4462 #undef __ | 4464 #undef __ |
| 4463 | 4465 |
| 4464 } } // namespace v8::internal | 4466 } } // namespace v8::internal |
| 4465 | 4467 |
| 4466 #endif // V8_TARGET_ARCH_MIPS | 4468 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |