OLD | NEW |
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...) Loading... |
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, v0), instr); |
| 2098 } |
| 2099 |
| 2100 |
2096 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2101 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
2097 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), instr); | 2102 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), 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, v0), instr); | 2107 return MarkAsCall(DefineFixed(new LObjectLiteral, v0), instr); |
2103 } | 2108 } |
2104 | 2109 |
2105 | 2110 |
2106 LInstruction* LChunkBuilder::DoObjectLiteralGeneric( | |
2107 HObjectLiteralGeneric* instr) { | |
2108 return MarkAsCall(DefineFixed(new LObjectLiteralGeneric, v0), instr); | |
2109 } | |
2110 | |
2111 | |
2112 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2111 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2113 return MarkAsCall(DefineFixed(new LRegExpLiteral, v0), instr); | 2112 return MarkAsCall(DefineFixed(new LRegExpLiteral, v0), 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, v0), instr); | 2117 return MarkAsCall(DefineFixed(new LFunctionLiteral, v0), instr); |
2119 } | 2118 } |
2120 | 2119 |
2121 | 2120 |
(...skipping 141 matching lines...) Loading... |
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, v0), instr); | 2267 return MarkAsCall(DefineFixed(result, v0), instr); |
2269 } | 2268 } |
2270 | 2269 |
2271 | 2270 |
2272 } } // namespace v8::internal | 2271 } } // namespace v8::internal |
OLD | NEW |