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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 VisitForStackValue(value); | 1497 VisitForStackValue(value); |
1498 if (property->emit_store()) { | 1498 if (property->emit_store()) { |
1499 __ mov(r0, Operand(Smi::FromInt(NONE))); // PropertyAttributes | 1499 __ mov(r0, Operand(Smi::FromInt(NONE))); // PropertyAttributes |
1500 __ push(r0); | 1500 __ push(r0); |
1501 __ CallRuntime(Runtime::kSetProperty, 4); | 1501 __ CallRuntime(Runtime::kSetProperty, 4); |
1502 } else { | 1502 } else { |
1503 __ Drop(3); | 1503 __ Drop(3); |
1504 } | 1504 } |
1505 break; | 1505 break; |
1506 case ObjectLiteral::Property::GETTER: | 1506 case ObjectLiteral::Property::GETTER: |
1507 accessor_table.find(key)->second->getter = value; | 1507 accessor_table.lookup(key)->second->getter = value; |
1508 break; | 1508 break; |
1509 case ObjectLiteral::Property::SETTER: | 1509 case ObjectLiteral::Property::SETTER: |
1510 accessor_table.find(key)->second->setter = value; | 1510 accessor_table.lookup(key)->second->setter = value; |
1511 break; | 1511 break; |
1512 } | 1512 } |
1513 } | 1513 } |
1514 | 1514 |
1515 // Emit code to define accessors, using only a single call to the runtime for | 1515 // Emit code to define accessors, using only a single call to the runtime for |
1516 // each pair of corresponding getters and setters. | 1516 // each pair of corresponding getters and setters. |
1517 for (AccessorTable::Iterator it = accessor_table.begin(); | 1517 for (AccessorTable::Iterator it = accessor_table.begin(); |
1518 it != accessor_table.end(); | 1518 it != accessor_table.end(); |
1519 ++it) { | 1519 ++it) { |
1520 __ ldr(r0, MemOperand(sp)); // Duplicate receiver. | 1520 __ ldr(r0, MemOperand(sp)); // Duplicate receiver. |
(...skipping 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4462 *context_length = 0; | 4462 *context_length = 0; |
4463 return previous_; | 4463 return previous_; |
4464 } | 4464 } |
4465 | 4465 |
4466 | 4466 |
4467 #undef __ | 4467 #undef __ |
4468 | 4468 |
4469 } } // namespace v8::internal | 4469 } } // namespace v8::internal |
4470 | 4470 |
4471 #endif // V8_TARGET_ARCH_ARM | 4471 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |