| 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 | |
| 2248 class HCallWithDescriptor final : public HInstruction { | 2245 class HCallWithDescriptor final : public HInstruction { |
| 2249 public: | 2246 public: |
| 2250 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context, | 2247 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context, |
| 2251 HValue* target, int argument_count, | 2248 HValue* target, int argument_count, |
| 2252 CallInterfaceDescriptor descriptor, | 2249 CallInterfaceDescriptor descriptor, |
| 2253 const Vector<HValue*>& operands, | 2250 const Vector<HValue*>& operands, |
| 2254 CallMode call_mode = NORMAL_CALL) { | 2251 CallMode call_mode = NORMAL_CALL) { |
| 2255 DCHECK(operands.length() == descriptor.GetEnvironmentLength()); | 2252 DCHECK(operands.length() == descriptor.GetEnvironmentLength()); |
| 2256 HCallWithDescriptor* res = new (zone) HCallWithDescriptor( | 2253 HCallWithDescriptor* res = new (zone) HCallWithDescriptor( |
| 2257 target, argument_count, descriptor, operands, call_mode, zone); | 2254 target, argument_count, descriptor, operands, call_mode, zone); |
| (...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7849 }; | 7846 }; |
| 7850 | 7847 |
| 7851 | 7848 |
| 7852 | 7849 |
| 7853 #undef DECLARE_INSTRUCTION | 7850 #undef DECLARE_INSTRUCTION |
| 7854 #undef DECLARE_CONCRETE_INSTRUCTION | 7851 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7855 | 7852 |
| 7856 } } // namespace v8::internal | 7853 } } // namespace v8::internal |
| 7857 | 7854 |
| 7858 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7855 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |