| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 ASSERT(key->location().is_temporary()); | 310 ASSERT(key->location().is_temporary()); |
| 311 Visit(value); | 311 Visit(value); |
| 312 ASSERT(value->location().is_temporary()); | 312 ASSERT(value->location().is_temporary()); |
| 313 __ CallRuntime(Runtime::kSetProperty, 3); | 313 __ CallRuntime(Runtime::kSetProperty, 3); |
| 314 __ movq(rax, Operand(rsp, 0)); // Restore result into rax. | 314 __ movq(rax, Operand(rsp, 0)); // Restore result into rax. |
| 315 break; | 315 break; |
| 316 case ObjectLiteral::Property::SETTER: // fall through | 316 case ObjectLiteral::Property::SETTER: // fall through |
| 317 case ObjectLiteral::Property::GETTER: | 317 case ObjectLiteral::Property::GETTER: |
| 318 __ push(rax); | 318 __ push(rax); |
| 319 Visit(key); | 319 Visit(key); |
| 320 ASSERT(key->location.is_temporary()); | 320 ASSERT(key->location().is_temporary()); |
| 321 __ Push(property->kind() == ObjectLiteral::Property::SETTER ? | 321 __ Push(property->kind() == ObjectLiteral::Property::SETTER ? |
| 322 Smi::FromInt(1) : | 322 Smi::FromInt(1) : |
| 323 Smi::FromInt(0)); | 323 Smi::FromInt(0)); |
| 324 Visit(value); | 324 Visit(value); |
| 325 ASSERT(value->location().is_temporary()); | 325 ASSERT(value->location().is_temporary()); |
| 326 __ CallRuntime(Runtime::kDefineAccessor, 4); | 326 __ CallRuntime(Runtime::kDefineAccessor, 4); |
| 327 __ movq(rax, Operand(rsp, 0)); // Restore result into rax. | 327 __ movq(rax, Operand(rsp, 0)); // Restore result into rax. |
| 328 break; | 328 break; |
| 329 default: UNREACHABLE(); | 329 default: UNREACHABLE(); |
| 330 } | 330 } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 } else { | 637 } else { |
| 638 ASSERT(destination.is_temporary()); | 638 ASSERT(destination.is_temporary()); |
| 639 } | 639 } |
| 640 } | 640 } |
| 641 | 641 |
| 642 __ bind(&done); | 642 __ bind(&done); |
| 643 } | 643 } |
| 644 | 644 |
| 645 | 645 |
| 646 } } // namespace v8::internal | 646 } } // namespace v8::internal |
| OLD | NEW |