| OLD | NEW | 
|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/bytecode-array-builder.h" | 5 #include "src/interpreter/bytecode-array-builder.h" | 
| 6 | 6 | 
| 7 #include "src/globals.h" | 7 #include "src/globals.h" | 
| 8 #include "src/interpreter/bytecode-array-writer.h" | 8 #include "src/interpreter/bytecode-array-writer.h" | 
| 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 
| 10 #include "src/interpreter/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" | 
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 884     } else { | 884     } else { | 
| 885       OutputCall(callable, args, args.register_count(), feedback_slot); | 885       OutputCall(callable, args, args.register_count(), feedback_slot); | 
| 886     } | 886     } | 
| 887   } else { | 887   } else { | 
| 888     DCHECK(tail_call_mode == TailCallMode::kAllow); | 888     DCHECK(tail_call_mode == TailCallMode::kAllow); | 
| 889     OutputTailCall(callable, args, args.register_count(), feedback_slot); | 889     OutputTailCall(callable, args, args.register_count(), feedback_slot); | 
| 890   } | 890   } | 
| 891   return *this; | 891   return *this; | 
| 892 } | 892 } | 
| 893 | 893 | 
| 894 BytecodeArrayBuilder& BytecodeArrayBuilder::CallWithSpread(RegisterList args) { | 894 BytecodeArrayBuilder& BytecodeArrayBuilder::CallWithSpread(Register callable, | 
| 895   OutputCallWithSpread(args, args.register_count()); | 895                                                            RegisterList args) { | 
|  | 896   OutputCallWithSpread(callable, args, args.register_count()); | 
| 896   return *this; | 897   return *this; | 
| 897 } | 898 } | 
| 898 | 899 | 
| 899 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor, | 900 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor, | 
| 900                                                 RegisterList args, | 901                                                 RegisterList args, | 
| 901                                                 int feedback_slot_id) { | 902                                                 int feedback_slot_id) { | 
| 902   OutputNew(constructor, args, args.register_count(), feedback_slot_id); | 903   OutputNew(constructor, args, args.register_count(), feedback_slot_id); | 
| 903   return *this; | 904   return *this; | 
| 904 } | 905 } | 
| 905 | 906 | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1049     RegisterList reg_list) { | 1050     RegisterList reg_list) { | 
| 1050   DCHECK(RegisterListIsValid(reg_list)); | 1051   DCHECK(RegisterListIsValid(reg_list)); | 
| 1051   if (register_optimizer_) | 1052   if (register_optimizer_) | 
| 1052     register_optimizer_->PrepareOutputRegisterList(reg_list); | 1053     register_optimizer_->PrepareOutputRegisterList(reg_list); | 
| 1053   return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1054   return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 
| 1054 } | 1055 } | 
| 1055 | 1056 | 
| 1056 }  // namespace interpreter | 1057 }  // namespace interpreter | 
| 1057 }  // namespace internal | 1058 }  // namespace internal | 
| 1058 }  // namespace v8 | 1059 }  // namespace v8 | 
| OLD | NEW | 
|---|