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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1578
1579 1579
1580 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1580 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1581 HClassOfTestAndBranch* instr) { 1581 HClassOfTestAndBranch* instr) {
1582 ASSERT(instr->value()->representation().IsTagged()); 1582 ASSERT(instr->value()->representation().IsTagged());
1583 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), 1583 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()),
1584 TempRegister()); 1584 TempRegister());
1585 } 1585 }
1586 1586
1587 1587
1588 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1589 LOperand* array = UseRegisterAtStart(instr->value());
1590 return DefineAsRegister(new(zone()) LJSArrayLength(array));
1591 }
1592
1593
1594 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( 1588 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1595 HFixedArrayBaseLength* instr) { 1589 HFixedArrayBaseLength* instr) {
1596 LOperand* array = UseRegisterAtStart(instr->value()); 1590 LOperand* array = UseRegisterAtStart(instr->value());
1597 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); 1591 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array));
1598 } 1592 }
1599 1593
1600 1594
1601 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1595 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1602 LOperand* map = UseRegisterAtStart(instr->value()); 1596 LOperand* map = UseRegisterAtStart(instr->value());
1603 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1597 return DefineAsRegister(new(zone()) LMapEnumLength(map));
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 2410
2417 2411
2418 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2412 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2419 LOperand* object = UseRegister(instr->object()); 2413 LOperand* object = UseRegister(instr->object());
2420 LOperand* index = UseRegister(instr->index()); 2414 LOperand* index = UseRegister(instr->index());
2421 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2415 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2422 } 2416 }
2423 2417
2424 2418
2425 } } // namespace v8::internal 2419 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698