OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 F(FunctionGetDebugName, 1, 1) \ | 180 F(FunctionGetDebugName, 1, 1) \ |
181 F(ExecuteInDebugContext, 1, 1) \ | 181 F(ExecuteInDebugContext, 1, 1) \ |
182 F(GetDebugContext, 0, 1) \ | 182 F(GetDebugContext, 0, 1) \ |
183 F(CollectGarbage, 1, 1) \ | 183 F(CollectGarbage, 1, 1) \ |
184 F(GetHeapUsage, 0, 1) \ | 184 F(GetHeapUsage, 0, 1) \ |
185 F(GetScript, 1, 1) \ | 185 F(GetScript, 1, 1) \ |
186 F(ScriptLineCount, 1, 1) \ | 186 F(ScriptLineCount, 1, 1) \ |
187 F(ScriptLineStartPosition, 2, 1) \ | 187 F(ScriptLineStartPosition, 2, 1) \ |
188 F(ScriptLineEndPosition, 2, 1) \ | 188 F(ScriptLineEndPosition, 2, 1) \ |
189 F(ScriptLocationFromLine, 4, 1) \ | 189 F(ScriptLocationFromLine, 4, 1) \ |
| 190 F(ScriptLocationFromLine2, 4, 1) \ |
190 F(ScriptPositionInfo, 3, 1) \ | 191 F(ScriptPositionInfo, 3, 1) \ |
191 F(ScriptSourceLine, 2, 1) \ | 192 F(ScriptSourceLine, 2, 1) \ |
192 F(DebugPrepareStepInIfStepping, 1, 1) \ | 193 F(DebugPrepareStepInIfStepping, 1, 1) \ |
193 F(DebugPrepareStepInSuspendedGenerator, 0, 1) \ | 194 F(DebugPrepareStepInSuspendedGenerator, 0, 1) \ |
194 F(DebugRecordAsyncFunction, 1, 1) \ | 195 F(DebugRecordAsyncFunction, 1, 1) \ |
195 F(DebugPushPromise, 1, 1) \ | 196 F(DebugPushPromise, 1, 1) \ |
196 F(DebugPopPromise, 0, 1) \ | 197 F(DebugPopPromise, 0, 1) \ |
197 F(DebugNextMicrotaskId, 0, 1) \ | 198 F(DebugNextMicrotaskId, 0, 1) \ |
198 F(DebugAsyncTaskEvent, 3, 1) \ | 199 F(DebugAsyncTaskEvent, 3, 1) \ |
199 F(DebugIsActive, 0, 1) \ | 200 F(DebugIsActive, 0, 1) \ |
(...skipping 14 matching lines...) Expand all Loading... |
214 F(InterpreterTraceBytecodeEntry, 3, 1) \ | 215 F(InterpreterTraceBytecodeEntry, 3, 1) \ |
215 F(InterpreterTraceBytecodeExit, 3, 1) \ | 216 F(InterpreterTraceBytecodeExit, 3, 1) \ |
216 F(InterpreterClearPendingMessage, 0, 1) \ | 217 F(InterpreterClearPendingMessage, 0, 1) \ |
217 F(InterpreterSetPendingMessage, 1, 1) | 218 F(InterpreterSetPendingMessage, 1, 1) |
218 | 219 |
219 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ | 220 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ |
220 F(FunctionGetName, 1, 1) \ | 221 F(FunctionGetName, 1, 1) \ |
221 F(FunctionSetName, 2, 1) \ | 222 F(FunctionSetName, 2, 1) \ |
222 F(FunctionRemovePrototype, 1, 1) \ | 223 F(FunctionRemovePrototype, 1, 1) \ |
223 F(FunctionGetScript, 1, 1) \ | 224 F(FunctionGetScript, 1, 1) \ |
| 225 F(FunctionGetScriptId, 1, 1) \ |
224 F(FunctionGetSourceCode, 1, 1) \ | 226 F(FunctionGetSourceCode, 1, 1) \ |
225 F(FunctionGetScriptSourcePosition, 1, 1) \ | 227 F(FunctionGetScriptSourcePosition, 1, 1) \ |
226 F(FunctionGetContextData, 1, 1) \ | 228 F(FunctionGetContextData, 1, 1) \ |
227 F(FunctionSetInstanceClassName, 2, 1) \ | 229 F(FunctionSetInstanceClassName, 2, 1) \ |
228 F(FunctionSetLength, 2, 1) \ | 230 F(FunctionSetLength, 2, 1) \ |
229 F(FunctionSetPrototype, 2, 1) \ | 231 F(FunctionSetPrototype, 2, 1) \ |
230 F(FunctionIsAPIFunction, 1, 1) \ | 232 F(FunctionIsAPIFunction, 1, 1) \ |
231 F(SetCode, 2, 1) \ | 233 F(SetCode, 2, 1) \ |
232 F(SetNativeFlag, 1, 1) \ | 234 F(SetNativeFlag, 1, 1) \ |
233 F(IsConstructor, 1, 1) \ | 235 F(IsConstructor, 1, 1) \ |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1130 |
1129 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1131 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1130 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1132 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1131 STATIC_ASSERT(LANGUAGE_END == 2); | 1133 STATIC_ASSERT(LANGUAGE_END == 2); |
1132 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 1134 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; |
1133 | 1135 |
1134 } // namespace internal | 1136 } // namespace internal |
1135 } // namespace v8 | 1137 } // namespace v8 |
1136 | 1138 |
1137 #endif // V8_RUNTIME_RUNTIME_H_ | 1139 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |