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

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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 int false_block_id() const { return false_block_id_; } 932 int false_block_id() const { return false_block_id_; }
933 933
934 private: 934 private:
935 int true_block_id_; 935 int true_block_id_;
936 int false_block_id_; 936 int false_block_id_;
937 }; 937 };
938 938
939 939
940 class LInstanceOfKnownGlobal: public LUnaryOperation { 940 class LInstanceOfKnownGlobal: public LUnaryOperation {
941 public: 941 public:
942 explicit LInstanceOfKnownGlobal(LOperand* left) 942 explicit LInstanceOfKnownGlobal(LOperand* left, LOperand* temp)
943 : LUnaryOperation(left) { } 943 : LUnaryOperation(left), temp_(temp) { }
944 944
945 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 945 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
946 "instance-of-known-global") 946 "instance-of-known-global")
947 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 947 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
948 948
949 Handle<JSFunction> function() const { return hydrogen()->function(); } 949 Handle<JSFunction> function() const { return hydrogen()->function(); }
950 LOperand* temp() const { return temp_; }
951
952 private:
953 LOperand* temp_;
950 }; 954 };
951 955
952 956
953 class LBoundsCheck: public LBinaryOperation { 957 class LBoundsCheck: public LBinaryOperation {
954 public: 958 public:
955 LBoundsCheck(LOperand* index, LOperand* length) 959 LBoundsCheck(LOperand* index, LOperand* length)
956 : LBinaryOperation(index, length) { } 960 : LBinaryOperation(index, length) { }
957 961
958 LOperand* index() const { return left(); } 962 LOperand* index() const { return left(); }
959 LOperand* length() const { return right(); } 963 LOperand* length() const { return right(); }
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1938 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1935 }; 1939 };
1936 1940
1937 #undef DECLARE_HYDROGEN_ACCESSOR 1941 #undef DECLARE_HYDROGEN_ACCESSOR
1938 #undef DECLARE_INSTRUCTION 1942 #undef DECLARE_INSTRUCTION
1939 #undef DECLARE_CONCRETE_INSTRUCTION 1943 #undef DECLARE_CONCRETE_INSTRUCTION
1940 1944
1941 } } // namespace v8::internal 1945 } } // namespace v8::internal
1942 1946
1943 #endif // V8_ARM_LITHIUM_ARM_H_ 1947 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698