Chromium Code Reviews| 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 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4188 __ Set(eax, Immediate(instr->arity())); | 4188 __ Set(eax, Immediate(instr->arity())); |
| 4189 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); | 4189 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); |
| 4190 } | 4190 } |
| 4191 | 4191 |
| 4192 | 4192 |
| 4193 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 4193 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
| 4194 CallRuntime(instr->function(), instr->arity(), instr); | 4194 CallRuntime(instr->function(), instr->arity(), instr); |
| 4195 } | 4195 } |
| 4196 | 4196 |
| 4197 | 4197 |
| 4198 void LCodeGen::DoSubAllocatedObject(LSubAllocatedObject* instr) { | |
| 4199 Register result = ToRegister(instr->result()); | |
| 4200 Register base = ToRegister(instr->base_object()); | |
| 4201 __ lea(result, | |
| 4202 Operand(base, instr->offset())); | |
|
Hannes Payer (out of office)
2013/03/13 08:48:39
fits in one line?
| |
| 4203 } | |
| 4204 | |
| 4205 | |
| 4198 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 4206 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
| 4199 Register object = ToRegister(instr->object()); | 4207 Register object = ToRegister(instr->object()); |
| 4200 Register value = ToRegister(instr->value()); | 4208 Register value = ToRegister(instr->value()); |
| 4201 int offset = instr->offset(); | 4209 int offset = instr->offset(); |
| 4202 | 4210 |
| 4203 if (!instr->transition().is_null()) { | 4211 if (!instr->transition().is_null()) { |
| 4204 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { | 4212 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { |
| 4205 __ mov(FieldOperand(object, HeapObject::kMapOffset), instr->transition()); | 4213 __ mov(FieldOperand(object, HeapObject::kMapOffset), instr->transition()); |
| 4206 } else { | 4214 } else { |
| 4207 Register temp = ToRegister(instr->temp()); | 4215 Register temp = ToRegister(instr->temp()); |
| (...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6287 FixedArray::kHeaderSize - kPointerSize)); | 6295 FixedArray::kHeaderSize - kPointerSize)); |
| 6288 __ bind(&done); | 6296 __ bind(&done); |
| 6289 } | 6297 } |
| 6290 | 6298 |
| 6291 | 6299 |
| 6292 #undef __ | 6300 #undef __ |
| 6293 | 6301 |
| 6294 } } // namespace v8::internal | 6302 } } // namespace v8::internal |
| 6295 | 6303 |
| 6296 #endif // V8_TARGET_ARCH_IA32 | 6304 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |