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/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 } | 1918 } |
1919 int temps_count = GetTempsCountForTailCallFromJSFunction(); | 1919 int temps_count = GetTempsCountForTailCallFromJSFunction(); |
1920 for (int i = 0; i < temps_count; i++) { | 1920 for (int i = 0; i < temps_count; i++) { |
1921 temps.push_back(g.TempRegister()); | 1921 temps.push_back(g.TempRegister()); |
1922 } | 1922 } |
1923 } else { | 1923 } else { |
1924 switch (descriptor->kind()) { | 1924 switch (descriptor->kind()) { |
1925 case CallDescriptor::kCallCodeObject: | 1925 case CallDescriptor::kCallCodeObject: |
1926 opcode = kArchTailCallCodeObject; | 1926 opcode = kArchTailCallCodeObject; |
1927 break; | 1927 break; |
1928 case CallDescriptor::kCallJSFunction: | |
1929 opcode = kArchTailCallJSFunction; | |
1930 break; | |
1931 case CallDescriptor::kCallAddress: | 1928 case CallDescriptor::kCallAddress: |
1932 opcode = kArchTailCallAddress; | 1929 opcode = kArchTailCallAddress; |
1933 break; | 1930 break; |
1934 default: | 1931 default: |
1935 UNREACHABLE(); | 1932 UNREACHABLE(); |
1936 return; | 1933 return; |
1937 } | 1934 } |
1938 } | 1935 } |
1939 opcode |= MiscField::encode(descriptor->flags()); | 1936 opcode |= MiscField::encode(descriptor->flags()); |
1940 | 1937 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 return new (instruction_zone()) FrameStateDescriptor( | 2144 return new (instruction_zone()) FrameStateDescriptor( |
2148 instruction_zone(), state_info.type(), state_info.bailout_id(), | 2145 instruction_zone(), state_info.type(), state_info.bailout_id(), |
2149 state_info.state_combine(), parameters, locals, stack, | 2146 state_info.state_combine(), parameters, locals, stack, |
2150 state_info.shared_info(), outer_state); | 2147 state_info.shared_info(), outer_state); |
2151 } | 2148 } |
2152 | 2149 |
2153 | 2150 |
2154 } // namespace compiler | 2151 } // namespace compiler |
2155 } // namespace internal | 2152 } // namespace internal |
2156 } // namespace v8 | 2153 } // namespace v8 |
OLD | NEW |