| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1771 __ CmpObjectType(input, FIRST_SPEC_OBJECT_TYPE, temp); | 1771 __ CmpObjectType(input, FIRST_SPEC_OBJECT_TYPE, temp); |
| 1772 __ j(below, is_false); | 1772 __ j(below, is_false); |
| 1773 __ j(equal, is_true); | 1773 __ j(equal, is_true); |
| 1774 __ CmpInstanceType(temp, LAST_SPEC_OBJECT_TYPE); | 1774 __ CmpInstanceType(temp, LAST_SPEC_OBJECT_TYPE); |
| 1775 __ j(equal, is_true); | 1775 __ j(equal, is_true); |
| 1776 } else { | 1776 } else { |
| 1777 // Faster code path to avoid two compares: subtract lower bound from the | 1777 // Faster code path to avoid two compares: subtract lower bound from the |
| 1778 // actual type and do a signed compare with the width of the type range. | 1778 // actual type and do a signed compare with the width of the type range. |
| 1779 __ movq(temp, FieldOperand(input, HeapObject::kMapOffset)); | 1779 __ movq(temp, FieldOperand(input, HeapObject::kMapOffset)); |
| 1780 __ movzxbl(scratch, FieldOperand(temp, Map::kInstanceTypeOffset)); | 1780 __ movzxbl(scratch, FieldOperand(temp, Map::kInstanceTypeOffset)); |
| 1781 __ sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); | 1781 __ subq(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
| 1782 __ cmpq(scratch, Immediate(LAST_NONCALLABLE_SPEC_OBJECT_TYPE - | 1782 __ cmpq(scratch, Immediate(LAST_NONCALLABLE_SPEC_OBJECT_TYPE - |
| 1783 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); | 1783 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
| 1784 __ j(above, is_false); | 1784 __ j(above, is_false); |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. | 1787 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. |
| 1788 // Check if the constructor in the map is a function. | 1788 // Check if the constructor in the map is a function. |
| 1789 __ movq(temp, FieldOperand(temp, Map::kConstructorOffset)); | 1789 __ movq(temp, FieldOperand(temp, Map::kConstructorOffset)); |
| 1790 | 1790 |
| 1791 // Objects with a non-function constructor have class 'Object'. | 1791 // Objects with a non-function constructor have class 'Object'. |
| (...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4294 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 4294 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 4295 ASSERT(osr_pc_offset_ == -1); | 4295 ASSERT(osr_pc_offset_ == -1); |
| 4296 osr_pc_offset_ = masm()->pc_offset(); | 4296 osr_pc_offset_ = masm()->pc_offset(); |
| 4297 } | 4297 } |
| 4298 | 4298 |
| 4299 #undef __ | 4299 #undef __ |
| 4300 | 4300 |
| 4301 } } // namespace v8::internal | 4301 } } // namespace v8::internal |
| 4302 | 4302 |
| 4303 #endif // V8_TARGET_ARCH_X64 | 4303 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |