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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-mips.cc ('k') | src/crankshaft/mips64/lithium-mips64.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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 } 1740 }
1741 1741
1742 1742
1743 void LCodeGen::DoConstantT(LConstantT* instr) { 1743 void LCodeGen::DoConstantT(LConstantT* instr) {
1744 Handle<Object> object = instr->value(isolate()); 1744 Handle<Object> object = instr->value(isolate());
1745 AllowDeferredHandleDereference smi_check; 1745 AllowDeferredHandleDereference smi_check;
1746 __ li(ToRegister(instr->result()), object); 1746 __ li(ToRegister(instr->result()), object);
1747 } 1747 }
1748 1748
1749 1749
1750 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1751 Register result = ToRegister(instr->result());
1752 Register map = ToRegister(instr->value());
1753 __ EnumLength(result, map);
1754 }
1755
1756
1757 MemOperand LCodeGen::BuildSeqStringOperand(Register string, 1750 MemOperand LCodeGen::BuildSeqStringOperand(Register string,
1758 LOperand* index, 1751 LOperand* index,
1759 String::Encoding encoding) { 1752 String::Encoding encoding) {
1760 if (index->IsConstantOperand()) { 1753 if (index->IsConstantOperand()) {
1761 int offset = ToInteger32(LConstantOperand::cast(index)); 1754 int offset = ToInteger32(LConstantOperand::cast(index));
1762 if (encoding == String::TWO_BYTE_ENCODING) { 1755 if (encoding == String::TWO_BYTE_ENCODING) {
1763 offset *= kUC16Size; 1756 offset *= kUC16Size;
1764 } 1757 }
1765 STATIC_ASSERT(kCharSize == 1); 1758 STATIC_ASSERT(kCharSize == 1);
1766 return FieldMemOperand(string, SeqString::kHeaderSize + offset); 1759 return FieldMemOperand(string, SeqString::kHeaderSize + offset);
(...skipping 4042 matching lines...) Expand 10 before | Expand all | Expand 10 after
5809 __ Push(at, ToRegister(instr->function())); 5802 __ Push(at, ToRegister(instr->function()));
5810 CallRuntime(Runtime::kPushBlockContext, instr); 5803 CallRuntime(Runtime::kPushBlockContext, instr);
5811 RecordSafepoint(Safepoint::kNoLazyDeopt); 5804 RecordSafepoint(Safepoint::kNoLazyDeopt);
5812 } 5805 }
5813 5806
5814 5807
5815 #undef __ 5808 #undef __
5816 5809
5817 } // namespace internal 5810 } // namespace internal
5818 } // namespace v8 5811 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.cc ('k') | src/crankshaft/mips64/lithium-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698