Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1252)

Side by Side Diff: src/compiler/operator.h

Issue 1379593002: [turbofan] Pass scope infos as static operator parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-turbofan-verifier
Patch Set: Fix Windows build. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/js-context-relaxation-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698