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

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

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported deoptimizer to x64 and ARM. 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
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 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 return AssignPointerMap(DefineAsRegister(result)); 2091 return AssignPointerMap(DefineAsRegister(result));
2092 } 2092 }
2093 2093
2094 2094
2095 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2095 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2096 LOperand* string = UseRegisterAtStart(instr->value()); 2096 LOperand* string = UseRegisterAtStart(instr->value());
2097 return DefineAsRegister(new LStringLength(string)); 2097 return DefineAsRegister(new LStringLength(string));
2098 } 2098 }
2099 2099
2100 2100
2101 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
2102 LOperand* function = UseRegister(instr->function());
2103 LAllocateObject* result = new LAllocateObject(function);
2104 return AssignPointerMap(DefineAsRegister(result));
2105 }
2106
2107
2101 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 2108 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2102 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), instr); 2109 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), instr);
2103 } 2110 }
2104 2111
2105 2112
2106 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { 2113 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) {
2107 return MarkAsCall(DefineFixed(new LObjectLiteralFast, v0), instr); 2114 return MarkAsCall(DefineFixed(new LObjectLiteralFast, v0), instr);
2108 } 2115 }
2109 2116
2110 2117
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 2275
2269 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2276 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2270 LOperand* key = UseRegisterAtStart(instr->key()); 2277 LOperand* key = UseRegisterAtStart(instr->key());
2271 LOperand* object = UseRegisterAtStart(instr->object()); 2278 LOperand* object = UseRegisterAtStart(instr->object());
2272 LIn* result = new LIn(key, object); 2279 LIn* result = new LIn(key, object);
2273 return MarkAsCall(DefineFixed(result, v0), instr); 2280 return MarkAsCall(DefineFixed(result, v0), instr);
2274 } 2281 }
2275 2282
2276 2283
2277 } } // namespace v8::internal 2284 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698