| 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 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4630 __ jmp(&done); | 4630 __ jmp(&done); |
| 4631 | 4631 |
| 4632 __ bind(&is_smi); | 4632 __ bind(&is_smi); |
| 4633 __ ClampUint8(result_reg, scratch); | 4633 __ ClampUint8(result_reg, scratch); |
| 4634 | 4634 |
| 4635 __ bind(&done); | 4635 __ bind(&done); |
| 4636 } | 4636 } |
| 4637 | 4637 |
| 4638 | 4638 |
| 4639 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { | 4639 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
| 4640 ASSERT(instr->temp()->Equals(instr->result())); |
| 4640 Register temp1 = ToRegister(instr->temp()); | 4641 Register temp1 = ToRegister(instr->temp()); |
| 4641 Register temp2 = ToRegister(instr->temp2()); | 4642 Register temp2 = ToRegister(instr->temp2()); |
| 4642 | 4643 |
| 4643 Handle<JSObject> holder = instr->holder(); | 4644 Handle<JSObject> holder = instr->holder(); |
| 4644 Handle<JSObject> current_prototype = instr->prototype(); | 4645 Handle<JSObject> current_prototype = instr->prototype(); |
| 4645 | 4646 |
| 4646 // Load prototype object. | 4647 // Load prototype object. |
| 4647 __ LoadHeapObject(temp1, current_prototype); | 4648 __ LoadHeapObject(temp1, current_prototype); |
| 4648 | 4649 |
| 4649 // Check prototype maps up to the holder. | 4650 // Check prototype maps up to the holder. |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5439 __ Subu(scratch, result, scratch); | 5440 __ Subu(scratch, result, scratch); |
| 5440 __ lw(result, FieldMemOperand(scratch, | 5441 __ lw(result, FieldMemOperand(scratch, |
| 5441 FixedArray::kHeaderSize - kPointerSize)); | 5442 FixedArray::kHeaderSize - kPointerSize)); |
| 5442 __ bind(&done); | 5443 __ bind(&done); |
| 5443 } | 5444 } |
| 5444 | 5445 |
| 5445 | 5446 |
| 5446 #undef __ | 5447 #undef __ |
| 5447 | 5448 |
| 5448 } } // namespace v8::internal | 5449 } } // namespace v8::internal |
| OLD | NEW |