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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 1661
1662 1662
1663 void LCodeGen::DoConstantT(LConstantT* instr) { 1663 void LCodeGen::DoConstantT(LConstantT* instr) {
1664 Register reg = ToRegister(instr->result()); 1664 Register reg = ToRegister(instr->result());
1665 Handle<Object> object = instr->value(isolate()); 1665 Handle<Object> object = instr->value(isolate());
1666 AllowDeferredHandleDereference smi_check; 1666 AllowDeferredHandleDereference smi_check;
1667 __ LoadObject(reg, object); 1667 __ LoadObject(reg, object);
1668 } 1668 }
1669 1669
1670 1670
1671 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1672 Register result = ToRegister(instr->result());
1673 Register map = ToRegister(instr->value());
1674 __ EnumLength(result, map);
1675 }
1676
1677
1678 Operand LCodeGen::BuildSeqStringOperand(Register string, 1671 Operand LCodeGen::BuildSeqStringOperand(Register string,
1679 LOperand* index, 1672 LOperand* index,
1680 String::Encoding encoding) { 1673 String::Encoding encoding) {
1681 if (index->IsConstantOperand()) { 1674 if (index->IsConstantOperand()) {
1682 int offset = ToRepresentation(LConstantOperand::cast(index), 1675 int offset = ToRepresentation(LConstantOperand::cast(index),
1683 Representation::Integer32()); 1676 Representation::Integer32());
1684 if (encoding == String::TWO_BYTE_ENCODING) { 1677 if (encoding == String::TWO_BYTE_ENCODING) {
1685 offset *= kUC16Size; 1678 offset *= kUC16Size;
1686 } 1679 }
1687 STATIC_ASSERT(kCharSize == 1); 1680 STATIC_ASSERT(kCharSize == 1);
(...skipping 3771 matching lines...) Expand 10 before | Expand all | Expand 10 after
5459 RecordSafepoint(Safepoint::kNoLazyDeopt); 5452 RecordSafepoint(Safepoint::kNoLazyDeopt);
5460 } 5453 }
5461 5454
5462 5455
5463 #undef __ 5456 #undef __
5464 5457
5465 } // namespace internal 5458 } // namespace internal
5466 } // namespace v8 5459 } // namespace v8
5467 5460
5468 #endif // V8_TARGET_ARCH_IA32 5461 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698