OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3941 isolate()->builtins()->ArrayConstructCode(); | 3941 isolate()->builtins()->ArrayConstructCode(); |
3942 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); | 3942 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); |
3943 } | 3943 } |
3944 | 3944 |
3945 | 3945 |
3946 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 3946 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
3947 CallRuntime(instr->function(), instr->arity(), instr); | 3947 CallRuntime(instr->function(), instr->arity(), instr); |
3948 } | 3948 } |
3949 | 3949 |
3950 | 3950 |
| 3951 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { |
| 3952 Register result = ToRegister(instr->result()); |
| 3953 Register base = ToRegister(instr->base_object()); |
| 3954 __ lea(result, Operand(base, instr->offset())); |
| 3955 } |
| 3956 |
| 3957 |
3951 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 3958 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
3952 Register object = ToRegister(instr->object()); | 3959 Register object = ToRegister(instr->object()); |
3953 Register value = ToRegister(instr->value()); | 3960 Register value = ToRegister(instr->value()); |
3954 int offset = instr->offset(); | 3961 int offset = instr->offset(); |
3955 | 3962 |
3956 if (!instr->transition().is_null()) { | 3963 if (!instr->transition().is_null()) { |
3957 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { | 3964 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { |
3958 __ Move(FieldOperand(object, HeapObject::kMapOffset), | 3965 __ Move(FieldOperand(object, HeapObject::kMapOffset), |
3959 instr->transition()); | 3966 instr->transition()); |
3960 } else { | 3967 } else { |
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5840 FixedArray::kHeaderSize - kPointerSize)); | 5847 FixedArray::kHeaderSize - kPointerSize)); |
5841 __ bind(&done); | 5848 __ bind(&done); |
5842 } | 5849 } |
5843 | 5850 |
5844 | 5851 |
5845 #undef __ | 5852 #undef __ |
5846 | 5853 |
5847 } } // namespace v8::internal | 5854 } } // namespace v8::internal |
5848 | 5855 |
5849 #endif // V8_TARGET_ARCH_X64 | 5856 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |