OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4905 | 4905 |
4906 // smi | 4906 // smi |
4907 __ bind(&is_smi); | 4907 __ bind(&is_smi); |
4908 __ ClampUint8(result_reg, result_reg); | 4908 __ ClampUint8(result_reg, result_reg); |
4909 | 4909 |
4910 __ bind(&done); | 4910 __ bind(&done); |
4911 } | 4911 } |
4912 | 4912 |
4913 | 4913 |
4914 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { | 4914 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
| 4915 ASSERT(instr->temp()->Equals(instr->result())); |
4915 Register temp1 = ToRegister(instr->temp()); | 4916 Register temp1 = ToRegister(instr->temp()); |
4916 Register temp2 = ToRegister(instr->temp2()); | 4917 Register temp2 = ToRegister(instr->temp2()); |
4917 | 4918 |
4918 Handle<JSObject> holder = instr->holder(); | 4919 Handle<JSObject> holder = instr->holder(); |
4919 Handle<JSObject> current_prototype = instr->prototype(); | 4920 Handle<JSObject> current_prototype = instr->prototype(); |
4920 | 4921 |
4921 // Load prototype object. | 4922 // Load prototype object. |
4922 __ LoadHeapObject(temp1, current_prototype); | 4923 __ LoadHeapObject(temp1, current_prototype); |
4923 | 4924 |
4924 // Check prototype maps up to the holder. | 4925 // Check prototype maps up to the holder. |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5678 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5679 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
5679 __ ldr(result, FieldMemOperand(scratch, | 5680 __ ldr(result, FieldMemOperand(scratch, |
5680 FixedArray::kHeaderSize - kPointerSize)); | 5681 FixedArray::kHeaderSize - kPointerSize)); |
5681 __ bind(&done); | 5682 __ bind(&done); |
5682 } | 5683 } |
5683 | 5684 |
5684 | 5685 |
5685 #undef __ | 5686 #undef __ |
5686 | 5687 |
5687 } } // namespace v8::internal | 5688 } } // namespace v8::internal |
OLD | NEW |