| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2777 Label done; | 2777 Label done; |
| 2778 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); | 2778 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
| 2779 __ Branch(&done, ne, result, Operand(scratch)); | 2779 __ Branch(&done, ne, result, Operand(scratch)); |
| 2780 if (info()->IsStub()) { | 2780 if (info()->IsStub()) { |
| 2781 // A stub can safely convert the hole to undefined only if the array | 2781 // A stub can safely convert the hole to undefined only if the array |
| 2782 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise | 2782 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise |
| 2783 // it needs to bail out. | 2783 // it needs to bail out. |
| 2784 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); | 2784 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
| 2785 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); | 2785 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); |
| 2786 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole, result, | 2786 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole, result, |
| 2787 Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); | 2787 Operand(Smi::FromInt(Isolate::kProtectorValid))); |
| 2788 } | 2788 } |
| 2789 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); | 2789 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); |
| 2790 __ bind(&done); | 2790 __ bind(&done); |
| 2791 } | 2791 } |
| 2792 } | 2792 } |
| 2793 | 2793 |
| 2794 | 2794 |
| 2795 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { | 2795 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { |
| 2796 if (instr->is_fixed_typed_array()) { | 2796 if (instr->is_fixed_typed_array()) { |
| 2797 DoLoadKeyedExternalArray(instr); | 2797 DoLoadKeyedExternalArray(instr); |
| (...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5397 __ lw(result, FieldMemOperand(scratch, | 5397 __ lw(result, FieldMemOperand(scratch, |
| 5398 FixedArray::kHeaderSize - kPointerSize)); | 5398 FixedArray::kHeaderSize - kPointerSize)); |
| 5399 __ bind(deferred->exit()); | 5399 __ bind(deferred->exit()); |
| 5400 __ bind(&done); | 5400 __ bind(&done); |
| 5401 } | 5401 } |
| 5402 | 5402 |
| 5403 #undef __ | 5403 #undef __ |
| 5404 | 5404 |
| 5405 } // namespace internal | 5405 } // namespace internal |
| 5406 } // namespace v8 | 5406 } // namespace v8 |
| OLD | NEW |