OLD | NEW |
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 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 pass_argument_count_(pass_argument_count), | 2235 pass_argument_count_(pass_argument_count), |
2236 has_stack_check_(has_stack_check) { | 2236 has_stack_check_(has_stack_check) { |
2237 SetOperandAt(0, function); | 2237 SetOperandAt(0, function); |
2238 } | 2238 } |
2239 | 2239 |
2240 bool pass_argument_count_; | 2240 bool pass_argument_count_; |
2241 bool has_stack_check_; | 2241 bool has_stack_check_; |
2242 }; | 2242 }; |
2243 | 2243 |
2244 | 2244 |
| 2245 enum CallMode { NORMAL_CALL, TAIL_CALL }; |
| 2246 |
| 2247 |
2245 class HCallWithDescriptor final : public HInstruction { | 2248 class HCallWithDescriptor final : public HInstruction { |
2246 public: | 2249 public: |
2247 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context, | 2250 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context, |
2248 HValue* target, int argument_count, | 2251 HValue* target, int argument_count, |
2249 CallInterfaceDescriptor descriptor, | 2252 CallInterfaceDescriptor descriptor, |
2250 const Vector<HValue*>& operands, | 2253 const Vector<HValue*>& operands, |
2251 CallMode call_mode = NORMAL_CALL) { | 2254 CallMode call_mode = NORMAL_CALL) { |
2252 DCHECK(operands.length() == descriptor.GetEnvironmentLength()); | 2255 DCHECK(operands.length() == descriptor.GetEnvironmentLength()); |
2253 HCallWithDescriptor* res = new (zone) HCallWithDescriptor( | 2256 HCallWithDescriptor* res = new (zone) HCallWithDescriptor( |
2254 target, argument_count, descriptor, operands, call_mode, zone); | 2257 target, argument_count, descriptor, operands, call_mode, zone); |
(...skipping 5596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7851 }; | 7854 }; |
7852 | 7855 |
7853 | 7856 |
7854 | 7857 |
7855 #undef DECLARE_INSTRUCTION | 7858 #undef DECLARE_INSTRUCTION |
7856 #undef DECLARE_CONCRETE_INSTRUCTION | 7859 #undef DECLARE_CONCRETE_INSTRUCTION |
7857 | 7860 |
7858 } } // namespace v8::internal | 7861 } } // namespace v8::internal |
7859 | 7862 |
7860 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |