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

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
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 int false_block_id() const { return false_block_id_; } 938 int false_block_id() const { return false_block_id_; }
939 939
940 private: 940 private:
941 int true_block_id_; 941 int true_block_id_;
942 int false_block_id_; 942 int false_block_id_;
943 }; 943 };
944 944
945 945
946 class LInstanceOfKnownGlobal: public LUnaryOperation { 946 class LInstanceOfKnownGlobal: public LUnaryOperation {
947 public: 947 public:
948 explicit LInstanceOfKnownGlobal(LOperand* left) 948 explicit LInstanceOfKnownGlobal(LOperand* left, LOperand* temp)
949 : LUnaryOperation(left) { } 949 : LUnaryOperation(left), temp_(temp) { }
950 950
951 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 951 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
952 "instance-of-known-global") 952 "instance-of-known-global")
953 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 953 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
954 954
955 Handle<JSFunction> function() const { return hydrogen()->function(); } 955 Handle<JSFunction> function() const { return hydrogen()->function(); }
956 LOperand* temp() const { return temp_; }
957
958 private:
959 LOperand* temp_;
956 }; 960 };
957 961
958 962
959 class LBoundsCheck: public LBinaryOperation { 963 class LBoundsCheck: public LBinaryOperation {
960 public: 964 public:
961 LBoundsCheck(LOperand* index, LOperand* length) 965 LBoundsCheck(LOperand* index, LOperand* length)
962 : LBinaryOperation(index, length) { } 966 : LBinaryOperation(index, length) { }
963 967
964 LOperand* index() const { return left(); } 968 LOperand* index() const { return left(); }
965 LOperand* length() const { return right(); } 969 LOperand* length() const { return right(); }
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 1924
1921 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY }; 1925 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
1922 1926
1923 // By default we assume that instruction sequences generated for calls 1927 // By default we assume that instruction sequences generated for calls
1924 // cannot deoptimize eagerly and we do not attach environment to this 1928 // cannot deoptimize eagerly and we do not attach environment to this
1925 // instruction. 1929 // instruction.
1926 LInstruction* MarkAsCall( 1930 LInstruction* MarkAsCall(
1927 LInstruction* instr, 1931 LInstruction* instr,
1928 HInstruction* hinstr, 1932 HInstruction* hinstr,
1929 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); 1933 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
1934 LInstruction* MarkAsSaveDoubles(LInstruction* instr);
1930 1935
1931 LInstruction* SetInstructionPendingDeoptimizationEnvironment( 1936 LInstruction* SetInstructionPendingDeoptimizationEnvironment(
1932 LInstruction* instr, int ast_id); 1937 LInstruction* instr, int ast_id);
1933 void ClearInstructionPendingDeoptimizationEnvironment(); 1938 void ClearInstructionPendingDeoptimizationEnvironment();
1934 1939
1935 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); 1940 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env);
1936 1941
1937 // Temporary operand that must be in a register. 1942 // Temporary operand that must be in a register.
1938 LUnallocated* TempRegister(); 1943 LUnallocated* TempRegister();
1939 LOperand* FixedTemp(Register reg); 1944 LOperand* FixedTemp(Register reg);
(...skipping 24 matching lines...) Expand all
1964 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1969 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1965 }; 1970 };
1966 1971
1967 #undef DECLARE_HYDROGEN_ACCESSOR 1972 #undef DECLARE_HYDROGEN_ACCESSOR
1968 #undef DECLARE_INSTRUCTION 1973 #undef DECLARE_INSTRUCTION
1969 #undef DECLARE_CONCRETE_INSTRUCTION 1974 #undef DECLARE_CONCRETE_INSTRUCTION
1970 1975
1971 } } // namespace v8::internal 1976 } } // namespace v8::internal
1972 1977
1973 #endif // V8_ARM_LITHIUM_ARM_H_ 1978 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698