OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |