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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.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/mips64/lithium-mips64.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 } 1799 }
1800 1800
1801 1801
1802 void LCodeGen::DoConstantT(LConstantT* instr) { 1802 void LCodeGen::DoConstantT(LConstantT* instr) {
1803 Handle<Object> object = instr->value(isolate()); 1803 Handle<Object> object = instr->value(isolate());
1804 AllowDeferredHandleDereference smi_check; 1804 AllowDeferredHandleDereference smi_check;
1805 __ Move(ToRegister(instr->result()), object); 1805 __ Move(ToRegister(instr->result()), object);
1806 } 1806 }
1807 1807
1808 1808
1809 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1810 Register result = ToRegister(instr->result());
1811 Register map = ToRegister(instr->value());
1812 __ EnumLength(result, map);
1813 }
1814
1815
1816 MemOperand LCodeGen::BuildSeqStringOperand(Register string, LOperand* index, 1809 MemOperand LCodeGen::BuildSeqStringOperand(Register string, LOperand* index,
1817 String::Encoding encoding) { 1810 String::Encoding encoding) {
1818 if (index->IsConstantOperand()) { 1811 if (index->IsConstantOperand()) {
1819 int offset = ToInteger32(LConstantOperand::cast(index)); 1812 int offset = ToInteger32(LConstantOperand::cast(index));
1820 if (encoding == String::TWO_BYTE_ENCODING) { 1813 if (encoding == String::TWO_BYTE_ENCODING) {
1821 offset *= kUC16Size; 1814 offset *= kUC16Size;
1822 } 1815 }
1823 STATIC_ASSERT(kCharSize == 1); 1816 STATIC_ASSERT(kCharSize == 1);
1824 return FieldMemOperand(string, SeqString::kHeaderSize + offset); 1817 return FieldMemOperand(string, SeqString::kHeaderSize + offset);
1825 } 1818 }
(...skipping 4041 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 __ Push(scope_info); 5860 __ Push(scope_info);
5868 __ push(ToRegister(instr->function())); 5861 __ push(ToRegister(instr->function()));
5869 CallRuntime(Runtime::kPushBlockContext, instr); 5862 CallRuntime(Runtime::kPushBlockContext, instr);
5870 RecordSafepoint(Safepoint::kNoLazyDeopt); 5863 RecordSafepoint(Safepoint::kNoLazyDeopt);
5871 } 5864 }
5872 5865
5873 5866
5874 #undef __ 5867 #undef __
5875 } // namespace internal 5868 } // namespace internal
5876 } // namespace v8 5869 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/ppc/lithium-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698