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

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

Issue 12491023: Remove (H|L)JSArrayLength instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup Created 7 years, 8 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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 1704
1705 1705
1706 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1706 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1707 HClassOfTestAndBranch* instr) { 1707 HClassOfTestAndBranch* instr) {
1708 ASSERT(instr->value()->representation().IsTagged()); 1708 ASSERT(instr->value()->representation().IsTagged());
1709 LOperand* value = UseRegister(instr->value()); 1709 LOperand* value = UseRegister(instr->value());
1710 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); 1710 return new(zone()) LClassOfTestAndBranch(value, TempRegister());
1711 } 1711 }
1712 1712
1713 1713
1714 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1715 LOperand* array = UseRegisterAtStart(instr->value());
1716 return DefineAsRegister(new(zone()) LJSArrayLength(array));
1717 }
1718
1719
1720 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( 1714 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1721 HFixedArrayBaseLength* instr) { 1715 HFixedArrayBaseLength* instr) {
1722 LOperand* array = UseRegisterAtStart(instr->value()); 1716 LOperand* array = UseRegisterAtStart(instr->value());
1723 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); 1717 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array));
1724 } 1718 }
1725 1719
1726 1720
1727 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1721 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1728 LOperand* map = UseRegisterAtStart(instr->value()); 1722 LOperand* map = UseRegisterAtStart(instr->value());
1729 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1723 return DefineAsRegister(new(zone()) LMapEnumLength(map));
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 2534
2541 2535
2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2543 LOperand* object = UseRegister(instr->object()); 2537 LOperand* object = UseRegister(instr->object());
2544 LOperand* index = UseRegister(instr->index()); 2538 LOperand* index = UseRegister(instr->index());
2545 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2539 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2546 } 2540 }
2547 2541
2548 2542
2549 } } // namespace v8::internal 2543 } } // 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