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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 1938
1939 1939
1940 void LCodeGen::DoConstantT(LConstantT* instr) { 1940 void LCodeGen::DoConstantT(LConstantT* instr) {
1941 Register reg = ToRegister(instr->result()); 1941 Register reg = ToRegister(instr->result());
1942 Handle<Object> object = instr->value(isolate()); 1942 Handle<Object> object = instr->value(isolate());
1943 AllowDeferredHandleDereference smi_check; 1943 AllowDeferredHandleDereference smi_check;
1944 __ LoadObject(reg, object); 1944 __ LoadObject(reg, object);
1945 } 1945 }
1946 1946
1947 1947
1948 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1949 Register result = ToRegister(instr->result());
1950 Register map = ToRegister(instr->value());
1951 __ EnumLength(result, map);
1952 }
1953
1954
1955 Operand LCodeGen::BuildSeqStringOperand(Register string, 1948 Operand LCodeGen::BuildSeqStringOperand(Register string,
1956 LOperand* index, 1949 LOperand* index,
1957 String::Encoding encoding) { 1950 String::Encoding encoding) {
1958 if (index->IsConstantOperand()) { 1951 if (index->IsConstantOperand()) {
1959 int offset = ToRepresentation(LConstantOperand::cast(index), 1952 int offset = ToRepresentation(LConstantOperand::cast(index),
1960 Representation::Integer32()); 1953 Representation::Integer32());
1961 if (encoding == String::TWO_BYTE_ENCODING) { 1954 if (encoding == String::TWO_BYTE_ENCODING) {
1962 offset *= kUC16Size; 1955 offset *= kUC16Size;
1963 } 1956 }
1964 STATIC_ASSERT(kCharSize == 1); 1957 STATIC_ASSERT(kCharSize == 1);
(...skipping 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after
6020 RecordSafepoint(Safepoint::kNoLazyDeopt); 6013 RecordSafepoint(Safepoint::kNoLazyDeopt);
6021 } 6014 }
6022 6015
6023 6016
6024 #undef __ 6017 #undef __
6025 6018
6026 } // namespace internal 6019 } // namespace internal
6027 } // namespace v8 6020 } // namespace v8
6028 6021
6029 #endif // V8_TARGET_ARCH_X87 6022 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698