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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: relax dchecks Created 4 years, 1 month 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 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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 853
854 854
855 const Operator* JSOperatorBuilder::CreateFunctionContext(int slot_count) { 855 const Operator* JSOperatorBuilder::CreateFunctionContext(int slot_count) {
856 return new (zone()) Operator1<int>( // -- 856 return new (zone()) Operator1<int>( // --
857 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode 857 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode
858 "JSCreateFunctionContext", // name 858 "JSCreateFunctionContext", // name
859 1, 1, 1, 1, 1, 2, // counts 859 1, 1, 1, 1, 1, 2, // counts
860 slot_count); // parameter 860 slot_count); // parameter
861 } 861 }
862 862
863 const Operator* JSOperatorBuilder::CreateEvalContext(int slot_count) {
864 return new (zone()) Operator1<int>( // --
865 IrOpcode::kJSCreateEvalContext, Operator::kNoProperties, // opcode
866 "JSCreateEvalContext", // name
867 1, 1, 1, 1, 1, 2, // counts
868 slot_count); // parameter
869 }
870
863 const Operator* JSOperatorBuilder::CreateCatchContext( 871 const Operator* JSOperatorBuilder::CreateCatchContext(
864 const Handle<String>& name, const Handle<ScopeInfo>& scope_info) { 872 const Handle<String>& name, const Handle<ScopeInfo>& scope_info) {
865 CreateCatchContextParameters parameters(name, scope_info); 873 CreateCatchContextParameters parameters(name, scope_info);
866 return new (zone()) Operator1<CreateCatchContextParameters>( 874 return new (zone()) Operator1<CreateCatchContextParameters>(
867 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 875 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
868 "JSCreateCatchContext", // name 876 "JSCreateCatchContext", // name
869 2, 1, 1, 1, 1, 2, // counts 877 2, 1, 1, 1, 1, 2, // counts
870 parameters); // parameter 878 parameters); // parameter
871 } 879 }
872 880
(...skipping 21 matching lines...) Expand all
894 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 902 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
895 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 903 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
896 "JSCreateScriptContext", // name 904 "JSCreateScriptContext", // name
897 1, 1, 1, 1, 1, 2, // counts 905 1, 1, 1, 1, 1, 2, // counts
898 scpope_info); // parameter 906 scpope_info); // parameter
899 } 907 }
900 908
901 } // namespace compiler 909 } // namespace compiler
902 } // namespace internal 910 } // namespace internal
903 } // namespace v8 911 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698