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

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

Issue 6529024: X64 Crankshaft: Implement InstanceOf and InstanceOfKnownGlobal (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 public: 824 public:
825 LInstanceOfAndBranch(LOperand* left, LOperand* right) { 825 LInstanceOfAndBranch(LOperand* left, LOperand* right) {
826 inputs_[0] = left; 826 inputs_[0] = left;
827 inputs_[1] = right; 827 inputs_[1] = right;
828 } 828 }
829 829
830 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") 830 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
831 }; 831 };
832 832
833 833
834 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { 834 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> {
835 public: 835 public:
836 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { 836 explicit LInstanceOfKnownGlobal(LOperand* value) {
837 inputs_[0] = value; 837 inputs_[0] = value;
838 temps_[0] = temp;
839 } 838 }
840 839
841 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 840 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
842 "instance-of-known-global") 841 "instance-of-known-global")
843 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 842 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
844 843
845 Handle<JSFunction> function() const { return hydrogen()->function(); } 844 Handle<JSFunction> function() const { return hydrogen()->function(); }
846 }; 845 };
847 846
848 847
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1997 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1999 }; 1998 };
2000 1999
2001 #undef DECLARE_HYDROGEN_ACCESSOR 2000 #undef DECLARE_HYDROGEN_ACCESSOR
2002 #undef DECLARE_INSTRUCTION 2001 #undef DECLARE_INSTRUCTION
2003 #undef DECLARE_CONCRETE_INSTRUCTION 2002 #undef DECLARE_CONCRETE_INSTRUCTION
2004 2003
2005 } } // namespace v8::int 2004 } } // namespace v8::int
2006 2005
2007 #endif // V8_X64_LITHIUM_X64_H_ 2006 #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