OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_OPERATOR_H_ | 5 #ifndef V8_COMPILER_OPERATOR_H_ |
6 #define V8_COMPILER_OPERATOR_H_ | 6 #define V8_COMPILER_OPERATOR_H_ |
7 | 7 |
8 #include <ostream> // NOLINT(readability/streams) | 8 #include <ostream> // NOLINT(readability/streams) |
9 | 9 |
10 #include "src/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 Handle<HeapObject>::hash>*>(op)->parameter(); | 210 Handle<HeapObject>::hash>*>(op)->parameter(); |
211 } | 211 } |
212 | 212 |
213 template <> | 213 template <> |
214 inline Handle<String> const& OpParameter(const Operator* op) { | 214 inline Handle<String> const& OpParameter(const Operator* op) { |
215 return reinterpret_cast<const Operator1< | 215 return reinterpret_cast<const Operator1< |
216 Handle<String>, Handle<String>::equal_to, Handle<String>::hash>*>(op) | 216 Handle<String>, Handle<String>::equal_to, Handle<String>::hash>*>(op) |
217 ->parameter(); | 217 ->parameter(); |
218 } | 218 } |
219 | 219 |
| 220 template <> |
| 221 inline Handle<ScopeInfo> const& OpParameter(const Operator* op) { |
| 222 return reinterpret_cast< |
| 223 const Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to, |
| 224 Handle<ScopeInfo>::hash>*>(op)->parameter(); |
| 225 } |
| 226 |
220 } // namespace compiler | 227 } // namespace compiler |
221 } // namespace internal | 228 } // namespace internal |
222 } // namespace v8 | 229 } // namespace v8 |
223 | 230 |
224 #endif // V8_COMPILER_OPERATOR_H_ | 231 #endif // V8_COMPILER_OPERATOR_H_ |
OLD | NEW |