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 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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> object = instr->value(isolate()); | 1731 Handle<Object> object = instr->value(isolate()); |
1732 AllowDeferredHandleDereference smi_check; | 1732 AllowDeferredHandleDereference smi_check; |
1733 if (instr->hydrogen()->HasObjectMap()) { | 1733 if (instr->hydrogen()->HasObjectMap()) { |
1734 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | 1734 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
1735 CHECK(object->IsHeapObject()); | 1735 ASSERT(object->IsHeapObject()); |
1736 CHECK(!object_map->is_stable() || | 1736 ASSERT(!object_map->is_stable() || |
1737 *object_map == Handle<HeapObject>::cast(object)->map()); | 1737 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 1738 USE(object_map); |
1738 } | 1739 } |
1739 __ li(ToRegister(instr->result()), object); | 1740 __ li(ToRegister(instr->result()), object); |
1740 } | 1741 } |
1741 | 1742 |
1742 | 1743 |
1743 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1744 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1744 Register result = ToRegister(instr->result()); | 1745 Register result = ToRegister(instr->result()); |
1745 Register map = ToRegister(instr->value()); | 1746 Register map = ToRegister(instr->value()); |
1746 __ EnumLength(result, map); | 1747 __ EnumLength(result, map); |
1747 } | 1748 } |
(...skipping 4156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5904 __ lw(result, FieldMemOperand(scratch, | 5905 __ lw(result, FieldMemOperand(scratch, |
5905 FixedArray::kHeaderSize - kPointerSize)); | 5906 FixedArray::kHeaderSize - kPointerSize)); |
5906 __ bind(deferred->exit()); | 5907 __ bind(deferred->exit()); |
5907 __ bind(&done); | 5908 __ bind(&done); |
5908 } | 5909 } |
5909 | 5910 |
5910 | 5911 |
5911 #undef __ | 5912 #undef __ |
5912 | 5913 |
5913 } } // namespace v8::internal | 5914 } } // namespace v8::internal |
OLD | NEW |