Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/runtime/runtime.h

Issue 1693833002: Remove strong mode support from binary operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 F(ToPrimitive_Number, 1, 1) \ 463 F(ToPrimitive_Number, 1, 1) \
464 F(ToPrimitive_String, 1, 1) \ 464 F(ToPrimitive_String, 1, 1) \
465 F(ToNumber, 1, 1) \ 465 F(ToNumber, 1, 1) \
466 F(ToInteger, 1, 1) \ 466 F(ToInteger, 1, 1) \
467 F(ToLength, 1, 1) \ 467 F(ToLength, 1, 1) \
468 F(ToString, 1, 1) \ 468 F(ToString, 1, 1) \
469 F(ToName, 1, 1) \ 469 F(ToName, 1, 1) \
470 F(Equals, 2, 1) \ 470 F(Equals, 2, 1) \
471 F(StrictEquals, 2, 1) \ 471 F(StrictEquals, 2, 1) \
472 F(Compare, 3, 1) \ 472 F(Compare, 3, 1) \
473 F(Compare_Strong, 3, 1) \
474 F(InstanceOf, 2, 1) \ 473 F(InstanceOf, 2, 1) \
475 F(HasInPrototypeChain, 2, 1) \ 474 F(HasInPrototypeChain, 2, 1) \
476 F(CreateIterResultObject, 2, 1) \ 475 F(CreateIterResultObject, 2, 1) \
477 F(IsAccessCheckNeeded, 1, 1) \ 476 F(IsAccessCheckNeeded, 1, 1) \
478 F(ObjectDefineProperties, 2, 1) \ 477 F(ObjectDefineProperties, 2, 1) \
479 F(ObjectDefineProperty, 3, 1) 478 F(ObjectDefineProperty, 3, 1)
480 479
481 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ 480 #define FOR_EACH_INTRINSIC_OBSERVE(F) \
482 F(IsObserved, 1, 1) \ 481 F(IsObserved, 1, 1) \
483 F(SetIsObserved, 1, 1) \ 482 F(SetIsObserved, 1, 1) \
484 F(EnqueueMicrotask, 1, 1) \ 483 F(EnqueueMicrotask, 1, 1) \
485 F(RunMicrotasks, 0, 1) \ 484 F(RunMicrotasks, 0, 1) \
486 F(DeliverObservationChangeRecords, 2, 1) \ 485 F(DeliverObservationChangeRecords, 2, 1) \
487 F(GetObservationState, 0, 1) \ 486 F(GetObservationState, 0, 1) \
488 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ 487 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \
489 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \ 488 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \
490 F(GetObjectContextObjectObserve, 1, 1) \ 489 F(GetObjectContextObjectObserve, 1, 1) \
491 F(GetObjectContextObjectGetNotifier, 1, 1) \ 490 F(GetObjectContextObjectGetNotifier, 1, 1) \
492 F(GetObjectContextNotifierPerformChange, 1, 1) 491 F(GetObjectContextNotifierPerformChange, 1, 1)
493 492
494
495 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ 493 #define FOR_EACH_INTRINSIC_OPERATORS(F) \
496 F(Multiply, 2, 1) \ 494 F(Multiply, 2, 1) \
497 F(Multiply_Strong, 2, 1) \
498 F(Divide, 2, 1) \ 495 F(Divide, 2, 1) \
499 F(Divide_Strong, 2, 1) \
500 F(Modulus, 2, 1) \ 496 F(Modulus, 2, 1) \
501 F(Modulus_Strong, 2, 1) \
502 F(Add, 2, 1) \ 497 F(Add, 2, 1) \
503 F(Add_Strong, 2, 1) \
504 F(Subtract, 2, 1) \ 498 F(Subtract, 2, 1) \
505 F(Subtract_Strong, 2, 1) \
506 F(ShiftLeft, 2, 1) \ 499 F(ShiftLeft, 2, 1) \
507 F(ShiftLeft_Strong, 2, 1) \
508 F(ShiftRight, 2, 1) \ 500 F(ShiftRight, 2, 1) \
509 F(ShiftRight_Strong, 2, 1) \
510 F(ShiftRightLogical, 2, 1) \ 501 F(ShiftRightLogical, 2, 1) \
511 F(ShiftRightLogical_Strong, 2, 1) \
512 F(BitwiseAnd, 2, 1) \ 502 F(BitwiseAnd, 2, 1) \
513 F(BitwiseAnd_Strong, 2, 1) \
514 F(BitwiseOr, 2, 1) \ 503 F(BitwiseOr, 2, 1) \
515 F(BitwiseOr_Strong, 2, 1) \ 504 F(BitwiseXor, 2, 1)
516 F(BitwiseXor, 2, 1) \
517 F(BitwiseXor_Strong, 2, 1)
518 505
519 #define FOR_EACH_INTRINSIC_PROXY(F) \ 506 #define FOR_EACH_INTRINSIC_PROXY(F) \
520 F(IsJSProxy, 1, 1) \ 507 F(IsJSProxy, 1, 1) \
521 F(JSProxyCall, -1 /* >= 2 */, 1) \ 508 F(JSProxyCall, -1 /* >= 2 */, 1) \
522 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ 509 F(JSProxyConstruct, -1 /* >= 3 */, 1) \
523 F(JSProxyGetTarget, 1, 1) \ 510 F(JSProxyGetTarget, 1, 1) \
524 F(JSProxyGetHandler, 1, 1) \ 511 F(JSProxyGetHandler, 1, 1) \
525 F(JSProxyRevoke, 1, 1) 512 F(JSProxyRevoke, 1, 1)
526 513
527 #define FOR_EACH_INTRINSIC_REGEXP(F) \ 514 #define FOR_EACH_INTRINSIC_REGEXP(F) \
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 1211
1225 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1212 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1226 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1213 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1227 STATIC_ASSERT(LANGUAGE_END == 3); 1214 STATIC_ASSERT(LANGUAGE_END == 3);
1228 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1215 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1229 1216
1230 } // namespace internal 1217 } // namespace internal
1231 } // namespace v8 1218 } // namespace v8
1232 1219
1233 #endif // V8_RUNTIME_RUNTIME_H_ 1220 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698