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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.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 4323 matching lines...) Expand 10 before | Expand all | Expand 10 after
4334 4334
4335 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); 4335 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr);
4336 } 4336 }
4337 4337
4338 4338
4339 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 4339 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
4340 CallRuntime(instr->function(), instr->arity(), instr); 4340 CallRuntime(instr->function(), instr->arity(), instr);
4341 } 4341 }
4342 4342
4343 4343
4344 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
4345 Register result = ToRegister(instr->result());
4346 Register base = ToRegister(instr->base_object());
4347 __ add(result, base, Operand(instr->offset()));
4348 }
4349
4350
4344 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 4351 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
4345 Register object = ToRegister(instr->object()); 4352 Register object = ToRegister(instr->object());
4346 Register value = ToRegister(instr->value()); 4353 Register value = ToRegister(instr->value());
4347 Register scratch = scratch0(); 4354 Register scratch = scratch0();
4348 int offset = instr->offset(); 4355 int offset = instr->offset();
4349 4356
4350 ASSERT(!object.is(value)); 4357 ASSERT(!object.is(value));
4351 4358
4352 if (!instr->transition().is_null()) { 4359 if (!instr->transition().is_null()) {
4353 __ mov(scratch, Operand(instr->transition())); 4360 __ mov(scratch, Operand(instr->transition()));
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
6391 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6398 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6392 __ ldr(result, FieldMemOperand(scratch, 6399 __ ldr(result, FieldMemOperand(scratch,
6393 FixedArray::kHeaderSize - kPointerSize)); 6400 FixedArray::kHeaderSize - kPointerSize));
6394 __ bind(&done); 6401 __ bind(&done);
6395 } 6402 }
6396 6403
6397 6404
6398 #undef __ 6405 #undef __
6399 6406
6400 } } // namespace v8::internal 6407 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698