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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 18508002: Remove HFixedArrayBaseLength instruction and replace with regular HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 AllowDeferredHandleDereference smi_check; 1546 AllowDeferredHandleDereference smi_check;
1547 if (value->IsSmi()) { 1547 if (value->IsSmi()) {
1548 __ Move(ToRegister(instr->result()), value); 1548 __ Move(ToRegister(instr->result()), value);
1549 } else { 1549 } else {
1550 __ LoadHeapObject(ToRegister(instr->result()), 1550 __ LoadHeapObject(ToRegister(instr->result()),
1551 Handle<HeapObject>::cast(value)); 1551 Handle<HeapObject>::cast(value));
1552 } 1552 }
1553 } 1553 }
1554 1554
1555 1555
1556 void LCodeGen::DoFixedArrayBaseLength(LFixedArrayBaseLength* instr) {
1557 Register result = ToRegister(instr->result());
1558 Register array = ToRegister(instr->value());
1559 __ movq(result, FieldOperand(array, FixedArrayBase::kLengthOffset));
1560 }
1561
1562
1563 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1556 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1564 Register result = ToRegister(instr->result()); 1557 Register result = ToRegister(instr->result());
1565 Register map = ToRegister(instr->value()); 1558 Register map = ToRegister(instr->value());
1566 __ EnumLength(result, map); 1559 __ EnumLength(result, map);
1567 } 1560 }
1568 1561
1569 1562
1570 void LCodeGen::DoElementsKind(LElementsKind* instr) { 1563 void LCodeGen::DoElementsKind(LElementsKind* instr) {
1571 Register result = ToRegister(instr->result()); 1564 Register result = ToRegister(instr->result());
1572 Register input = ToRegister(instr->value()); 1565 Register input = ToRegister(instr->value());
(...skipping 4080 matching lines...) Expand 10 before | Expand all | Expand 10 after
5653 FixedArray::kHeaderSize - kPointerSize)); 5646 FixedArray::kHeaderSize - kPointerSize));
5654 __ bind(&done); 5647 __ bind(&done);
5655 } 5648 }
5656 5649
5657 5650
5658 #undef __ 5651 #undef __
5659 5652
5660 } } // namespace v8::internal 5653 } } // namespace v8::internal
5661 5654
5662 #endif // V8_TARGET_ARCH_X64 5655 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen.cc ('K') | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698