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/arm/lithium-arm.cc

Issue 23601038: Add HLoadRoot hydrogen instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/arm/lithium-arm.h ('k') | 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 2157 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 } 2168 }
2169 2169
2170 2170
2171 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2171 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2172 HLoadFunctionPrototype* instr) { 2172 HLoadFunctionPrototype* instr) {
2173 return AssignEnvironment(DefineAsRegister( 2173 return AssignEnvironment(DefineAsRegister(
2174 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2174 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2175 } 2175 }
2176 2176
2177 2177
2178 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
2179 return DefineAsRegister(new(zone()) LLoadRoot);
2180 }
2181
2182
2178 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( 2183 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer(
2179 HLoadExternalArrayPointer* instr) { 2184 HLoadExternalArrayPointer* instr) {
2180 LOperand* input = UseRegisterAtStart(instr->value()); 2185 LOperand* input = UseRegisterAtStart(instr->value());
2181 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); 2186 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input));
2182 } 2187 }
2183 2188
2184 2189
2185 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 2190 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
2186 ASSERT(instr->key()->representation().IsSmiOrInteger32()); 2191 ASSERT(instr->key()->representation().IsSmiOrInteger32());
2187 ElementsKind elements_kind = instr->elements_kind(); 2192 ElementsKind elements_kind = instr->elements_kind();
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 2609
2605 2610
2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2611 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2607 LOperand* object = UseRegister(instr->object()); 2612 LOperand* object = UseRegister(instr->object());
2608 LOperand* index = UseRegister(instr->index()); 2613 LOperand* index = UseRegister(instr->index());
2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2614 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2610 } 2615 }
2611 2616
2612 2617
2613 } } // namespace v8::internal 2618 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698