| 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 } | 838 } |
| 839 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { | 839 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { |
| 840 lazy_deopt_env_ = env; | 840 lazy_deopt_env_ = env; |
| 841 } | 841 } |
| 842 | 842 |
| 843 private: | 843 private: |
| 844 LEnvironment* lazy_deopt_env_; | 844 LEnvironment* lazy_deopt_env_; |
| 845 }; | 845 }; |
| 846 | 846 |
| 847 | 847 |
| 848 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { | 848 class LBoundsCheck: public LTemplateInstruction<0, 2, 1> { |
| 849 public: | 849 public: |
| 850 LBoundsCheck(LOperand* index, LOperand* length) { | 850 LBoundsCheck(LOperand* index, LOperand* length, LOperand* temp) { |
| 851 inputs_[0] = index; | 851 inputs_[0] = index; |
| 852 inputs_[1] = length; | 852 inputs_[1] = length; |
| 853 temps_[0] = temp; |
| 853 } | 854 } |
| 854 | 855 |
| 855 LOperand* index() { return inputs_[0]; } | 856 LOperand* index() { return inputs_[0]; } |
| 856 LOperand* length() { return inputs_[1]; } | 857 LOperand* length() { return inputs_[1]; } |
| 857 | 858 |
| 858 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") | 859 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") |
| 860 DECLARE_HYDROGEN_ACCESSOR(BoundsCheck) |
| 859 }; | 861 }; |
| 860 | 862 |
| 861 | 863 |
| 862 class LBitI: public LTemplateInstruction<1, 2, 0> { | 864 class LBitI: public LTemplateInstruction<1, 2, 0> { |
| 863 public: | 865 public: |
| 864 LBitI(LOperand* left, LOperand* right) { | 866 LBitI(LOperand* left, LOperand* right) { |
| 865 inputs_[0] = left; | 867 inputs_[0] = left; |
| 866 inputs_[1] = right; | 868 inputs_[1] = right; |
| 867 } | 869 } |
| 868 | 870 |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2527 | 2529 |
| 2528 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2530 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2529 }; | 2531 }; |
| 2530 | 2532 |
| 2531 #undef DECLARE_HYDROGEN_ACCESSOR | 2533 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2532 #undef DECLARE_CONCRETE_INSTRUCTION | 2534 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2533 | 2535 |
| 2534 } } // namespace v8::internal | 2536 } } // namespace v8::internal |
| 2535 | 2537 |
| 2536 #endif // V8_IA32_LITHIUM_IA32_H_ | 2538 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |