| 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/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 | 6 |
| 7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
| 8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
| 9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
| 10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 control_input_count, value_output_count, effect_output_count, \ | 392 control_input_count, value_output_count, effect_output_count, \ |
| 393 control_output_count) \ | 393 control_output_count) \ |
| 394 const Operator* CommonOperatorBuilder::Name() { \ | 394 const Operator* CommonOperatorBuilder::Name() { \ |
| 395 return &cache_.k##Name##Operator; \ | 395 return &cache_.k##Name##Operator; \ |
| 396 } | 396 } |
| 397 CACHED_OP_LIST(CACHED) | 397 CACHED_OP_LIST(CACHED) |
| 398 #undef CACHED | 398 #undef CACHED |
| 399 | 399 |
| 400 | 400 |
| 401 const Operator* CommonOperatorBuilder::End(size_t control_input_count) { | 401 const Operator* CommonOperatorBuilder::End(size_t control_input_count) { |
| 402 DCHECK_NE(0u, control_input_count); // Disallow empty ends. | |
| 403 switch (control_input_count) { | 402 switch (control_input_count) { |
| 404 #define CACHED_END(input_count) \ | 403 #define CACHED_END(input_count) \ |
| 405 case input_count: \ | 404 case input_count: \ |
| 406 return &cache_.kEnd##input_count##Operator; | 405 return &cache_.kEnd##input_count##Operator; |
| 407 CACHED_END_LIST(CACHED_END) | 406 CACHED_END_LIST(CACHED_END) |
| 408 #undef CACHED_END | 407 #undef CACHED_END |
| 409 default: | 408 default: |
| 410 break; | 409 break; |
| 411 } | 410 } |
| 412 // Uncached. | 411 // Uncached. |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 Handle<SharedFunctionInfo> shared_info, | 808 Handle<SharedFunctionInfo> shared_info, |
| 810 ContextCallingMode context_calling_mode) { | 809 ContextCallingMode context_calling_mode) { |
| 811 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 810 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
| 812 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, | 811 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, |
| 813 context_calling_mode); | 812 context_calling_mode); |
| 814 } | 813 } |
| 815 | 814 |
| 816 } // namespace compiler | 815 } // namespace compiler |
| 817 } // namespace internal | 816 } // namespace internal |
| 818 } // namespace v8 | 817 } // namespace v8 |
| OLD | NEW |