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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/platform/time.h" | 9 #include "src/base/platform/time.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 F(CompileForOnStackReplacement, 1, 1) \ | 130 F(CompileForOnStackReplacement, 1, 1) \ |
131 F(TryInstallOptimizedCode, 1, 1) \ | 131 F(TryInstallOptimizedCode, 1, 1) \ |
132 F(ResolvePossiblyDirectEval, 5, 1) | 132 F(ResolvePossiblyDirectEval, 5, 1) |
133 | 133 |
134 | 134 |
135 #define FOR_EACH_INTRINSIC_DATE(F) \ | 135 #define FOR_EACH_INTRINSIC_DATE(F) \ |
136 F(IsDate, 1, 1) \ | 136 F(IsDate, 1, 1) \ |
137 F(DateCurrentTime, 0, 1) \ | 137 F(DateCurrentTime, 0, 1) \ |
138 F(ThrowNotDateError, 0, 1) | 138 F(ThrowNotDateError, 0, 1) |
139 | 139 |
140 | |
141 #define FOR_EACH_INTRINSIC_DEBUG(F) \ | 140 #define FOR_EACH_INTRINSIC_DEBUG(F) \ |
142 F(HandleDebuggerStatement, 0, 1) \ | 141 F(HandleDebuggerStatement, 0, 1) \ |
143 F(DebugBreak, 0, 1) \ | 142 F(DebugBreak, 1, 1) \ |
| 143 F(DebugBreakOnBytecode, 1, 1) \ |
144 F(SetDebugEventListener, 2, 1) \ | 144 F(SetDebugEventListener, 2, 1) \ |
145 F(ScheduleBreak, 0, 1) \ | 145 F(ScheduleBreak, 0, 1) \ |
146 F(DebugGetInternalProperties, 1, 1) \ | 146 F(DebugGetInternalProperties, 1, 1) \ |
147 F(DebugGetPropertyDetails, 2, 1) \ | 147 F(DebugGetPropertyDetails, 2, 1) \ |
148 F(DebugGetProperty, 2, 1) \ | 148 F(DebugGetProperty, 2, 1) \ |
149 F(DebugPropertyTypeFromDetails, 1, 1) \ | 149 F(DebugPropertyTypeFromDetails, 1, 1) \ |
150 F(DebugPropertyAttributesFromDetails, 1, 1) \ | 150 F(DebugPropertyAttributesFromDetails, 1, 1) \ |
151 F(DebugPropertyIndexFromDetails, 1, 1) \ | 151 F(DebugPropertyIndexFromDetails, 1, 1) \ |
152 F(DebugNamedInterceptorPropertyValue, 2, 1) \ | 152 F(DebugNamedInterceptorPropertyValue, 2, 1) \ |
153 F(DebugIndexedInterceptorElementValue, 2, 1) \ | 153 F(DebugIndexedInterceptorElementValue, 2, 1) \ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 F(GetHeapUsage, 0, 1) \ | 188 F(GetHeapUsage, 0, 1) \ |
189 F(GetScript, 1, 1) \ | 189 F(GetScript, 1, 1) \ |
190 F(DebugPrepareStepInIfStepping, 1, 1) \ | 190 F(DebugPrepareStepInIfStepping, 1, 1) \ |
191 F(DebugPushPromise, 2, 1) \ | 191 F(DebugPushPromise, 2, 1) \ |
192 F(DebugPopPromise, 0, 1) \ | 192 F(DebugPopPromise, 0, 1) \ |
193 F(DebugPromiseEvent, 1, 1) \ | 193 F(DebugPromiseEvent, 1, 1) \ |
194 F(DebugAsyncTaskEvent, 1, 1) \ | 194 F(DebugAsyncTaskEvent, 1, 1) \ |
195 F(DebugIsActive, 0, 1) \ | 195 F(DebugIsActive, 0, 1) \ |
196 F(DebugBreakInOptimizedCode, 0, 1) | 196 F(DebugBreakInOptimizedCode, 0, 1) |
197 | 197 |
198 | |
199 #define FOR_EACH_INTRINSIC_FORIN(F) \ | 198 #define FOR_EACH_INTRINSIC_FORIN(F) \ |
200 F(ForInDone, 2, 1) \ | 199 F(ForInDone, 2, 1) \ |
201 F(ForInEnumerate, 1, 1) \ | 200 F(ForInEnumerate, 1, 1) \ |
202 F(ForInFilter, 2, 1) \ | 201 F(ForInFilter, 2, 1) \ |
203 F(ForInNext, 4, 1) \ | 202 F(ForInNext, 4, 1) \ |
204 F(ForInStep, 1, 1) | 203 F(ForInStep, 1, 1) |
205 | 204 |
206 #define FOR_EACH_INTRINSIC_INTERPRETER(F) \ | 205 #define FOR_EACH_INTRINSIC_INTERPRETER(F) \ |
207 F(InterpreterNewClosure, 2, 1) \ | 206 F(InterpreterNewClosure, 2, 1) \ |
208 F(InterpreterTraceBytecodeEntry, 3, 1) \ | 207 F(InterpreterTraceBytecodeEntry, 3, 1) \ |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 | 1184 |
1186 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1185 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1187 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1186 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1188 STATIC_ASSERT(LANGUAGE_END == 3); | 1187 STATIC_ASSERT(LANGUAGE_END == 3); |
1189 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1188 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1190 | 1189 |
1191 } // namespace internal | 1190 } // namespace internal |
1192 } // namespace v8 | 1191 } // namespace v8 |
1193 | 1192 |
1194 #endif // V8_RUNTIME_RUNTIME_H_ | 1193 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |