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 #ifndef V8_COMPILER_LINKAGE_H_ | 5 #ifndef V8_COMPILER_LINKAGE_H_ |
6 #define V8_COMPILER_LINKAGE_H_ | 6 #define V8_COMPILER_LINKAGE_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // but not the context. | 72 // but not the context. |
73 int ParameterCount() const { return parameter_count_; } | 73 int ParameterCount() const { return parameter_count_; } |
74 | 74 |
75 int InputCount() const { return input_count_; } | 75 int InputCount() const { return input_count_; } |
76 | 76 |
77 bool CanLazilyDeoptimize() const { | 77 bool CanLazilyDeoptimize() const { |
78 return deoptimization_support_ == kCanDeoptimize; | 78 return deoptimization_support_ == kCanDeoptimize; |
79 } | 79 } |
80 | 80 |
81 LinkageLocation GetReturnLocation(int index) { | 81 LinkageLocation GetReturnLocation(int index) { |
82 ASSERT(index < return_count_); | 82 DCHECK(index < return_count_); |
83 return locations_[0 + index]; // return locations start at 0. | 83 return locations_[0 + index]; // return locations start at 0. |
84 } | 84 } |
85 | 85 |
86 LinkageLocation GetInputLocation(int index) { | 86 LinkageLocation GetInputLocation(int index) { |
87 ASSERT(index < input_count_ + 1); // input_count + 1 is the context. | 87 DCHECK(index < input_count_ + 1); // input_count + 1 is the context. |
88 return locations_[return_count_ + index]; // inputs start after returns. | 88 return locations_[return_count_ + index]; // inputs start after returns. |
89 } | 89 } |
90 | 90 |
91 // Operator properties describe how this call can be optimized, if at all. | 91 // Operator properties describe how this call can be optimized, if at all. |
92 Operator::Property properties() const { return properties_; } | 92 Operator::Property properties() const { return properties_; } |
93 | 93 |
94 // Get the callee-saved registers, if any, across this call. | 94 // Get the callee-saved registers, if any, across this call. |
95 RegList CalleeSavedRegisters() { return callee_saved_registers_; } | 95 RegList CalleeSavedRegisters() { return callee_saved_registers_; } |
96 | 96 |
97 const char* debug_name() const { return debug_name_; } | 97 const char* debug_name() const { return debug_name_; } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 private: | 180 private: |
181 CompilationInfo* info_; | 181 CompilationInfo* info_; |
182 CallDescriptor* incoming_; | 182 CallDescriptor* incoming_; |
183 }; | 183 }; |
184 } | 184 } |
185 } | 185 } |
186 } // namespace v8::internal::compiler | 186 } // namespace v8::internal::compiler |
187 | 187 |
188 #endif // V8_COMPILER_LINKAGE_H_ | 188 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |