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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 F(CreateBreakIterator, 3, 1) \ | 287 F(CreateBreakIterator, 3, 1) \ |
288 F(BreakIteratorAdoptText, 2, 1) \ | 288 F(BreakIteratorAdoptText, 2, 1) \ |
289 F(BreakIteratorFirst, 1, 1) \ | 289 F(BreakIteratorFirst, 1, 1) \ |
290 F(BreakIteratorNext, 1, 1) \ | 290 F(BreakIteratorNext, 1, 1) \ |
291 F(BreakIteratorCurrent, 1, 1) \ | 291 F(BreakIteratorCurrent, 1, 1) \ |
292 F(BreakIteratorBreakType, 1, 1) | 292 F(BreakIteratorBreakType, 1, 1) |
293 #else | 293 #else |
294 #define FOR_EACH_INTRINSIC_I18N(F) | 294 #define FOR_EACH_INTRINSIC_I18N(F) |
295 #endif | 295 #endif |
296 | 296 |
297 | |
298 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ | 297 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
299 F(CheckIsBootstrapping, 0, 1) \ | 298 F(CheckIsBootstrapping, 0, 1) \ |
300 F(ExportFromRuntime, 1, 1) \ | 299 F(ExportFromRuntime, 1, 1) \ |
301 F(ExportExperimentalFromRuntime, 1, 1) \ | 300 F(ExportExperimentalFromRuntime, 1, 1) \ |
302 F(InstallToContext, 1, 1) \ | 301 F(InstallToContext, 1, 1) \ |
303 F(Throw, 1, 1) \ | 302 F(Throw, 1, 1) \ |
304 F(ReThrow, 1, 1) \ | 303 F(ReThrow, 1, 1) \ |
305 F(UnwindAndFindExceptionHandler, 0, 1) \ | 304 F(UnwindAndFindExceptionHandler, 0, 1) \ |
306 F(PromoteScheduledException, 0, 1) \ | 305 F(PromoteScheduledException, 0, 1) \ |
307 F(ThrowReferenceError, 1, 1) \ | 306 F(ThrowReferenceError, 1, 1) \ |
(...skipping 10 matching lines...) Expand all Loading... |
318 F(StackGuard, 0, 1) \ | 317 F(StackGuard, 0, 1) \ |
319 F(Interrupt, 0, 1) \ | 318 F(Interrupt, 0, 1) \ |
320 F(AllocateInNewSpace, 1, 1) \ | 319 F(AllocateInNewSpace, 1, 1) \ |
321 F(AllocateInTargetSpace, 2, 1) \ | 320 F(AllocateInTargetSpace, 2, 1) \ |
322 F(CollectStackTrace, 2, 1) \ | 321 F(CollectStackTrace, 2, 1) \ |
323 F(MessageGetStartPosition, 1, 1) \ | 322 F(MessageGetStartPosition, 1, 1) \ |
324 F(MessageGetScript, 1, 1) \ | 323 F(MessageGetScript, 1, 1) \ |
325 F(FormatMessageString, 4, 1) \ | 324 F(FormatMessageString, 4, 1) \ |
326 F(CallSiteGetFileNameRT, 1, 1) \ | 325 F(CallSiteGetFileNameRT, 1, 1) \ |
327 F(CallSiteGetFunctionNameRT, 1, 1) \ | 326 F(CallSiteGetFunctionNameRT, 1, 1) \ |
| 327 F(CallSiteGetDebugNameRT, 1, 1) \ |
328 F(CallSiteGetScriptNameOrSourceUrlRT, 1, 1) \ | 328 F(CallSiteGetScriptNameOrSourceUrlRT, 1, 1) \ |
329 F(CallSiteGetMethodNameRT, 1, 1) \ | 329 F(CallSiteGetMethodNameRT, 1, 1) \ |
330 F(CallSiteGetLineNumberRT, 1, 1) \ | 330 F(CallSiteGetLineNumberRT, 1, 1) \ |
331 F(CallSiteGetColumnNumberRT, 1, 1) \ | 331 F(CallSiteGetColumnNumberRT, 1, 1) \ |
332 F(CallSiteIsNativeRT, 1, 1) \ | 332 F(CallSiteIsNativeRT, 1, 1) \ |
333 F(CallSiteIsToplevelRT, 1, 1) \ | 333 F(CallSiteIsToplevelRT, 1, 1) \ |
334 F(CallSiteIsEvalRT, 1, 1) \ | 334 F(CallSiteIsEvalRT, 1, 1) \ |
335 F(CallSiteIsConstructorRT, 1, 1) \ | 335 F(CallSiteIsConstructorRT, 1, 1) \ |
336 F(IS_VAR, 1, 1) \ | 336 F(IS_VAR, 1, 1) \ |
337 F(IncrementStatsCounter, 1, 1) \ | 337 F(IncrementStatsCounter, 1, 1) \ |
338 F(ThrowConstructedNonConstructable, 1, 1) \ | 338 F(ThrowConstructedNonConstructable, 1, 1) \ |
339 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ | 339 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ |
340 F(ThrowCalledNonCallable, 1, 1) \ | 340 F(ThrowCalledNonCallable, 1, 1) \ |
341 F(CreateListFromArrayLike, 1, 1) \ | 341 F(CreateListFromArrayLike, 1, 1) \ |
342 F(IncrementUseCounter, 1, 1) \ | 342 F(IncrementUseCounter, 1, 1) \ |
343 F(GetAndResetRuntimeCallStats, 0, 1) | 343 F(GetAndResetRuntimeCallStats, 0, 1) |
344 | 344 |
345 | |
346 #define FOR_EACH_INTRINSIC_JSON(F) \ | 345 #define FOR_EACH_INTRINSIC_JSON(F) \ |
347 F(QuoteJSONString, 1, 1) \ | 346 F(QuoteJSONString, 1, 1) \ |
348 F(BasicJSONStringify, 1, 1) \ | 347 F(BasicJSONStringify, 1, 1) \ |
349 F(ParseJson, 1, 1) | 348 F(ParseJson, 1, 1) |
350 | 349 |
351 | 350 |
352 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 351 #define FOR_EACH_INTRINSIC_LITERALS(F) \ |
353 F(CreateRegExpLiteral, 4, 1) \ | 352 F(CreateRegExpLiteral, 4, 1) \ |
354 F(CreateObjectLiteral, 4, 1) \ | 353 F(CreateObjectLiteral, 4, 1) \ |
355 F(CreateArrayLiteral, 4, 1) \ | 354 F(CreateArrayLiteral, 4, 1) \ |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 | 1205 |
1207 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1206 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1208 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1207 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1209 STATIC_ASSERT(LANGUAGE_END == 3); | 1208 STATIC_ASSERT(LANGUAGE_END == 3); |
1210 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1209 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1211 | 1210 |
1212 } // namespace internal | 1211 } // namespace internal |
1213 } // namespace v8 | 1212 } // namespace v8 |
1214 | 1213 |
1215 #endif // V8_RUNTIME_RUNTIME_H_ | 1214 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |