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

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

Issue 9403018: Implement fast literal support in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Daniel Clifford. Created 8 years, 10 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 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 return AssignPointerMap(DefineAsRegister(result)); 2086 return AssignPointerMap(DefineAsRegister(result));
2087 } 2087 }
2088 2088
2089 2089
2090 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2090 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2091 LOperand* string = UseRegisterAtStart(instr->value()); 2091 LOperand* string = UseRegisterAtStart(instr->value());
2092 return DefineAsRegister(new LStringLength(string)); 2092 return DefineAsRegister(new LStringLength(string));
2093 } 2093 }
2094 2094
2095 2095
2096 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
2097 return MarkAsCall(DefineFixed(new LFastLiteral, r0), instr);
2098 }
2099
2100
2096 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 2101 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2097 return MarkAsCall(DefineFixed(new LArrayLiteral, r0), instr); 2102 return MarkAsCall(DefineFixed(new LArrayLiteral, r0), instr);
2098 } 2103 }
2099 2104
2100 2105
2101 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { 2106 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) {
2102 return MarkAsCall(DefineFixed(new LObjectLiteralFast, r0), instr); 2107 return MarkAsCall(DefineFixed(new LObjectLiteral, r0), instr);
2103 } 2108 }
2104 2109
2105 2110
2106 LInstruction* LChunkBuilder::DoObjectLiteralGeneric(
2107 HObjectLiteralGeneric* instr) {
2108 return MarkAsCall(DefineFixed(new LObjectLiteralGeneric, r0), instr);
2109 }
2110
2111
2112 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2111 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2113 return MarkAsCall(DefineFixed(new LRegExpLiteral, r0), instr); 2112 return MarkAsCall(DefineFixed(new LRegExpLiteral, r0), instr);
2114 } 2113 }
2115 2114
2116 2115
2117 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 2116 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2118 return MarkAsCall(DefineFixed(new LFunctionLiteral, r0), instr); 2117 return MarkAsCall(DefineFixed(new LFunctionLiteral, r0), instr);
2119 } 2118 }
2120 2119
2121 2120
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 2262
2264 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2263 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2265 LOperand* key = UseRegisterAtStart(instr->key()); 2264 LOperand* key = UseRegisterAtStart(instr->key());
2266 LOperand* object = UseRegisterAtStart(instr->object()); 2265 LOperand* object = UseRegisterAtStart(instr->object());
2267 LIn* result = new LIn(key, object); 2266 LIn* result = new LIn(key, object);
2268 return MarkAsCall(DefineFixed(result, r0), instr); 2267 return MarkAsCall(DefineFixed(result, r0), instr);
2269 } 2268 }
2270 2269
2271 2270
2272 } } // namespace v8::internal 2271 } } // 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