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

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

Issue 12389070: MIPS: Compile FastCloneShallowObjectStub using Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.16
Patch Set: Created 7 years, 9 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 V(FunctionLiteral) \ 101 V(FunctionLiteral) \
102 V(GetCachedArrayIndex) \ 102 V(GetCachedArrayIndex) \
103 V(GlobalObject) \ 103 V(GlobalObject) \
104 V(GlobalReceiver) \ 104 V(GlobalReceiver) \
105 V(Goto) \ 105 V(Goto) \
106 V(HasCachedArrayIndexAndBranch) \ 106 V(HasCachedArrayIndexAndBranch) \
107 V(HasInstanceTypeAndBranch) \ 107 V(HasInstanceTypeAndBranch) \
108 V(In) \ 108 V(In) \
109 V(InstanceOf) \ 109 V(InstanceOf) \
110 V(InstanceOfKnownGlobal) \ 110 V(InstanceOfKnownGlobal) \
111 V(InstanceSize) \
111 V(InstructionGap) \ 112 V(InstructionGap) \
112 V(Integer32ToDouble) \ 113 V(Integer32ToDouble) \
113 V(Uint32ToDouble) \ 114 V(Uint32ToDouble) \
114 V(InvokeFunction) \ 115 V(InvokeFunction) \
115 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
116 V(IsNilAndBranch) \ 117 V(IsNilAndBranch) \
117 V(IsObjectAndBranch) \ 118 V(IsObjectAndBranch) \
118 V(IsStringAndBranch) \ 119 V(IsStringAndBranch) \
119 V(IsSmiAndBranch) \ 120 V(IsSmiAndBranch) \
120 V(IsUndetectableAndBranch) \ 121 V(IsUndetectableAndBranch) \
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 } 953 }
953 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { 954 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
954 lazy_deopt_env_ = env; 955 lazy_deopt_env_ = env;
955 } 956 }
956 957
957 private: 958 private:
958 LEnvironment* lazy_deopt_env_; 959 LEnvironment* lazy_deopt_env_;
959 }; 960 };
960 961
961 962
963 class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
964 public:
965 explicit LInstanceSize(LOperand* object) {
966 inputs_[0] = object;
967 }
968
969 LOperand* object() { return inputs_[0]; }
970
971 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size")
972 DECLARE_HYDROGEN_ACCESSOR(InstanceSize)
973 };
974
975
962 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { 976 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
963 public: 977 public:
964 LBoundsCheck(LOperand* index, LOperand* length) { 978 LBoundsCheck(LOperand* index, LOperand* length) {
965 inputs_[0] = index; 979 inputs_[0] = index;
966 inputs_[1] = length; 980 inputs_[1] = length;
967 } 981 }
968 982
969 LOperand* index() { return inputs_[0]; } 983 LOperand* index() { return inputs_[0]; }
970 LOperand* length() { return inputs_[1]; } 984 LOperand* length() { return inputs_[1]; }
971 985
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 2644
2631 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2645 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2632 }; 2646 };
2633 2647
2634 #undef DECLARE_HYDROGEN_ACCESSOR 2648 #undef DECLARE_HYDROGEN_ACCESSOR
2635 #undef DECLARE_CONCRETE_INSTRUCTION 2649 #undef DECLARE_CONCRETE_INSTRUCTION
2636 2650
2637 } } // namespace v8::internal 2651 } } // namespace v8::internal
2638 2652
2639 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2653 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698