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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 | 1023 |
1024 if (info()->ShouldTrapOnDeopt()) { | 1024 if (info()->ShouldTrapOnDeopt()) { |
1025 Label dont_trap; | 1025 Label dont_trap; |
1026 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); | 1026 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); |
1027 __ Debug("trap_on_deopt", __LINE__, BREAK); | 1027 __ Debug("trap_on_deopt", __LINE__, BREAK); |
1028 __ Bind(&dont_trap); | 1028 __ Bind(&dont_trap); |
1029 } | 1029 } |
1030 | 1030 |
1031 ASSERT(info()->IsStub() || frame_is_built_); | 1031 ASSERT(info()->IsStub() || frame_is_built_); |
1032 // Go through jump table if we need to build frame, or restore caller doubles. | 1032 // Go through jump table if we need to build frame, or restore caller doubles. |
1033 if (frame_is_built_ && !info()->saves_caller_doubles()) { | 1033 if (branch_type == always && |
1034 Label dont_deopt; | 1034 frame_is_built_ && !info()->saves_caller_doubles()) { |
1035 __ B(&dont_deopt, InvertBranchType(branch_type), reg, bit); | |
1036 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 1035 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
1037 __ Bind(&dont_deopt); | |
1038 } else { | 1036 } else { |
1039 // We often have several deopts to the same entry, reuse the last | 1037 // We often have several deopts to the same entry, reuse the last |
1040 // jump entry if this is the case. | 1038 // jump entry if this is the case. |
1041 if (deopt_jump_table_.is_empty() || | 1039 if (deopt_jump_table_.is_empty() || |
1042 (deopt_jump_table_.last().address != entry) || | 1040 (deopt_jump_table_.last().address != entry) || |
1043 (deopt_jump_table_.last().bailout_type != bailout_type) || | 1041 (deopt_jump_table_.last().bailout_type != bailout_type) || |
1044 (deopt_jump_table_.last().needs_frame != !frame_is_built_)) { | 1042 (deopt_jump_table_.last().needs_frame != !frame_is_built_)) { |
1045 Deoptimizer::JumpTableEntry table_entry(entry, | 1043 Deoptimizer::JumpTableEntry table_entry(entry, |
1046 bailout_type, | 1044 bailout_type, |
1047 !frame_is_built_); | 1045 !frame_is_built_); |
(...skipping 4788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5836 __ Bind(&out_of_object); | 5834 __ Bind(&out_of_object); |
5837 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5835 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
5838 // Index is equal to negated out of object property index plus 1. | 5836 // Index is equal to negated out of object property index plus 1. |
5839 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5837 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5840 __ Ldr(result, FieldMemOperand(result, | 5838 __ Ldr(result, FieldMemOperand(result, |
5841 FixedArray::kHeaderSize - kPointerSize)); | 5839 FixedArray::kHeaderSize - kPointerSize)); |
5842 __ Bind(&done); | 5840 __ Bind(&done); |
5843 } | 5841 } |
5844 | 5842 |
5845 } } // namespace v8::internal | 5843 } } // namespace v8::internal |
OLD | NEW |