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 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2893 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); | 2893 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
2894 DeoptimizeIf(eq, instr, Deoptimizer::kHole, result, Operand(scratch)); | 2894 DeoptimizeIf(eq, instr, Deoptimizer::kHole, result, Operand(scratch)); |
2895 } | 2895 } |
2896 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { | 2896 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { |
2897 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); | 2897 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); |
2898 Label done; | 2898 Label done; |
2899 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); | 2899 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
2900 __ Branch(&done, ne, result, Operand(scratch)); | 2900 __ Branch(&done, ne, result, Operand(scratch)); |
2901 if (info()->IsStub()) { | 2901 if (info()->IsStub()) { |
2902 // A stub can safely convert the hole to undefined only if the array | 2902 // A stub can safely convert the hole to undefined only if the array |
2903 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise | 2903 // protector cell contains (Smi) Isolate::kArrayProtectorValid. |
2904 // it needs to bail out. | 2904 // Otherwise it needs to bail out. |
2905 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); | 2905 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
2906 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); | 2906 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); |
2907 DeoptimizeIf(ne, instr, Deoptimizer::kHole, result, | 2907 DeoptimizeIf(ne, instr, Deoptimizer::kHole, result, |
2908 Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); | 2908 Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); |
2909 } | 2909 } |
2910 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); | 2910 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); |
2911 __ bind(&done); | 2911 __ bind(&done); |
2912 } | 2912 } |
2913 } | 2913 } |
2914 | 2914 |
(...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5562 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5562 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
5563 Register context = ToRegister(instr->context()); | 5563 Register context = ToRegister(instr->context()); |
5564 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5564 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
5565 } | 5565 } |
5566 | 5566 |
5567 | 5567 |
5568 #undef __ | 5568 #undef __ |
5569 | 5569 |
5570 } // namespace internal | 5570 } // namespace internal |
5571 } // namespace v8 | 5571 } // namespace v8 |
OLD | NEW |