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

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

Issue 1614943002: [crankshaft] Remove the useless HMapEnumLength instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Put NoObservableSideEffectsScope there Created 4 years, 11 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
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 } 1653 }
1654 1654
1655 1655
1656 void LCodeGen::DoConstantT(LConstantT* instr) { 1656 void LCodeGen::DoConstantT(LConstantT* instr) {
1657 Handle<Object> object = instr->value(isolate()); 1657 Handle<Object> object = instr->value(isolate());
1658 AllowDeferredHandleDereference smi_check; 1658 AllowDeferredHandleDereference smi_check;
1659 __ Move(ToRegister(instr->result()), object); 1659 __ Move(ToRegister(instr->result()), object);
1660 } 1660 }
1661 1661
1662 1662
1663 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1664 Register result = ToRegister(instr->result());
1665 Register map = ToRegister(instr->value());
1666 __ EnumLength(result, map);
1667 }
1668
1669
1670 Operand LCodeGen::BuildSeqStringOperand(Register string, 1663 Operand LCodeGen::BuildSeqStringOperand(Register string,
1671 LOperand* index, 1664 LOperand* index,
1672 String::Encoding encoding) { 1665 String::Encoding encoding) {
1673 if (index->IsConstantOperand()) { 1666 if (index->IsConstantOperand()) {
1674 int offset = ToInteger32(LConstantOperand::cast(index)); 1667 int offset = ToInteger32(LConstantOperand::cast(index));
1675 if (encoding == String::TWO_BYTE_ENCODING) { 1668 if (encoding == String::TWO_BYTE_ENCODING) {
1676 offset *= kUC16Size; 1669 offset *= kUC16Size;
1677 } 1670 }
1678 STATIC_ASSERT(kCharSize == 1); 1671 STATIC_ASSERT(kCharSize == 1);
1679 return FieldOperand(string, SeqString::kHeaderSize + offset); 1672 return FieldOperand(string, SeqString::kHeaderSize + offset);
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after
5649 RecordSafepoint(Safepoint::kNoLazyDeopt); 5642 RecordSafepoint(Safepoint::kNoLazyDeopt);
5650 } 5643 }
5651 5644
5652 5645
5653 #undef __ 5646 #undef __
5654 5647
5655 } // namespace internal 5648 } // namespace internal
5656 } // namespace v8 5649 } // namespace v8
5657 5650
5658 #endif // V8_TARGET_ARCH_X64 5651 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698