OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 // call for populating the safepoint data with deoptimization data. | 2617 // call for populating the safepoint data with deoptimization data. |
2618 } | 2618 } |
2619 | 2619 |
2620 | 2620 |
2621 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { | 2621 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { |
2622 DeoptimizeIf(no_condition, instr->environment()); | 2622 DeoptimizeIf(no_condition, instr->environment()); |
2623 } | 2623 } |
2624 | 2624 |
2625 | 2625 |
2626 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) { | 2626 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) { |
2627 Abort("DoDeleteProperty unimplemented."); | 2627 Register object = ToRegister(instr->object()); |
| 2628 Register key = ToRegister(instr->key()); |
| 2629 __ Push(object, key); |
| 2630 RecordPosition(instr->pointer_map()->position()); |
| 2631 SafepointGenerator safepoint_generator(this, |
| 2632 instr->pointer_map(), |
| 2633 Safepoint::kNoDeoptimizationIndex); |
| 2634 __ InvokeBuiltin(Builtins::DELETE, CALL_JS, &safepoint_generator); |
2628 } | 2635 } |
2629 | 2636 |
2630 | 2637 |
2631 void LCodeGen::DoStackCheck(LStackCheck* instr) { | 2638 void LCodeGen::DoStackCheck(LStackCheck* instr) { |
2632 // Perform stack overflow check. | 2639 // Perform stack overflow check. |
2633 Label ok; | 2640 Label ok; |
2634 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | 2641 __ LoadRoot(ip, Heap::kStackLimitRootIndex); |
2635 __ cmp(sp, Operand(ip)); | 2642 __ cmp(sp, Operand(ip)); |
2636 __ b(hs, &ok); | 2643 __ b(hs, &ok); |
2637 StackCheckStub stub; | 2644 StackCheckStub stub; |
2638 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 2645 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
2639 __ bind(&ok); | 2646 __ bind(&ok); |
2640 } | 2647 } |
2641 | 2648 |
2642 | 2649 |
2643 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2650 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
2644 Abort("DoOsrEntry unimplemented."); | 2651 Abort("DoOsrEntry unimplemented."); |
2645 } | 2652 } |
2646 | 2653 |
2647 | 2654 |
2648 #undef __ | 2655 #undef __ |
2649 | 2656 |
2650 } } // namespace v8::internal | 2657 } } // namespace v8::internal |
OLD | NEW |