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

Side by Side Diff: src/interpreter/interpreter.h

Issue 1901083002: [Interpreter] Introduce IncStub and DecStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_INTERPRETER_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_H_
6 #define V8_INTERPRETER_INTERPRETER_H_ 6 #define V8_INTERPRETER_INTERPRETER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of interpreter internals. 8 // Clients of this interface shouldn't depend on lots of interpreter internals.
9 // Do not include anything from src/interpreter other than 9 // Do not include anything from src/interpreter other than
10 // src/interpreter/bytecodes.h here! 10 // src/interpreter/bytecodes.h here!
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); 74 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler);
75 75
76 // Generates code to perform the binary operations via |function_id|. 76 // Generates code to perform the binary operations via |function_id|.
77 void DoBinaryOp(Runtime::FunctionId function_id, 77 void DoBinaryOp(Runtime::FunctionId function_id,
78 InterpreterAssembler* assembler); 78 InterpreterAssembler* assembler);
79 79
80 // Generates code to perform the binary operations via |Generator|. 80 // Generates code to perform the binary operations via |Generator|.
81 template <class Generator> 81 template <class Generator>
82 void DoBinaryOp(InterpreterAssembler* assembler); 82 void DoBinaryOp(InterpreterAssembler* assembler);
83 83
84 // Generates code to perform the count operations via |function_id|. 84 // Generates code to perform the count operations via |callable|.
85 void DoCountOp(Runtime::FunctionId function_id, 85 void DoCountOp(Callable callable, InterpreterAssembler* assembler);
86 InterpreterAssembler* assembler);
87 86
88 // Generates code to perform the comparison operation associated with 87 // Generates code to perform the comparison operation associated with
89 // |compare_op|. 88 // |compare_op|.
90 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); 89 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler);
91 90
92 // Generates code to load a constant from the constant pool. 91 // Generates code to load a constant from the constant pool.
93 void DoLoadConstant(InterpreterAssembler* assembler); 92 void DoLoadConstant(InterpreterAssembler* assembler);
94 93
95 // Generates code to perform a global load via |ic|. 94 // Generates code to perform a global load via |ic|.
96 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler); 95 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler);
(...skipping 24 matching lines...) Expand all
121 120
122 // Generates code to perform a JS runtime call. 121 // Generates code to perform a JS runtime call.
123 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); 122 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler);
124 123
125 // Generates code to perform a constructor call. 124 // Generates code to perform a constructor call.
126 void DoCallConstruct(InterpreterAssembler* assembler); 125 void DoCallConstruct(InterpreterAssembler* assembler);
127 126
128 // Generates code to perform a type conversion. 127 // Generates code to perform a type conversion.
129 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); 128 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler);
130 129
131 // Generates code ro create a literal via |function_id|. 130 // Generates code to create a literal via |function_id|.
132 void DoCreateLiteral(Runtime::FunctionId function_id, 131 void DoCreateLiteral(Runtime::FunctionId function_id,
133 InterpreterAssembler* assembler); 132 InterpreterAssembler* assembler);
134 133
135 // Generates code to perform delete via function_id. 134 // Generates code to perform delete via function_id.
136 void DoDelete(Runtime::FunctionId function_id, 135 void DoDelete(Runtime::FunctionId function_id,
137 InterpreterAssembler* assembler); 136 InterpreterAssembler* assembler);
138 137
139 // Generates code to perform a lookup slot load via |function_id|. 138 // Generates code to perform a lookup slot load via |function_id|.
140 void DoLoadLookupSlot(Runtime::FunctionId function_id, 139 void DoLoadLookupSlot(Runtime::FunctionId function_id,
141 InterpreterAssembler* assembler); 140 InterpreterAssembler* assembler);
(...skipping 16 matching lines...) Expand all
158 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; 157 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_;
159 158
160 DISALLOW_COPY_AND_ASSIGN(Interpreter); 159 DISALLOW_COPY_AND_ASSIGN(Interpreter);
161 }; 160 };
162 161
163 } // namespace interpreter 162 } // namespace interpreter
164 } // namespace internal 163 } // namespace internal
165 } // namespace v8 164 } // namespace v8
166 165
167 #endif // V8_INTERPRETER_INTERPRETER_H_ 166 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698