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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 VisitForStackValue(value); | 1509 VisitForStackValue(value); |
1510 if (property->emit_store()) { | 1510 if (property->emit_store()) { |
1511 __ li(a0, Operand(Smi::FromInt(NONE))); // PropertyAttributes. | 1511 __ li(a0, Operand(Smi::FromInt(NONE))); // PropertyAttributes. |
1512 __ push(a0); | 1512 __ push(a0); |
1513 __ CallRuntime(Runtime::kSetProperty, 4); | 1513 __ CallRuntime(Runtime::kSetProperty, 4); |
1514 } else { | 1514 } else { |
1515 __ Drop(3); | 1515 __ Drop(3); |
1516 } | 1516 } |
1517 break; | 1517 break; |
1518 case ObjectLiteral::Property::GETTER: | 1518 case ObjectLiteral::Property::GETTER: |
1519 accessor_table.find(key)->second->getter = value; | 1519 accessor_table.lookup(key)->second->getter = value; |
1520 break; | 1520 break; |
1521 case ObjectLiteral::Property::SETTER: | 1521 case ObjectLiteral::Property::SETTER: |
1522 accessor_table.find(key)->second->setter = value; | 1522 accessor_table.lookup(key)->second->setter = value; |
1523 break; | 1523 break; |
1524 } | 1524 } |
1525 } | 1525 } |
1526 | 1526 |
1527 // Emit code to define accessors, using only a single call to the runtime for | 1527 // Emit code to define accessors, using only a single call to the runtime for |
1528 // each pair of corresponding getters and setters. | 1528 // each pair of corresponding getters and setters. |
1529 for (AccessorTable::Iterator it = accessor_table.begin(); | 1529 for (AccessorTable::Iterator it = accessor_table.begin(); |
1530 it != accessor_table.end(); | 1530 it != accessor_table.end(); |
1531 ++it) { | 1531 ++it) { |
1532 __ lw(a0, MemOperand(sp)); // Duplicate receiver. | 1532 __ lw(a0, MemOperand(sp)); // Duplicate receiver. |
(...skipping 2970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4503 *context_length = 0; | 4503 *context_length = 0; |
4504 return previous_; | 4504 return previous_; |
4505 } | 4505 } |
4506 | 4506 |
4507 | 4507 |
4508 #undef __ | 4508 #undef __ |
4509 | 4509 |
4510 } } // namespace v8::internal | 4510 } } // namespace v8::internal |
4511 | 4511 |
4512 #endif // V8_TARGET_ARCH_MIPS | 4512 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |