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

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

Issue 9643001: Inline functions that use arguments object in f.apply(o, arguments) pattern. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: regression test Created 8 years, 9 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1091
1092 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1092 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1093 HInstanceOfKnownGlobal* instr) { 1093 HInstanceOfKnownGlobal* instr) {
1094 LInstanceOfKnownGlobal* result = 1094 LInstanceOfKnownGlobal* result =
1095 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), r0), 1095 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), r0),
1096 FixedTemp(r4)); 1096 FixedTemp(r4));
1097 return MarkAsCall(DefineFixed(result, r0), instr); 1097 return MarkAsCall(DefineFixed(result, r0), instr);
1098 } 1098 }
1099 1099
1100 1100
1101 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
1102 LOperand* receiver = UseRegisterAtStart(instr->receiver());
1103 LOperand* function = UseRegisterAtStart(instr->function());
1104 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
1105 return AssignEnvironment(DefineSameAsFirst(result));
1106 }
1107
1108
1101 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1109 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1102 LOperand* function = UseFixed(instr->function(), r1); 1110 LOperand* function = UseFixed(instr->function(), r1);
1103 LOperand* receiver = UseFixed(instr->receiver(), r0); 1111 LOperand* receiver = UseFixed(instr->receiver(), r0);
1104 LOperand* length = UseFixed(instr->length(), r2); 1112 LOperand* length = UseFixed(instr->length(), r2);
1105 LOperand* elements = UseFixed(instr->elements(), r3); 1113 LOperand* elements = UseFixed(instr->elements(), r3);
1106 LApplyArguments* result = new(zone()) LApplyArguments(function, 1114 LApplyArguments* result = new(zone()) LApplyArguments(function,
1107 receiver, 1115 receiver,
1108 length, 1116 length,
1109 elements); 1117 elements);
1110 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); 1118 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY);
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 2308
2301 2309
2302 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2310 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2303 LOperand* object = UseRegister(instr->object()); 2311 LOperand* object = UseRegister(instr->object());
2304 LOperand* index = UseRegister(instr->index()); 2312 LOperand* index = UseRegister(instr->index());
2305 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2313 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2306 } 2314 }
2307 2315
2308 2316
2309 } } // namespace v8::internal 2317 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698