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

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

Issue 14556020: Remove HLoadElements instruction and replace with use of more general HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 2206
2207 2207
2208 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2208 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2209 HLoadFunctionPrototype* instr) { 2209 HLoadFunctionPrototype* instr) {
2210 return AssignEnvironment(DefineAsRegister( 2210 return AssignEnvironment(DefineAsRegister(
2211 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), 2211 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()),
2212 TempRegister()))); 2212 TempRegister())));
2213 } 2213 }
2214 2214
2215 2215
2216 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) {
2217 LOperand* input = UseRegisterAtStart(instr->value());
2218 return DefineAsRegister(new(zone()) LLoadElements(input));
2219 }
2220
2221
2222 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( 2216 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer(
2223 HLoadExternalArrayPointer* instr) { 2217 HLoadExternalArrayPointer* instr) {
2224 LOperand* input = UseRegisterAtStart(instr->value()); 2218 LOperand* input = UseRegisterAtStart(instr->value());
2225 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); 2219 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input));
2226 } 2220 }
2227 2221
2228 2222
2229 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 2223 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
2230 ASSERT(instr->key()->representation().IsInteger32() || 2224 ASSERT(instr->key()->representation().IsInteger32() ||
2231 instr->key()->representation().IsTagged()); 2225 instr->key()->representation().IsTagged());
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2772 LOperand* object = UseRegister(instr->object()); 2766 LOperand* object = UseRegister(instr->object());
2773 LOperand* index = UseTempRegister(instr->index()); 2767 LOperand* index = UseTempRegister(instr->index());
2774 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2775 } 2769 }
2776 2770
2777 2771
2778 } } // namespace v8::internal 2772 } } // namespace v8::internal
2779 2773
2780 #endif // V8_TARGET_ARCH_IA32 2774 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« .gitignore ('K') | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698