OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 475 |
476 // There must be one corresponding kDepends flag for every kChanges flag and | 476 // There must be one corresponding kDepends flag for every kChanges flag and |
477 // the order of the kChanges flags must be exactly the same as of the kDepends | 477 // the order of the kChanges flags must be exactly the same as of the kDepends |
478 // flags. All tracked flags should appear before untracked ones. | 478 // flags. All tracked flags should appear before untracked ones. |
479 enum GVNFlag { | 479 enum GVNFlag { |
480 // Declare global value numbering flags. | 480 // Declare global value numbering flags. |
481 #define DECLARE_FLAG(type) kChanges##type, kDependsOn##type, | 481 #define DECLARE_FLAG(type) kChanges##type, kDependsOn##type, |
482 GVN_TRACKED_FLAG_LIST(DECLARE_FLAG) | 482 GVN_TRACKED_FLAG_LIST(DECLARE_FLAG) |
483 GVN_UNTRACKED_FLAG_LIST(DECLARE_FLAG) | 483 GVN_UNTRACKED_FLAG_LIST(DECLARE_FLAG) |
484 #undef DECLARE_FLAG | 484 #undef DECLARE_FLAG |
485 kAfterLastFlag, | 485 kNumberOfFlags, |
486 kLastFlag = kAfterLastFlag - 1, | |
487 #define COUNT_FLAG(type) + 1 | 486 #define COUNT_FLAG(type) + 1 |
488 kNumberOfTrackedSideEffects = 0 GVN_TRACKED_FLAG_LIST(COUNT_FLAG) | 487 kNumberOfTrackedSideEffects = 0 GVN_TRACKED_FLAG_LIST(COUNT_FLAG) |
489 #undef COUNT_FLAG | 488 #undef COUNT_FLAG |
490 }; | 489 }; |
491 | 490 |
492 | 491 |
493 class DecompositionResult V8_FINAL BASE_EMBEDDED { | 492 class DecompositionResult V8_FINAL BASE_EMBEDDED { |
494 public: | 493 public: |
495 DecompositionResult() : base_(NULL), offset_(0), scale_(0) {} | 494 DecompositionResult() : base_(NULL), offset_(0), scale_(0) {} |
496 | 495 |
(...skipping 6946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7443 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7442 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7444 }; | 7443 }; |
7445 | 7444 |
7446 | 7445 |
7447 #undef DECLARE_INSTRUCTION | 7446 #undef DECLARE_INSTRUCTION |
7448 #undef DECLARE_CONCRETE_INSTRUCTION | 7447 #undef DECLARE_CONCRETE_INSTRUCTION |
7449 | 7448 |
7450 } } // namespace v8::internal | 7449 } } // namespace v8::internal |
7451 | 7450 |
7452 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7451 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |