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

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

Issue 12784003: MIPS: HInnerAllocatedObject instruction allows hydrogen code to carve up allocated regions into sub… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/mips/lithium-mips.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 3986 matching lines...) Expand 10 before | Expand all | Expand 10 after
3997 3997
3998 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); 3998 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr);
3999 } 3999 }
4000 4000
4001 4001
4002 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 4002 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
4003 CallRuntime(instr->function(), instr->arity(), instr); 4003 CallRuntime(instr->function(), instr->arity(), instr);
4004 } 4004 }
4005 4005
4006 4006
4007 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
4008 Register result = ToRegister(instr->result());
4009 Register base = ToRegister(instr->base_object());
4010 __ Addu(result, base, Operand(instr->offset()));
4011 }
4012
4013
4007 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 4014 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
4008 Register object = ToRegister(instr->object()); 4015 Register object = ToRegister(instr->object());
4009 Register value = ToRegister(instr->value()); 4016 Register value = ToRegister(instr->value());
4010 Register scratch = scratch0(); 4017 Register scratch = scratch0();
4011 int offset = instr->offset(); 4018 int offset = instr->offset();
4012 4019
4013 ASSERT(!object.is(value)); 4020 ASSERT(!object.is(value));
4014 4021
4015 if (!instr->transition().is_null()) { 4022 if (!instr->transition().is_null()) {
4016 __ li(scratch, Operand(instr->transition())); 4023 __ li(scratch, Operand(instr->transition()));
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
6102 __ Subu(scratch, result, scratch); 6109 __ Subu(scratch, result, scratch);
6103 __ lw(result, FieldMemOperand(scratch, 6110 __ lw(result, FieldMemOperand(scratch,
6104 FixedArray::kHeaderSize - kPointerSize)); 6111 FixedArray::kHeaderSize - kPointerSize));
6105 __ bind(&done); 6112 __ bind(&done);
6106 } 6113 }
6107 6114
6108 6115
6109 #undef __ 6116 #undef __
6110 6117
6111 } } // namespace v8::internal 6118 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698