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

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

Issue 7274025: Slightly improved register assignment for %_IsObject on IA32 and ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 685
686 DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch") 686 DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch")
687 DECLARE_HYDROGEN_ACCESSOR(IsNull) 687 DECLARE_HYDROGEN_ACCESSOR(IsNull)
688 688
689 bool is_strict() const { return hydrogen()->is_strict(); } 689 bool is_strict() const { return hydrogen()->is_strict(); }
690 690
691 virtual void PrintDataTo(StringStream* stream); 691 virtual void PrintDataTo(StringStream* stream);
692 }; 692 };
693 693
694 694
695 class LIsObject: public LTemplateInstruction<1, 1, 1> { 695 class LIsObject: public LTemplateInstruction<1, 1, 0> {
696 public: 696 public:
697 LIsObject(LOperand* value, LOperand* temp) { 697 explicit LIsObject(LOperand* value) {
698 inputs_[0] = value; 698 inputs_[0] = value;
699 temps_[0] = temp;
700 } 699 }
701 700
702 DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object") 701 DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object")
703 }; 702 };
704 703
705 704
706 class LIsObjectAndBranch: public LControlInstruction<1, 2> { 705 class LIsObjectAndBranch: public LControlInstruction<1, 1> {
707 public: 706 public:
708 LIsObjectAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { 707 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
709 inputs_[0] = value; 708 inputs_[0] = value;
710 temps_[0] = temp; 709 temps_[0] = temp;
711 temps_[1] = temp2;
712 } 710 }
713 711
714 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 712 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
715 713
716 virtual void PrintDataTo(StringStream* stream); 714 virtual void PrintDataTo(StringStream* stream);
717 }; 715 };
718 716
719 717
720 class LIsSmi: public LTemplateInstruction<1, 1, 0> { 718 class LIsSmi: public LTemplateInstruction<1, 1, 0> {
721 public: 719 public:
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 2348
2351 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2349 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2352 }; 2350 };
2353 2351
2354 #undef DECLARE_HYDROGEN_ACCESSOR 2352 #undef DECLARE_HYDROGEN_ACCESSOR
2355 #undef DECLARE_CONCRETE_INSTRUCTION 2353 #undef DECLARE_CONCRETE_INSTRUCTION
2356 2354
2357 } } // namespace v8::internal 2355 } } // namespace v8::internal
2358 2356
2359 #endif // V8_IA32_LITHIUM_IA32_H_ 2357 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698