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

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

Issue 10735020: Optimize Smi keys for KeyedLoads (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review feedback Created 8 years, 5 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 public: 850 public:
851 LBoundsCheck(LOperand* index, LOperand* length) { 851 LBoundsCheck(LOperand* index, LOperand* length) {
852 inputs_[0] = index; 852 inputs_[0] = index;
853 inputs_[1] = length; 853 inputs_[1] = length;
854 } 854 }
855 855
856 LOperand* index() { return inputs_[0]; } 856 LOperand* index() { return inputs_[0]; }
857 LOperand* length() { return inputs_[1]; } 857 LOperand* length() { return inputs_[1]; }
858 858
859 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") 859 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
860 DECLARE_HYDROGEN_ACCESSOR(BoundsCheck)
860 }; 861 };
861 862
862 863
863 class LBitI: public LTemplateInstruction<1, 2, 0> { 864 class LBitI: public LTemplateInstruction<1, 2, 0> {
864 public: 865 public:
865 LBitI(LOperand* left, LOperand* right) { 866 LBitI(LOperand* left, LOperand* right) {
866 inputs_[0] = left; 867 inputs_[0] = left;
867 inputs_[1] = right; 868 inputs_[1] = right;
868 } 869 }
869 870
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 2345
2345 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2346 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2346 }; 2347 };
2347 2348
2348 #undef DECLARE_HYDROGEN_ACCESSOR 2349 #undef DECLARE_HYDROGEN_ACCESSOR
2349 #undef DECLARE_CONCRETE_INSTRUCTION 2350 #undef DECLARE_CONCRETE_INSTRUCTION
2350 2351
2351 } } // namespace v8::int 2352 } } // namespace v8::int
2352 2353
2353 #endif // V8_X64_LITHIUM_X64_H_ 2354 #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