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

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

Issue 100013002: MIPS: Optimize WrapReceiver (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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-codegen-mips.cc ('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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 UseFixed(instr->left(), a0), 1080 UseFixed(instr->left(), a0),
1081 FixedTemp(t0)); 1081 FixedTemp(t0));
1082 return MarkAsCall(DefineFixed(result, v0), instr); 1082 return MarkAsCall(DefineFixed(result, v0), instr);
1083 } 1083 }
1084 1084
1085 1085
1086 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 1086 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
1087 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 1087 LOperand* receiver = UseRegisterAtStart(instr->receiver());
1088 LOperand* function = UseRegisterAtStart(instr->function()); 1088 LOperand* function = UseRegisterAtStart(instr->function());
1089 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 1089 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
1090 return AssignEnvironment(DefineSameAsFirst(result)); 1090 return AssignEnvironment(DefineAsRegister(result));
1091 } 1091 }
1092 1092
1093 1093
1094 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1094 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1095 LOperand* function = UseFixed(instr->function(), a1); 1095 LOperand* function = UseFixed(instr->function(), a1);
1096 LOperand* receiver = UseFixed(instr->receiver(), a0); 1096 LOperand* receiver = UseFixed(instr->receiver(), a0);
1097 LOperand* length = UseFixed(instr->length(), a2); 1097 LOperand* length = UseFixed(instr->length(), a2);
1098 LOperand* elements = UseFixed(instr->elements(), a3); 1098 LOperand* elements = UseFixed(instr->elements(), a3);
1099 LApplyArguments* result = new(zone()) LApplyArguments(function, 1099 LApplyArguments* result = new(zone()) LApplyArguments(function,
1100 receiver, 1100 receiver,
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 2597
2598 2598
2599 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2599 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2600 LOperand* object = UseRegister(instr->object()); 2600 LOperand* object = UseRegister(instr->object());
2601 LOperand* index = UseRegister(instr->index()); 2601 LOperand* index = UseRegister(instr->index());
2602 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2602 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2603 } 2603 }
2604 2604
2605 2605
2606 } } // namespace v8::internal 2606 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698