OLD | NEW |
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/compiler/linkage.h" | 5 #include "src/compiler/linkage.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/builtins/builtins-utils.h" | 8 #include "src/builtins/builtins-utils.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 return MachineType::Int8(); | 30 return MachineType::Int8(); |
31 case Representation::kUInteger8: | 31 case Representation::kUInteger8: |
32 return MachineType::Uint8(); | 32 return MachineType::Uint8(); |
33 case Representation::kInteger16: | 33 case Representation::kInteger16: |
34 return MachineType::Int16(); | 34 return MachineType::Int16(); |
35 case Representation::kUInteger16: | 35 case Representation::kUInteger16: |
36 return MachineType::Uint16(); | 36 return MachineType::Uint16(); |
37 case Representation::kInteger32: | 37 case Representation::kInteger32: |
38 return MachineType::Int32(); | 38 return MachineType::Int32(); |
39 case Representation::kSmi: | 39 case Representation::kSmi: |
| 40 return MachineType::TaggedSigned(); |
40 case Representation::kTagged: | 41 case Representation::kTagged: |
| 42 return MachineType::AnyTagged(); |
41 case Representation::kHeapObject: | 43 case Representation::kHeapObject: |
42 return MachineType::AnyTagged(); | 44 return MachineType::TaggedPointer(); |
43 case Representation::kDouble: | 45 case Representation::kDouble: |
44 return MachineType::Float64(); | 46 return MachineType::Float64(); |
45 case Representation::kExternal: | 47 case Representation::kExternal: |
46 return MachineType::Pointer(); | 48 return MachineType::Pointer(); |
47 case Representation::kNone: | 49 case Representation::kNone: |
48 case Representation::kNumRepresentations: | 50 case Representation::kNumRepresentations: |
49 break; | 51 break; |
50 } | 52 } |
51 UNREACHABLE(); | 53 UNREACHABLE(); |
52 return MachineType::None(); | 54 return MachineType::None(); |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 523 DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); |
522 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 524 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, |
523 MachineType::AnyTagged()); | 525 MachineType::AnyTagged()); |
524 } | 526 } |
525 } | 527 } |
526 | 528 |
527 | 529 |
528 } // namespace compiler | 530 } // namespace compiler |
529 } // namespace internal | 531 } // namespace internal |
530 } // namespace v8 | 532 } // namespace v8 |
OLD | NEW |