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

Side by Side Diff: src/x64/lithium-x64.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
« .gitignore ('K') | « src/x64/lithium-x64.h ('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 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 } 2058 }
2059 2059
2060 2060
2061 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2061 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2062 HLoadFunctionPrototype* instr) { 2062 HLoadFunctionPrototype* instr) {
2063 return AssignEnvironment(DefineAsRegister( 2063 return AssignEnvironment(DefineAsRegister(
2064 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2064 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2065 } 2065 }
2066 2066
2067 2067
2068 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) {
2069 LOperand* input = UseRegisterAtStart(instr->value());
2070 return DefineAsRegister(new(zone()) LLoadElements(input));
2071 }
2072
2073
2074 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( 2068 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer(
2075 HLoadExternalArrayPointer* instr) { 2069 HLoadExternalArrayPointer* instr) {
2076 LOperand* input = UseRegisterAtStart(instr->value()); 2070 LOperand* input = UseRegisterAtStart(instr->value());
2077 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); 2071 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input));
2078 } 2072 }
2079 2073
2080 2074
2081 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 2075 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
2082 ASSERT(instr->key()->representation().IsInteger32() || 2076 ASSERT(instr->key()->representation().IsInteger32() ||
2083 instr->key()->representation().IsTagged()); 2077 instr->key()->representation().IsTagged());
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2563 LOperand* object = UseRegister(instr->object()); 2557 LOperand* object = UseRegister(instr->object());
2564 LOperand* index = UseTempRegister(instr->index()); 2558 LOperand* index = UseTempRegister(instr->index());
2565 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2566 } 2560 }
2567 2561
2568 2562
2569 } } // namespace v8::internal 2563 } } // namespace v8::internal
2570 2564
2571 #endif // V8_TARGET_ARCH_X64 2565 #endif // V8_TARGET_ARCH_X64
OLDNEW
« .gitignore ('K') | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698