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

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

Issue 6248004: ARM: Implement DoInstanceOfKnownGlobal stub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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
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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 int false_block_id() const { return false_block_id_; } 936 int false_block_id() const { return false_block_id_; }
937 937
938 private: 938 private:
939 int true_block_id_; 939 int true_block_id_;
940 int false_block_id_; 940 int false_block_id_;
941 }; 941 };
942 942
943 943
944 class LInstanceOfKnownGlobal: public LUnaryOperation { 944 class LInstanceOfKnownGlobal: public LUnaryOperation {
945 public: 945 public:
946 explicit LInstanceOfKnownGlobal(LOperand* left) 946 explicit LInstanceOfKnownGlobal(LOperand* left, LOperand* temp)
947 : LUnaryOperation(left) { } 947 : LUnaryOperation(left), temp_(temp) { }
948 948
949 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 949 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
950 "instance-of-known-global") 950 "instance-of-known-global")
951 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 951 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
952 952
953 Handle<JSFunction> function() const { return hydrogen()->function(); } 953 Handle<JSFunction> function() const { return hydrogen()->function(); }
954 LOperand* temp() const { return temp_; }
955
956 private:
957 LOperand* temp_;
954 }; 958 };
955 959
956 960
957 class LBoundsCheck: public LBinaryOperation { 961 class LBoundsCheck: public LBinaryOperation {
958 public: 962 public:
959 LBoundsCheck(LOperand* index, LOperand* length) 963 LBoundsCheck(LOperand* index, LOperand* length)
960 : LBinaryOperation(index, length) { } 964 : LBinaryOperation(index, length) { }
961 965
962 LOperand* index() const { return left(); } 966 LOperand* index() const { return left(); }
963 LOperand* length() const { return right(); } 967 LOperand* length() const { return right(); }
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1942 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1939 }; 1943 };
1940 1944
1941 #undef DECLARE_HYDROGEN_ACCESSOR 1945 #undef DECLARE_HYDROGEN_ACCESSOR
1942 #undef DECLARE_INSTRUCTION 1946 #undef DECLARE_INSTRUCTION
1943 #undef DECLARE_CONCRETE_INSTRUCTION 1947 #undef DECLARE_CONCRETE_INSTRUCTION
1944 1948
1945 } } // namespace v8::internal 1949 } } // namespace v8::internal
1946 1950
1947 #endif // V8_ARM_LITHIUM_ARM_H_ 1951 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698