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

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

Issue 6621071: X64 Crankshaft: Add inline one-element cache for Instanceof. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 public: 837 public:
838 LInstanceOfAndBranch(LOperand* left, LOperand* right) { 838 LInstanceOfAndBranch(LOperand* left, LOperand* right) {
839 inputs_[0] = left; 839 inputs_[0] = left;
840 inputs_[1] = right; 840 inputs_[1] = right;
841 } 841 }
842 842
843 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") 843 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
844 }; 844 };
845 845
846 846
847 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> { 847 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> {
848 public: 848 public:
849 explicit LInstanceOfKnownGlobal(LOperand* value) { 849 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) {
850 inputs_[0] = value; 850 inputs_[0] = value;
851 temps_[0] = temp;
851 } 852 }
852 853
853 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 854 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
854 "instance-of-known-global") 855 "instance-of-known-global")
855 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 856 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
856 857
857 Handle<JSFunction> function() const { return hydrogen()->function(); } 858 Handle<JSFunction> function() const { return hydrogen()->function(); }
858 }; 859 };
859 860
860 861
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2063 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2063 }; 2064 };
2064 2065
2065 #undef DECLARE_HYDROGEN_ACCESSOR 2066 #undef DECLARE_HYDROGEN_ACCESSOR
2066 #undef DECLARE_INSTRUCTION 2067 #undef DECLARE_INSTRUCTION
2067 #undef DECLARE_CONCRETE_INSTRUCTION 2068 #undef DECLARE_CONCRETE_INSTRUCTION
2068 2069
2069 } } // namespace v8::int 2070 } } // namespace v8::int
2070 2071
2071 #endif // V8_X64_LITHIUM_X64_H_ 2072 #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