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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 | 200 |
201 #define FOR_EACH_INTRINSIC_FORIN(F) \ | 201 #define FOR_EACH_INTRINSIC_FORIN(F) \ |
202 F(ForInDone, 2, 1) \ | 202 F(ForInDone, 2, 1) \ |
203 F(ForInEnumerate, 1, 1) \ | 203 F(ForInEnumerate, 1, 1) \ |
204 F(ForInFilter, 2, 1) \ | 204 F(ForInFilter, 2, 1) \ |
205 F(ForInNext, 4, 1) \ | 205 F(ForInNext, 4, 1) \ |
206 F(ForInStep, 1, 1) | 206 F(ForInStep, 1, 1) |
207 | 207 |
208 #define FOR_EACH_INTRINSIC_INTERPRETER(F) \ | 208 #define FOR_EACH_INTRINSIC_INTERPRETER(F) \ |
209 F(InterpreterEquals, 2, 1) \ | |
210 F(InterpreterNotEquals, 2, 1) \ | |
211 F(InterpreterStrictEquals, 2, 1) \ | |
212 F(InterpreterStrictNotEquals, 2, 1) \ | |
213 F(InterpreterLessThan, 2, 1) \ | |
214 F(InterpreterGreaterThan, 2, 1) \ | |
215 F(InterpreterLessThanOrEqual, 2, 1) \ | |
216 F(InterpreterGreaterThanOrEqual, 2, 1) \ | |
217 F(InterpreterToBoolean, 1, 1) \ | 209 F(InterpreterToBoolean, 1, 1) \ |
218 F(InterpreterLogicalNot, 1, 1) \ | 210 F(InterpreterLogicalNot, 1, 1) \ |
219 F(InterpreterTypeOf, 1, 1) \ | 211 F(InterpreterTypeOf, 1, 1) \ |
220 F(InterpreterNewClosure, 2, 1) \ | 212 F(InterpreterNewClosure, 2, 1) \ |
221 F(InterpreterTraceBytecodeEntry, 3, 1) \ | 213 F(InterpreterTraceBytecodeEntry, 3, 1) \ |
222 F(InterpreterTraceBytecodeExit, 3, 1) \ | 214 F(InterpreterTraceBytecodeExit, 3, 1) \ |
223 F(InterpreterClearPendingMessage, 0, 1) \ | 215 F(InterpreterClearPendingMessage, 0, 1) \ |
224 F(InterpreterSetPendingMessage, 1, 1) | 216 F(InterpreterSetPendingMessage, 1, 1) |
225 | 217 |
226 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ | 218 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 F(DefineSetterPropertyUnchecked, 4, 1) \ | 446 F(DefineSetterPropertyUnchecked, 4, 1) \ |
455 F(ToObject, 1, 1) \ | 447 F(ToObject, 1, 1) \ |
456 F(ToPrimitive, 1, 1) \ | 448 F(ToPrimitive, 1, 1) \ |
457 F(ToPrimitive_Number, 1, 1) \ | 449 F(ToPrimitive_Number, 1, 1) \ |
458 F(ToPrimitive_String, 1, 1) \ | 450 F(ToPrimitive_String, 1, 1) \ |
459 F(ToNumber, 1, 1) \ | 451 F(ToNumber, 1, 1) \ |
460 F(ToInteger, 1, 1) \ | 452 F(ToInteger, 1, 1) \ |
461 F(ToLength, 1, 1) \ | 453 F(ToLength, 1, 1) \ |
462 F(ToString, 1, 1) \ | 454 F(ToString, 1, 1) \ |
463 F(ToName, 1, 1) \ | 455 F(ToName, 1, 1) \ |
464 F(Equals, 2, 1) \ | |
465 F(StrictEquals, 2, 1) \ | |
466 F(SameValue, 2, 1) \ | 456 F(SameValue, 2, 1) \ |
467 F(SameValueZero, 2, 1) \ | 457 F(SameValueZero, 2, 1) \ |
468 F(Compare, 3, 1) \ | 458 F(Compare, 3, 1) \ |
469 F(InstanceOf, 2, 1) \ | 459 F(InstanceOf, 2, 1) \ |
470 F(HasInPrototypeChain, 2, 1) \ | 460 F(HasInPrototypeChain, 2, 1) \ |
471 F(CreateIterResultObject, 2, 1) \ | 461 F(CreateIterResultObject, 2, 1) \ |
472 F(IsAccessCheckNeeded, 1, 1) \ | 462 F(IsAccessCheckNeeded, 1, 1) \ |
473 F(ObjectDefineProperties, 2, 1) \ | 463 F(ObjectDefineProperties, 2, 1) \ |
474 F(ObjectDefineProperty, 3, 1) | 464 F(ObjectDefineProperty, 3, 1) |
475 | 465 |
(...skipping 14 matching lines...) Expand all Loading... |
490 F(Multiply, 2, 1) \ | 480 F(Multiply, 2, 1) \ |
491 F(Divide, 2, 1) \ | 481 F(Divide, 2, 1) \ |
492 F(Modulus, 2, 1) \ | 482 F(Modulus, 2, 1) \ |
493 F(Add, 2, 1) \ | 483 F(Add, 2, 1) \ |
494 F(Subtract, 2, 1) \ | 484 F(Subtract, 2, 1) \ |
495 F(ShiftLeft, 2, 1) \ | 485 F(ShiftLeft, 2, 1) \ |
496 F(ShiftRight, 2, 1) \ | 486 F(ShiftRight, 2, 1) \ |
497 F(ShiftRightLogical, 2, 1) \ | 487 F(ShiftRightLogical, 2, 1) \ |
498 F(BitwiseAnd, 2, 1) \ | 488 F(BitwiseAnd, 2, 1) \ |
499 F(BitwiseOr, 2, 1) \ | 489 F(BitwiseOr, 2, 1) \ |
500 F(BitwiseXor, 2, 1) | 490 F(BitwiseXor, 2, 1) \ |
| 491 F(Equal, 2, 1) \ |
| 492 F(NotEqual, 2, 1) \ |
| 493 F(StrictEqual, 2, 1) \ |
| 494 F(StrictNotEqual, 2, 1) \ |
| 495 F(LessThan, 2, 1) \ |
| 496 F(GreaterThan, 2, 1) \ |
| 497 F(LessThanOrEqual, 2, 1) \ |
| 498 F(GreaterThanOrEqual, 2, 1) |
501 | 499 |
502 #define FOR_EACH_INTRINSIC_PROXY(F) \ | 500 #define FOR_EACH_INTRINSIC_PROXY(F) \ |
503 F(IsJSProxy, 1, 1) \ | 501 F(IsJSProxy, 1, 1) \ |
504 F(JSProxyCall, -1 /* >= 2 */, 1) \ | 502 F(JSProxyCall, -1 /* >= 2 */, 1) \ |
505 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ | 503 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ |
506 F(JSProxyGetTarget, 1, 1) \ | 504 F(JSProxyGetTarget, 1, 1) \ |
507 F(JSProxyGetHandler, 1, 1) \ | 505 F(JSProxyGetHandler, 1, 1) \ |
508 F(JSProxyRevoke, 1, 1) | 506 F(JSProxyRevoke, 1, 1) |
509 | 507 |
510 #define FOR_EACH_INTRINSIC_REGEXP(F) \ | 508 #define FOR_EACH_INTRINSIC_REGEXP(F) \ |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 | 1201 |
1204 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1202 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1205 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1203 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1206 STATIC_ASSERT(LANGUAGE_END == 3); | 1204 STATIC_ASSERT(LANGUAGE_END == 3); |
1207 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1205 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1208 | 1206 |
1209 } // namespace internal | 1207 } // namespace internal |
1210 } // namespace v8 | 1208 } // namespace v8 |
1211 | 1209 |
1212 #endif // V8_RUNTIME_RUNTIME_H_ | 1210 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |