Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 12812002: HSubAllocatedObject instruction allows hydrogen code to carve up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated to HInnerAllocatedObject Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
4199 Register result = ToRegister(instr->result());
4200 Register base = ToRegister(instr->base_object());
4201 __ lea(result, Operand(base, instr->offset()));
4202 }
4203
4204
4198 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 4205 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
4199 Register object = ToRegister(instr->object()); 4206 Register object = ToRegister(instr->object());
4200 Register value = ToRegister(instr->value()); 4207 Register value = ToRegister(instr->value());
4201 int offset = instr->offset(); 4208 int offset = instr->offset();
4202 4209
4203 if (!instr->transition().is_null()) { 4210 if (!instr->transition().is_null()) {
4204 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { 4211 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) {
4205 __ mov(FieldOperand(object, HeapObject::kMapOffset), instr->transition()); 4212 __ mov(FieldOperand(object, HeapObject::kMapOffset), instr->transition());
4206 } else { 4213 } else {
4207 Register temp = ToRegister(instr->temp()); 4214 Register temp = ToRegister(instr->temp());
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
6287 FixedArray::kHeaderSize - kPointerSize)); 6294 FixedArray::kHeaderSize - kPointerSize));
6288 __ bind(&done); 6295 __ bind(&done);
6289 } 6296 }
6290 6297
6291 6298
6292 #undef __ 6299 #undef __
6293 6300
6294 } } // namespace v8::internal 6301 } } // namespace v8::internal
6295 6302
6296 #endif // V8_TARGET_ARCH_IA32 6303 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698