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

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

Issue 96993002: [v8-dev] ARM: 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 | « no previous file | 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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 UseFixed(instr->left(), r0), 1077 UseFixed(instr->left(), r0),
1078 FixedTemp(r4)); 1078 FixedTemp(r4));
1079 return MarkAsCall(DefineFixed(result, r0), instr); 1079 return MarkAsCall(DefineFixed(result, r0), instr);
1080 } 1080 }
1081 1081
1082 1082
1083 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 1083 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
1084 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 1084 LOperand* receiver = UseRegisterAtStart(instr->receiver());
1085 LOperand* function = UseRegisterAtStart(instr->function()); 1085 LOperand* function = UseRegisterAtStart(instr->function());
1086 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 1086 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
1087 return AssignEnvironment(DefineSameAsFirst(result)); 1087 return AssignEnvironment(DefineAsRegister(result));
1088 } 1088 }
1089 1089
1090 1090
1091 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1091 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1092 LOperand* function = UseFixed(instr->function(), r1); 1092 LOperand* function = UseFixed(instr->function(), r1);
1093 LOperand* receiver = UseFixed(instr->receiver(), r0); 1093 LOperand* receiver = UseFixed(instr->receiver(), r0);
1094 LOperand* length = UseFixed(instr->length(), r2); 1094 LOperand* length = UseFixed(instr->length(), r2);
1095 LOperand* elements = UseFixed(instr->elements(), r3); 1095 LOperand* elements = UseFixed(instr->elements(), r3);
1096 LApplyArguments* result = new(zone()) LApplyArguments(function, 1096 LApplyArguments* result = new(zone()) LApplyArguments(function,
1097 receiver, 1097 receiver,
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 2671
2672 2672
2673 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2673 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2674 LOperand* object = UseRegister(instr->object()); 2674 LOperand* object = UseRegister(instr->object());
2675 LOperand* index = UseRegister(instr->index()); 2675 LOperand* index = UseRegister(instr->index());
2676 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2676 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2677 } 2677 }
2678 2678
2679 2679
2680 } } // namespace v8::internal 2680 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698