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

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

Issue 12880017: 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('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 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2325 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2326 info()->MarkAsDeferredCalling(); 2326 info()->MarkAsDeferredCalling();
2327 LOperand* size = UseTempRegister(instr->size()); 2327 LOperand* size = UseTempRegister(instr->size());
2328 LOperand* temp1 = TempRegister(); 2328 LOperand* temp1 = TempRegister();
2329 LOperand* temp2 = TempRegister(); 2329 LOperand* temp2 = TempRegister();
2330 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 2330 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2331 return AssignPointerMap(DefineAsRegister(result)); 2331 return AssignPointerMap(DefineAsRegister(result));
2332 } 2332 }
2333 2333
2334 2334
2335 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
2336 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, r0), instr);
2337 }
2338
2339
2340 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 2335 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2341 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr); 2336 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr);
2342 } 2337 }
2343 2338
2344 2339
2345 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { 2340 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) {
2346 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, r0), instr); 2341 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, r0), instr);
2347 } 2342 }
2348 2343
2349 2344
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2556 2551
2557 2552
2558 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2559 LOperand* object = UseRegister(instr->object()); 2554 LOperand* object = UseRegister(instr->object());
2560 LOperand* index = UseRegister(instr->index()); 2555 LOperand* index = UseRegister(instr->index());
2561 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2556 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2562 } 2557 }
2563 2558
2564 2559
2565 } } // namespace v8::internal 2560 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698