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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3387 matching lines...) Expand 10 before | Expand all | Expand 10 after
3398 DCHECK(ToRegister(instr->result()).is(x0)); 3398 DCHECK(ToRegister(instr->result()).is(x0));
3399 } 3399 }
3400 3400
3401 3401
3402 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { 3402 void LCodeGen::DoLoadRoot(LLoadRoot* instr) {
3403 Register result = ToRegister(instr->result()); 3403 Register result = ToRegister(instr->result());
3404 __ LoadRoot(result, instr->index()); 3404 __ LoadRoot(result, instr->index());
3405 } 3405 }
3406 3406
3407 3407
3408 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
3409 Register result = ToRegister(instr->result());
3410 Register map = ToRegister(instr->value());
3411 __ EnumLengthSmi(result, map);
3412 }
3413
3414
3415 void LCodeGen::DoMathAbs(LMathAbs* instr) { 3408 void LCodeGen::DoMathAbs(LMathAbs* instr) {
3416 Representation r = instr->hydrogen()->value()->representation(); 3409 Representation r = instr->hydrogen()->value()->representation();
3417 if (r.IsDouble()) { 3410 if (r.IsDouble()) {
3418 DoubleRegister input = ToDoubleRegister(instr->value()); 3411 DoubleRegister input = ToDoubleRegister(instr->value());
3419 DoubleRegister result = ToDoubleRegister(instr->result()); 3412 DoubleRegister result = ToDoubleRegister(instr->result());
3420 __ Fabs(result, input); 3413 __ Fabs(result, input);
3421 } else if (r.IsSmi() || r.IsInteger32()) { 3414 } else if (r.IsSmi() || r.IsInteger32()) {
3422 Register input = r.IsSmi() ? ToRegister(instr->value()) 3415 Register input = r.IsSmi() ? ToRegister(instr->value())
3423 : ToRegister32(instr->value()); 3416 : ToRegister32(instr->value());
3424 Register result = r.IsSmi() ? ToRegister(instr->result()) 3417 Register result = r.IsSmi() ? ToRegister(instr->result())
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5767 Handle<ScopeInfo> scope_info = instr->scope_info(); 5760 Handle<ScopeInfo> scope_info = instr->scope_info();
5768 __ Push(scope_info); 5761 __ Push(scope_info);
5769 __ Push(ToRegister(instr->function())); 5762 __ Push(ToRegister(instr->function()));
5770 CallRuntime(Runtime::kPushBlockContext, instr); 5763 CallRuntime(Runtime::kPushBlockContext, instr);
5771 RecordSafepoint(Safepoint::kNoLazyDeopt); 5764 RecordSafepoint(Safepoint::kNoLazyDeopt);
5772 } 5765 }
5773 5766
5774 5767
5775 } // namespace internal 5768 } // namespace internal
5776 } // namespace v8 5769 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698