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 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 | 1732 |
1733 | 1733 |
1734 void LCodeGen::DoConstantE(LConstantE* instr) { | 1734 void LCodeGen::DoConstantE(LConstantE* instr) { |
1735 __ li(ToRegister(instr->result()), Operand(instr->value())); | 1735 __ li(ToRegister(instr->result()), Operand(instr->value())); |
1736 } | 1736 } |
1737 | 1737 |
1738 | 1738 |
1739 void LCodeGen::DoConstantT(LConstantT* instr) { | 1739 void LCodeGen::DoConstantT(LConstantT* instr) { |
1740 Handle<Object> object = instr->value(isolate()); | 1740 Handle<Object> object = instr->value(isolate()); |
1741 AllowDeferredHandleDereference smi_check; | 1741 AllowDeferredHandleDereference smi_check; |
1742 if (instr->hydrogen()->HasObjectMap()) { | |
1743 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | |
1744 ASSERT(object->IsHeapObject()); | |
1745 ASSERT(!object_map->is_stable() || | |
1746 *object_map == Handle<HeapObject>::cast(object)->map()); | |
1747 USE(object_map); | |
1748 } | |
1749 __ li(ToRegister(instr->result()), object); | 1742 __ li(ToRegister(instr->result()), object); |
1750 } | 1743 } |
1751 | 1744 |
1752 | 1745 |
1753 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1746 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1754 Register result = ToRegister(instr->result()); | 1747 Register result = ToRegister(instr->result()); |
1755 Register map = ToRegister(instr->value()); | 1748 Register map = ToRegister(instr->value()); |
1756 __ EnumLength(result, map); | 1749 __ EnumLength(result, map); |
1757 } | 1750 } |
1758 | 1751 |
(...skipping 4164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5923 __ lw(result, FieldMemOperand(scratch, | 5916 __ lw(result, FieldMemOperand(scratch, |
5924 FixedArray::kHeaderSize - kPointerSize)); | 5917 FixedArray::kHeaderSize - kPointerSize)); |
5925 __ bind(deferred->exit()); | 5918 __ bind(deferred->exit()); |
5926 __ bind(&done); | 5919 __ bind(&done); |
5927 } | 5920 } |
5928 | 5921 |
5929 | 5922 |
5930 #undef __ | 5923 #undef __ |
5931 | 5924 |
5932 } } // namespace v8::internal | 5925 } } // namespace v8::internal |
OLD | NEW |