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

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

Issue 25666006: Get rid of the HInstanceSize instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 HInstanceOfKnownGlobal* instr) { 1061 HInstanceOfKnownGlobal* instr) {
1062 LInstanceOfKnownGlobal* result = 1062 LInstanceOfKnownGlobal* result =
1063 new(zone()) LInstanceOfKnownGlobal( 1063 new(zone()) LInstanceOfKnownGlobal(
1064 UseFixed(instr->context(), cp), 1064 UseFixed(instr->context(), cp),
1065 UseFixed(instr->left(), a0), 1065 UseFixed(instr->left(), a0),
1066 FixedTemp(t0)); 1066 FixedTemp(t0));
1067 return MarkAsCall(DefineFixed(result, v0), instr); 1067 return MarkAsCall(DefineFixed(result, v0), instr);
1068 } 1068 }
1069 1069
1070 1070
1071 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) {
1072 LOperand* object = UseRegisterAtStart(instr->object());
1073 return DefineAsRegister(new(zone()) LInstanceSize(object));
1074 }
1075
1076
1077 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 1071 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
1078 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 1072 LOperand* receiver = UseRegisterAtStart(instr->receiver());
1079 LOperand* function = UseRegisterAtStart(instr->function()); 1073 LOperand* function = UseRegisterAtStart(instr->function());
1080 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 1074 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
1081 return AssignEnvironment(DefineSameAsFirst(result)); 1075 return AssignEnvironment(DefineSameAsFirst(result));
1082 } 1076 }
1083 1077
1084 1078
1085 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1079 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1086 LOperand* function = UseFixed(instr->function(), a1); 1080 LOperand* function = UseFixed(instr->function(), a1);
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 2578
2585 2579
2586 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2580 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2587 LOperand* object = UseRegister(instr->object()); 2581 LOperand* object = UseRegister(instr->object());
2588 LOperand* index = UseRegister(instr->index()); 2582 LOperand* index = UseRegister(instr->index());
2589 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2583 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2590 } 2584 }
2591 2585
2592 2586
2593 } } // namespace v8::internal 2587 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698