| 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 __ Move(result, v); | 1721 __ Move(result, v); |
| 1722 } | 1722 } |
| 1723 | 1723 |
| 1724 | 1724 |
| 1725 void LCodeGen::DoConstantE(LConstantE* instr) { | 1725 void LCodeGen::DoConstantE(LConstantE* instr) { |
| 1726 __ li(ToRegister(instr->result()), Operand(instr->value())); | 1726 __ li(ToRegister(instr->result()), Operand(instr->value())); |
| 1727 } | 1727 } |
| 1728 | 1728 |
| 1729 | 1729 |
| 1730 void LCodeGen::DoConstantT(LConstantT* instr) { | 1730 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1731 Handle<Object> value = instr->value(isolate()); | 1731 Handle<Object> object = instr->value(isolate()); |
| 1732 AllowDeferredHandleDereference smi_check; | 1732 AllowDeferredHandleDereference smi_check; |
| 1733 __ li(ToRegister(instr->result()), value); | 1733 if (instr->hydrogen()->HasObjectMap()) { |
| 1734 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
| 1735 CHECK(object->IsHeapObject()); |
| 1736 CHECK(!object_map->is_stable() || |
| 1737 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 1738 } |
| 1739 __ li(ToRegister(instr->result()), object); |
| 1734 } | 1740 } |
| 1735 | 1741 |
| 1736 | 1742 |
| 1737 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1743 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
| 1738 Register result = ToRegister(instr->result()); | 1744 Register result = ToRegister(instr->result()); |
| 1739 Register map = ToRegister(instr->value()); | 1745 Register map = ToRegister(instr->value()); |
| 1740 __ EnumLength(result, map); | 1746 __ EnumLength(result, map); |
| 1741 } | 1747 } |
| 1742 | 1748 |
| 1743 | 1749 |
| (...skipping 4154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5898 __ lw(result, FieldMemOperand(scratch, | 5904 __ lw(result, FieldMemOperand(scratch, |
| 5899 FixedArray::kHeaderSize - kPointerSize)); | 5905 FixedArray::kHeaderSize - kPointerSize)); |
| 5900 __ bind(deferred->exit()); | 5906 __ bind(deferred->exit()); |
| 5901 __ bind(&done); | 5907 __ bind(&done); |
| 5902 } | 5908 } |
| 5903 | 5909 |
| 5904 | 5910 |
| 5905 #undef __ | 5911 #undef __ |
| 5906 | 5912 |
| 5907 } } // namespace v8::internal | 5913 } } // namespace v8::internal |
| OLD | NEW |