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

Side by Side Diff: src/compiler/js-operator.cc

Issue 2079613003: [generators] Implement %GeneratorGetSourcePosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename again, and move subtraction to runtime Created 4 years, 6 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
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "src/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode 715 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode
716 "JSLoadProperty", // name 716 "JSLoadProperty", // name
717 3, 1, 1, 1, 1, 2, // counts 717 3, 1, 1, 1, 1, 2, // counts
718 access); // parameter 718 access); // parameter
719 } 719 }
720 720
721 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) { 721 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) {
722 return new (zone()) Operator1<int>( // -- 722 return new (zone()) Operator1<int>( // --
723 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode 723 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode
724 "JSGeneratorStore", // name 724 "JSGeneratorStore", // name
725 2 + register_count, 1, 1, 0, 1, 0, // counts 725 3 + register_count, 1, 1, 0, 1, 0, // counts
726 register_count); // parameter 726 register_count); // parameter
727 } 727 }
728 728
729 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) { 729 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) {
730 return new (zone()) Operator1<int>( // -- 730 return new (zone()) Operator1<int>( // --
731 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode 731 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode
732 "JSGeneratorRestoreRegister", // name 732 "JSGeneratorRestoreRegister", // name
733 1, 1, 1, 1, 1, 0, // counts 733 1, 1, 1, 1, 1, 0, // counts
734 index); // parameter 734 index); // parameter
735 } 735 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 916 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
917 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 917 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
918 "JSCreateScriptContext", // name 918 "JSCreateScriptContext", // name
919 1, 1, 1, 1, 1, 2, // counts 919 1, 1, 1, 1, 1, 2, // counts
920 scpope_info); // parameter 920 scpope_info); // parameter
921 } 921 }
922 922
923 } // namespace compiler 923 } // namespace compiler
924 } // namespace internal 924 } // namespace internal
925 } // namespace v8 925 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698