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/objects.h" | 9 #include "src/objects.h" |
10 #include "src/unicode.h" | 10 #include "src/unicode.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 F(BreakIteratorAdoptText, 2, 1) \ | 285 F(BreakIteratorAdoptText, 2, 1) \ |
286 F(BreakIteratorFirst, 1, 1) \ | 286 F(BreakIteratorFirst, 1, 1) \ |
287 F(BreakIteratorNext, 1, 1) \ | 287 F(BreakIteratorNext, 1, 1) \ |
288 F(BreakIteratorCurrent, 1, 1) \ | 288 F(BreakIteratorCurrent, 1, 1) \ |
289 F(BreakIteratorBreakType, 1, 1) | 289 F(BreakIteratorBreakType, 1, 1) |
290 #else | 290 #else |
291 #define FOR_EACH_INTRINSIC_I18N(F) | 291 #define FOR_EACH_INTRINSIC_I18N(F) |
292 #endif | 292 #endif |
293 | 293 |
294 | 294 |
295 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ | 295 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
296 F(CheckIsBootstrapping, 0, 1) \ | 296 F(CheckIsBootstrapping, 0, 1) \ |
297 F(ExportFromRuntime, 1, 1) \ | 297 F(ExportFromRuntime, 1, 1) \ |
298 F(ExportExperimentalFromRuntime, 1, 1) \ | 298 F(ExportExperimentalFromRuntime, 1, 1) \ |
299 F(InstallToContext, 1, 1) \ | 299 F(InstallToContext, 1, 1) \ |
300 F(Throw, 1, 1) \ | 300 F(Throw, 1, 1) \ |
301 F(ReThrow, 1, 1) \ | 301 F(ReThrow, 1, 1) \ |
302 F(UnwindAndFindExceptionHandler, 0, 1) \ | 302 F(UnwindAndFindExceptionHandler, 0, 1) \ |
303 F(PromoteScheduledException, 0, 1) \ | 303 F(PromoteScheduledException, 0, 1) \ |
304 F(ThrowReferenceError, 1, 1) \ | 304 F(ThrowReferenceError, 1, 1) \ |
305 F(ThrowApplyNonFunction, 1, 1) \ | 305 F(ThrowApplyNonFunction, 1, 1) \ |
306 F(NewTypeError, 2, 1) \ | 306 F(NewTypeError, 2, 1) \ |
307 F(NewSyntaxError, 2, 1) \ | 307 F(NewSyntaxError, 2, 1) \ |
308 F(NewReferenceError, 2, 1) \ | 308 F(NewReferenceError, 2, 1) \ |
309 F(ThrowIllegalInvocation, 0, 1) \ | 309 F(ThrowIllegalInvocation, 0, 1) \ |
310 F(ThrowIteratorResultNotAnObject, 1, 1) \ | 310 F(ThrowIteratorResultNotAnObject, 1, 1) \ |
311 F(ThrowStackOverflow, 0, 1) \ | 311 F(ThrowStackOverflow, 0, 1) \ |
312 F(ThrowStrongModeImplicitConversion, 0, 1) \ | 312 F(ThrowStrongModeImplicitConversion, 0, 1) \ |
313 F(PromiseRejectEvent, 3, 1) \ | 313 F(PromiseRejectEvent, 3, 1) \ |
314 F(PromiseRevokeReject, 1, 1) \ | 314 F(PromiseRevokeReject, 1, 1) \ |
315 F(StackGuard, 0, 1) \ | 315 F(StackGuard, 0, 1) \ |
316 F(Interrupt, 0, 1) \ | 316 F(Interrupt, 0, 1) \ |
317 F(AllocateInNewSpace, 1, 1) \ | 317 F(AllocateInNewSpace, 1, 1) \ |
318 F(AllocateInTargetSpace, 2, 1) \ | 318 F(AllocateInTargetSpace, 2, 1) \ |
319 F(CollectStackTrace, 2, 1) \ | 319 F(CollectStackTrace, 2, 1) \ |
320 F(MessageGetStartPosition, 1, 1) \ | 320 F(MessageGetStartPosition, 1, 1) \ |
321 F(MessageGetScript, 1, 1) \ | 321 F(MessageGetScript, 1, 1) \ |
322 F(FormatMessageString, 4, 1) \ | 322 F(FormatMessageString, 4, 1) \ |
323 F(CallSiteGetFileNameRT, 1, 1) \ | 323 F(CallSiteGetFileNameRT, 1, 1) \ |
324 F(CallSiteGetFunctionNameRT, 1, 1) \ | 324 F(CallSiteGetFunctionNameRT, 1, 1) \ |
325 F(CallSiteGetScriptNameOrSourceUrlRT, 1, 1) \ | 325 F(CallSiteGetScriptNameOrSourceUrlRT, 1, 1) \ |
326 F(CallSiteGetMethodNameRT, 1, 1) \ | 326 F(CallSiteGetMethodNameRT, 1, 1) \ |
327 F(CallSiteGetLineNumberRT, 1, 1) \ | 327 F(CallSiteGetLineNumberRT, 1, 1) \ |
328 F(CallSiteGetColumnNumberRT, 1, 1) \ | 328 F(CallSiteGetColumnNumberRT, 1, 1) \ |
329 F(CallSiteIsNativeRT, 1, 1) \ | 329 F(CallSiteIsNativeRT, 1, 1) \ |
330 F(CallSiteIsToplevelRT, 1, 1) \ | 330 F(CallSiteIsToplevelRT, 1, 1) \ |
331 F(CallSiteIsEvalRT, 1, 1) \ | 331 F(CallSiteIsEvalRT, 1, 1) \ |
332 F(CallSiteIsConstructorRT, 1, 1) \ | 332 F(CallSiteIsConstructorRT, 1, 1) \ |
333 F(IS_VAR, 1, 1) \ | 333 F(IS_VAR, 1, 1) \ |
334 F(IncrementStatsCounter, 1, 1) \ | 334 F(IncrementStatsCounter, 1, 1) \ |
335 F(ThrowConstructedNonConstructable, 1, 1) \ | 335 F(ThrowConstructedNonConstructable, 1, 1) \ |
336 F(ThrowCalledNonCallable, 1, 1) \ | 336 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ |
337 F(CreateListFromArrayLike, 1, 1) \ | 337 F(ThrowCalledNonCallable, 1, 1) \ |
| 338 F(CreateListFromArrayLike, 1, 1) \ |
338 F(IncrementUseCounter, 1, 1) | 339 F(IncrementUseCounter, 1, 1) |
339 | 340 |
340 | 341 |
341 #define FOR_EACH_INTRINSIC_JSON(F) \ | 342 #define FOR_EACH_INTRINSIC_JSON(F) \ |
342 F(QuoteJSONString, 1, 1) \ | 343 F(QuoteJSONString, 1, 1) \ |
343 F(BasicJSONStringify, 1, 1) \ | 344 F(BasicJSONStringify, 1, 1) \ |
344 F(ParseJson, 1, 1) | 345 F(ParseJson, 1, 1) |
345 | 346 |
346 | 347 |
347 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 348 #define FOR_EACH_INTRINSIC_LITERALS(F) \ |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 | 1225 |
1225 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1226 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1226 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1227 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1227 STATIC_ASSERT(LANGUAGE_END == 3); | 1228 STATIC_ASSERT(LANGUAGE_END == 3); |
1228 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1229 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1229 | 1230 |
1230 } // namespace internal | 1231 } // namespace internal |
1231 } // namespace v8 | 1232 } // namespace v8 |
1232 | 1233 |
1233 #endif // V8_RUNTIME_RUNTIME_H_ | 1234 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |