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/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 // Used to implement Ignition's SuspendGenerator bytecode. | 517 // Used to implement Ignition's SuspendGenerator bytecode. |
518 const Operator* GeneratorStore(int register_count); | 518 const Operator* GeneratorStore(int register_count); |
519 | 519 |
520 // Used to implement Ignition's ResumeGenerator bytecode. | 520 // Used to implement Ignition's ResumeGenerator bytecode. |
521 const Operator* GeneratorRestoreContinuation(); | 521 const Operator* GeneratorRestoreContinuation(); |
522 const Operator* GeneratorRestoreRegister(int index); | 522 const Operator* GeneratorRestoreRegister(int index); |
523 | 523 |
524 const Operator* StackCheck(); | 524 const Operator* StackCheck(); |
525 | 525 |
526 const Operator* CreateFunctionContext(int slot_count); | 526 const Operator* CreateFunctionContext(int slot_count); |
| 527 const Operator* CreateEvalContext(int slot_count); |
527 const Operator* CreateCatchContext(const Handle<String>& name, | 528 const Operator* CreateCatchContext(const Handle<String>& name, |
528 const Handle<ScopeInfo>& scope_info); | 529 const Handle<ScopeInfo>& scope_info); |
529 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info); | 530 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info); |
530 const Operator* CreateBlockContext(const Handle<ScopeInfo>& scpope_info); | 531 const Operator* CreateBlockContext(const Handle<ScopeInfo>& scpope_info); |
531 const Operator* CreateModuleContext(); | 532 const Operator* CreateModuleContext(); |
532 const Operator* CreateScriptContext(const Handle<ScopeInfo>& scpope_info); | 533 const Operator* CreateScriptContext(const Handle<ScopeInfo>& scpope_info); |
533 | 534 |
534 private: | 535 private: |
535 Zone* zone() const { return zone_; } | 536 Zone* zone() const { return zone_; } |
536 | 537 |
537 const JSOperatorGlobalCache& cache_; | 538 const JSOperatorGlobalCache& cache_; |
538 Zone* const zone_; | 539 Zone* const zone_; |
539 | 540 |
540 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 541 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
541 }; | 542 }; |
542 | 543 |
543 } // namespace compiler | 544 } // namespace compiler |
544 } // namespace internal | 545 } // namespace internal |
545 } // namespace v8 | 546 } // namespace v8 |
546 | 547 |
547 #endif // V8_COMPILER_JS_OPERATOR_H_ | 548 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |