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 4738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4749 // smi | 4749 // smi |
4750 __ bind(&is_smi); | 4750 __ bind(&is_smi); |
4751 __ SmiUntag(input_reg); | 4751 __ SmiUntag(input_reg); |
4752 __ ClampUint8(input_reg); | 4752 __ ClampUint8(input_reg); |
4753 | 4753 |
4754 __ bind(&done); | 4754 __ bind(&done); |
4755 } | 4755 } |
4756 | 4756 |
4757 | 4757 |
4758 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { | 4758 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
| 4759 ASSERT(instr->temp()->Equals(instr->result())); |
4759 Register reg = ToRegister(instr->temp()); | 4760 Register reg = ToRegister(instr->temp()); |
4760 | 4761 |
4761 Handle<JSObject> holder = instr->holder(); | 4762 Handle<JSObject> holder = instr->holder(); |
4762 Handle<JSObject> current_prototype = instr->prototype(); | 4763 Handle<JSObject> current_prototype = instr->prototype(); |
4763 | 4764 |
4764 // Load prototype object. | 4765 // Load prototype object. |
4765 __ LoadHeapObject(reg, current_prototype); | 4766 __ LoadHeapObject(reg, current_prototype); |
4766 | 4767 |
4767 // Check prototype maps up to the holder. | 4768 // Check prototype maps up to the holder. |
4768 while (!current_prototype.is_identical_to(holder)) { | 4769 while (!current_prototype.is_identical_to(holder)) { |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5537 FixedArray::kHeaderSize - kPointerSize)); | 5538 FixedArray::kHeaderSize - kPointerSize)); |
5538 __ bind(&done); | 5539 __ bind(&done); |
5539 } | 5540 } |
5540 | 5541 |
5541 | 5542 |
5542 #undef __ | 5543 #undef __ |
5543 | 5544 |
5544 } } // namespace v8::internal | 5545 } } // namespace v8::internal |
5545 | 5546 |
5546 #endif // V8_TARGET_ARCH_IA32 | 5547 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |