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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 F(CallSiteIsToplevelRT, 1, 1) \ | 310 F(CallSiteIsToplevelRT, 1, 1) \ |
311 F(CallSiteIsEvalRT, 1, 1) \ | 311 F(CallSiteIsEvalRT, 1, 1) \ |
312 F(CallSiteIsConstructorRT, 1, 1) \ | 312 F(CallSiteIsConstructorRT, 1, 1) \ |
313 F(IS_VAR, 1, 1) \ | 313 F(IS_VAR, 1, 1) \ |
314 F(ThrowConstructedNonConstructable, 1, 1) \ | 314 F(ThrowConstructedNonConstructable, 1, 1) \ |
315 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ | 315 F(ThrowDerivedConstructorReturnedNonObject, 0, 1) \ |
316 F(ThrowCalledNonCallable, 1, 1) \ | 316 F(ThrowCalledNonCallable, 1, 1) \ |
317 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | 317 F(ThrowCalledOnNullOrUndefined, 1, 1) \ |
318 F(CreateListFromArrayLike, 1, 1) \ | 318 F(CreateListFromArrayLike, 1, 1) \ |
319 F(IncrementUseCounter, 1, 1) \ | 319 F(IncrementUseCounter, 1, 1) \ |
320 F(GetOrdinaryHasInstance, 0, 1) \ | |
321 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ | 320 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
322 F(EnqueueMicrotask, 1, 1) \ | 321 F(EnqueueMicrotask, 1, 1) \ |
323 F(RunMicrotasks, 0, 1) \ | 322 F(RunMicrotasks, 0, 1) \ |
324 F(WasmGetFunctionName, 2, 1) | 323 F(WasmGetFunctionName, 2, 1) \ |
| 324 F(OrdinaryHasInstance, 2, 1) |
325 | 325 |
326 #define FOR_EACH_INTRINSIC_JSON(F) \ | 326 #define FOR_EACH_INTRINSIC_JSON(F) \ |
327 F(QuoteJSONString, 1, 1) \ | 327 F(QuoteJSONString, 1, 1) \ |
328 F(BasicJSONStringify, 1, 1) \ | 328 F(BasicJSONStringify, 1, 1) \ |
329 F(ParseJson, 1, 1) | 329 F(ParseJson, 1, 1) |
330 | 330 |
331 | 331 |
332 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 332 #define FOR_EACH_INTRINSIC_LITERALS(F) \ |
333 F(CreateRegExpLiteral, 4, 1) \ | 333 F(CreateRegExpLiteral, 4, 1) \ |
334 F(CreateObjectLiteral, 4, 1) \ | 334 F(CreateObjectLiteral, 4, 1) \ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 F(ToPrimitive_Number, 1, 1) \ | 425 F(ToPrimitive_Number, 1, 1) \ |
426 F(ToPrimitive_String, 1, 1) \ | 426 F(ToPrimitive_String, 1, 1) \ |
427 F(ToNumber, 1, 1) \ | 427 F(ToNumber, 1, 1) \ |
428 F(ToInteger, 1, 1) \ | 428 F(ToInteger, 1, 1) \ |
429 F(ToLength, 1, 1) \ | 429 F(ToLength, 1, 1) \ |
430 F(ToString, 1, 1) \ | 430 F(ToString, 1, 1) \ |
431 F(ToName, 1, 1) \ | 431 F(ToName, 1, 1) \ |
432 F(SameValue, 2, 1) \ | 432 F(SameValue, 2, 1) \ |
433 F(SameValueZero, 2, 1) \ | 433 F(SameValueZero, 2, 1) \ |
434 F(Compare, 3, 1) \ | 434 F(Compare, 3, 1) \ |
435 F(InstanceOf, 2, 1) \ | |
436 F(OrdinaryHasInstance, 2, 1) \ | |
437 F(HasInPrototypeChain, 2, 1) \ | 435 F(HasInPrototypeChain, 2, 1) \ |
438 F(CreateIterResultObject, 2, 1) \ | 436 F(CreateIterResultObject, 2, 1) \ |
439 F(IsAccessCheckNeeded, 1, 1) \ | 437 F(IsAccessCheckNeeded, 1, 1) \ |
440 F(CreateDataProperty, 3, 1) | 438 F(CreateDataProperty, 3, 1) |
441 | 439 |
442 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ | 440 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ |
443 F(Multiply, 2, 1) \ | 441 F(Multiply, 2, 1) \ |
444 F(Divide, 2, 1) \ | 442 F(Divide, 2, 1) \ |
445 F(Modulus, 2, 1) \ | 443 F(Modulus, 2, 1) \ |
446 F(Add, 2, 1) \ | 444 F(Add, 2, 1) \ |
447 F(Subtract, 2, 1) \ | 445 F(Subtract, 2, 1) \ |
448 F(ShiftLeft, 2, 1) \ | 446 F(ShiftLeft, 2, 1) \ |
449 F(ShiftRight, 2, 1) \ | 447 F(ShiftRight, 2, 1) \ |
450 F(ShiftRightLogical, 2, 1) \ | 448 F(ShiftRightLogical, 2, 1) \ |
451 F(BitwiseAnd, 2, 1) \ | 449 F(BitwiseAnd, 2, 1) \ |
452 F(BitwiseOr, 2, 1) \ | 450 F(BitwiseOr, 2, 1) \ |
453 F(BitwiseXor, 2, 1) \ | 451 F(BitwiseXor, 2, 1) \ |
454 F(Equal, 2, 1) \ | 452 F(Equal, 2, 1) \ |
455 F(NotEqual, 2, 1) \ | 453 F(NotEqual, 2, 1) \ |
456 F(StrictEqual, 2, 1) \ | 454 F(StrictEqual, 2, 1) \ |
457 F(StrictNotEqual, 2, 1) \ | 455 F(StrictNotEqual, 2, 1) \ |
458 F(LessThan, 2, 1) \ | 456 F(LessThan, 2, 1) \ |
459 F(GreaterThan, 2, 1) \ | 457 F(GreaterThan, 2, 1) \ |
460 F(LessThanOrEqual, 2, 1) \ | 458 F(LessThanOrEqual, 2, 1) \ |
461 F(GreaterThanOrEqual, 2, 1) | 459 F(GreaterThanOrEqual, 2, 1) \ |
| 460 F(InstanceOf, 2, 1) |
462 | 461 |
463 #define FOR_EACH_INTRINSIC_PROXY(F) \ | 462 #define FOR_EACH_INTRINSIC_PROXY(F) \ |
464 F(IsJSProxy, 1, 1) \ | 463 F(IsJSProxy, 1, 1) \ |
465 F(JSProxyCall, -1 /* >= 2 */, 1) \ | 464 F(JSProxyCall, -1 /* >= 2 */, 1) \ |
466 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ | 465 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ |
467 F(JSProxyGetTarget, 1, 1) \ | 466 F(JSProxyGetTarget, 1, 1) \ |
468 F(JSProxyGetHandler, 1, 1) \ | 467 F(JSProxyGetHandler, 1, 1) \ |
469 F(JSProxyRevoke, 1, 1) | 468 F(JSProxyRevoke, 1, 1) |
470 | 469 |
471 #define FOR_EACH_INTRINSIC_REGEXP(F) \ | 470 #define FOR_EACH_INTRINSIC_REGEXP(F) \ |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 | 1168 |
1170 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1169 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1171 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1170 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1172 STATIC_ASSERT(LANGUAGE_END == 3); | 1171 STATIC_ASSERT(LANGUAGE_END == 3); |
1173 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1172 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1174 | 1173 |
1175 } // namespace internal | 1174 } // namespace internal |
1176 } // namespace v8 | 1175 } // namespace v8 |
1177 | 1176 |
1178 #endif // V8_RUNTIME_RUNTIME_H_ | 1177 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |