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

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

Issue 25231005: ARM: Tweak LoadKeyed. (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 | « no previous file | 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 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 2219
2220 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 2220 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
2221 ASSERT(instr->key()->representation().IsSmiOrInteger32()); 2221 ASSERT(instr->key()->representation().IsSmiOrInteger32());
2222 ElementsKind elements_kind = instr->elements_kind(); 2222 ElementsKind elements_kind = instr->elements_kind();
2223 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); 2223 LOperand* key = UseRegisterOrConstantAtStart(instr->key());
2224 LLoadKeyed* result = NULL; 2224 LLoadKeyed* result = NULL;
2225 2225
2226 if (!instr->is_external()) { 2226 if (!instr->is_external()) {
2227 LOperand* obj = NULL; 2227 LOperand* obj = NULL;
2228 if (instr->representation().IsDouble()) { 2228 if (instr->representation().IsDouble()) {
2229 obj = UseTempRegister(instr->elements()); 2229 obj = UseRegister(instr->elements());
2230 } else { 2230 } else {
2231 ASSERT(instr->representation().IsSmiOrTagged()); 2231 ASSERT(instr->representation().IsSmiOrTagged());
2232 obj = UseRegisterAtStart(instr->elements()); 2232 obj = UseRegisterAtStart(instr->elements());
2233 } 2233 }
2234 result = new(zone()) LLoadKeyed(obj, key); 2234 result = new(zone()) LLoadKeyed(obj, key);
2235 } else { 2235 } else {
2236 ASSERT( 2236 ASSERT(
2237 (instr->representation().IsInteger32() && 2237 (instr->representation().IsInteger32() &&
2238 (elements_kind != EXTERNAL_FLOAT_ELEMENTS) && 2238 (elements_kind != EXTERNAL_FLOAT_ELEMENTS) &&
2239 (elements_kind != EXTERNAL_DOUBLE_ELEMENTS)) || 2239 (elements_kind != EXTERNAL_DOUBLE_ELEMENTS)) ||
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2659
2660 2660
2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2662 LOperand* object = UseRegister(instr->object()); 2662 LOperand* object = UseRegister(instr->object());
2663 LOperand* index = UseRegister(instr->index()); 2663 LOperand* index = UseRegister(instr->index());
2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2665 } 2665 }
2666 2666
2667 2667
2668 } } // namespace v8::internal 2668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698