| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 int id = environment->deoptimization_index(); | 878 int id = environment->deoptimization_index(); |
| 879 Address entry = | 879 Address entry = |
| 880 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); | 880 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
| 881 | 881 |
| 882 if (entry == NULL) { | 882 if (entry == NULL) { |
| 883 Abort("bailout was not prepared"); | 883 Abort("bailout was not prepared"); |
| 884 return; | 884 return; |
| 885 } | 885 } |
| 886 | 886 |
| 887 TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag."); | 887 TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag."); |
| 888 TODO_UNIMPLEMENTED("Add support for trap_on_deopt flag."); | 888 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
| 889 __ Debug("trap_on_deopt", __LINE__, BREAK); |
| 890 } |
| 891 |
| 889 | 892 |
| 890 // TODO(all): Currently this code directly jump to the second level deopt | 893 // TODO(all): Currently this code directly jump to the second level deopt |
| 891 // table entry. This code need to be updated if we decide to use the | 894 // table entry. This code need to be updated if we decide to use the |
| 892 // 2 levels of table. | 895 // 2 levels of table. |
| 893 ASSERT(info()->IsStub() || frame_is_built_); | 896 ASSERT(info()->IsStub() || frame_is_built_); |
| 894 bool needs_lazy_deopt = info()->IsStub(); | 897 bool needs_lazy_deopt = info()->IsStub(); |
| 895 if (frame_is_built_) { | 898 if (frame_is_built_) { |
| 896 if (needs_lazy_deopt) { | 899 if (needs_lazy_deopt) { |
| 897 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 900 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
| 898 } else { | 901 } else { |
| (...skipping 4674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5573 __ Bind(&out_of_object); | 5576 __ Bind(&out_of_object); |
| 5574 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5577 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5575 // Index is equal to negated out of object property index plus 1. | 5578 // Index is equal to negated out of object property index plus 1. |
| 5576 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5579 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5577 __ Ldr(result, FieldMemOperand(result, | 5580 __ Ldr(result, FieldMemOperand(result, |
| 5578 FixedArray::kHeaderSize - kPointerSize)); | 5581 FixedArray::kHeaderSize - kPointerSize)); |
| 5579 __ Bind(&done); | 5582 __ Bind(&done); |
| 5580 } | 5583 } |
| 5581 | 5584 |
| 5582 } } // namespace v8::internal | 5585 } } // namespace v8::internal |
| OLD | NEW |