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_JS_OPERATOR_H_ | 5 #ifndef V8_COMPILER_JS_OPERATOR_H_ |
6 #define V8_COMPILER_JS_OPERATOR_H_ | 6 #define V8_COMPILER_JS_OPERATOR_H_ |
7 | 7 |
8 #include "src/runtime/runtime.h" | 8 #include "src/runtime/runtime.h" |
9 #include "src/unique.h" | 9 #include "src/unique.h" |
10 | 10 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 const Operator* DeleteProperty(LanguageMode language_mode); | 293 const Operator* DeleteProperty(LanguageMode language_mode); |
294 | 294 |
295 const Operator* HasProperty(); | 295 const Operator* HasProperty(); |
296 | 296 |
297 const Operator* LoadContext(size_t depth, size_t index, bool immutable); | 297 const Operator* LoadContext(size_t depth, size_t index, bool immutable); |
298 const Operator* StoreContext(size_t depth, size_t index); | 298 const Operator* StoreContext(size_t depth, size_t index); |
299 | 299 |
300 const Operator* TypeOf(); | 300 const Operator* TypeOf(); |
301 const Operator* InstanceOf(); | 301 const Operator* InstanceOf(); |
302 | 302 |
| 303 const Operator* ForInDone(); |
| 304 const Operator* ForInNext(); |
| 305 const Operator* ForInPrepare(); |
| 306 const Operator* ForInStep(); |
| 307 |
303 const Operator* StackCheck(); | 308 const Operator* StackCheck(); |
304 | 309 |
305 // TODO(titzer): nail down the static parts of each of these context flavors. | 310 // TODO(titzer): nail down the static parts of each of these context flavors. |
306 const Operator* CreateFunctionContext(); | 311 const Operator* CreateFunctionContext(); |
307 const Operator* CreateCatchContext(const Unique<String>& name); | 312 const Operator* CreateCatchContext(const Unique<String>& name); |
308 const Operator* CreateWithContext(); | 313 const Operator* CreateWithContext(); |
309 const Operator* CreateBlockContext(); | 314 const Operator* CreateBlockContext(); |
310 const Operator* CreateModuleContext(); | 315 const Operator* CreateModuleContext(); |
311 const Operator* CreateScriptContext(); | 316 const Operator* CreateScriptContext(); |
312 | 317 |
313 private: | 318 private: |
314 Zone* zone() const { return zone_; } | 319 Zone* zone() const { return zone_; } |
315 | 320 |
316 const JSOperatorGlobalCache& cache_; | 321 const JSOperatorGlobalCache& cache_; |
317 Zone* const zone_; | 322 Zone* const zone_; |
318 | 323 |
319 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 324 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
320 }; | 325 }; |
321 | 326 |
322 } // namespace compiler | 327 } // namespace compiler |
323 } // namespace internal | 328 } // namespace internal |
324 } // namespace v8 | 329 } // namespace v8 |
325 | 330 |
326 #endif // V8_COMPILER_JS_OPERATOR_H_ | 331 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |