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

Side by Side Diff: src/x64/lithium-x64.h

Issue 10581014: BoundsCheck should be extended to support array_bounds_checks_elimination (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 } 823 }
824 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { 824 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
825 lazy_deopt_env_ = env; 825 lazy_deopt_env_ = env;
826 } 826 }
827 827
828 private: 828 private:
829 LEnvironment* lazy_deopt_env_; 829 LEnvironment* lazy_deopt_env_;
830 }; 830 };
831 831
832 832
833 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { 833 class LBoundsCheck: public LTemplateInstruction<0, 2, 1> {
834 public: 834 public:
835 LBoundsCheck(LOperand* index, LOperand* length) { 835 LBoundsCheck(LOperand* index, LOperand* length, LOperand* temp) {
836 inputs_[0] = index; 836 inputs_[0] = index;
837 inputs_[1] = length; 837 inputs_[1] = length;
838 temps_[0] = temp;
838 } 839 }
839 840
840 LOperand* index() { return inputs_[0]; } 841 LOperand* index() { return inputs_[0]; }
841 LOperand* length() { return inputs_[1]; } 842 LOperand* length() { return inputs_[1]; }
842 843
843 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") 844 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
845 DECLARE_HYDROGEN_ACCESSOR(BoundsCheck)
844 }; 846 };
845 847
846 848
847 class LBitI: public LTemplateInstruction<1, 2, 0> { 849 class LBitI: public LTemplateInstruction<1, 2, 0> {
848 public: 850 public:
849 LBitI(LOperand* left, LOperand* right) { 851 LBitI(LOperand* left, LOperand* right) {
850 inputs_[0] = left; 852 inputs_[0] = left;
851 inputs_[1] = right; 853 inputs_[1] = right;
852 } 854 }
853 855
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 2385
2384 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2386 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2385 }; 2387 };
2386 2388
2387 #undef DECLARE_HYDROGEN_ACCESSOR 2389 #undef DECLARE_HYDROGEN_ACCESSOR
2388 #undef DECLARE_CONCRETE_INSTRUCTION 2390 #undef DECLARE_CONCRETE_INSTRUCTION
2389 2391
2390 } } // namespace v8::int 2392 } } // namespace v8::int
2391 2393
2392 #endif // V8_X64_LITHIUM_X64_H_ 2394 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698