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

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

Issue 14108003: MIPS: Build fast literals in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/mips/lithium-mips.h ('k') | no next file » | 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 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2210 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2211 info()->MarkAsDeferredCalling(); 2211 info()->MarkAsDeferredCalling();
2212 LOperand* size = UseTempRegister(instr->size()); 2212 LOperand* size = UseTempRegister(instr->size());
2213 LOperand* temp1 = TempRegister(); 2213 LOperand* temp1 = TempRegister();
2214 LOperand* temp2 = TempRegister(); 2214 LOperand* temp2 = TempRegister();
2215 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 2215 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2216 return AssignPointerMap(DefineAsRegister(result)); 2216 return AssignPointerMap(DefineAsRegister(result));
2217 } 2217 }
2218 2218
2219 2219
2220 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
2221 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, v0), instr);
2222 }
2223
2224
2225 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 2220 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2226 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr); 2221 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr);
2227 } 2222 }
2228 2223
2229 2224
2230 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { 2225 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) {
2231 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, v0), instr); 2226 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, v0), instr);
2232 } 2227 }
2233 2228
2234 2229
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2441 2436
2442 2437
2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2438 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2444 LOperand* object = UseRegister(instr->object()); 2439 LOperand* object = UseRegister(instr->object());
2445 LOperand* index = UseRegister(instr->index()); 2440 LOperand* index = UseRegister(instr->index());
2446 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2441 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2447 } 2442 }
2448 2443
2449 2444
2450 } } // namespace v8::internal 2445 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698