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

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

Issue 25666006: Get rid of the HInstanceSize instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 V(FunctionLiteral) \ 100 V(FunctionLiteral) \
101 V(GetCachedArrayIndex) \ 101 V(GetCachedArrayIndex) \
102 V(GlobalObject) \ 102 V(GlobalObject) \
103 V(GlobalReceiver) \ 103 V(GlobalReceiver) \
104 V(Goto) \ 104 V(Goto) \
105 V(HasCachedArrayIndexAndBranch) \ 105 V(HasCachedArrayIndexAndBranch) \
106 V(HasInstanceTypeAndBranch) \ 106 V(HasInstanceTypeAndBranch) \
107 V(InnerAllocatedObject) \ 107 V(InnerAllocatedObject) \
108 V(InstanceOf) \ 108 V(InstanceOf) \
109 V(InstanceOfKnownGlobal) \ 109 V(InstanceOfKnownGlobal) \
110 V(InstanceSize) \
111 V(InstructionGap) \ 110 V(InstructionGap) \
112 V(Integer32ToDouble) \ 111 V(Integer32ToDouble) \
113 V(Integer32ToSmi) \ 112 V(Integer32ToSmi) \
114 V(InvokeFunction) \ 113 V(InvokeFunction) \
115 V(IsConstructCallAndBranch) \ 114 V(IsConstructCallAndBranch) \
116 V(IsObjectAndBranch) \ 115 V(IsObjectAndBranch) \
117 V(IsStringAndBranch) \ 116 V(IsStringAndBranch) \
118 V(IsSmiAndBranch) \ 117 V(IsSmiAndBranch) \
119 V(IsUndetectableAndBranch) \ 118 V(IsUndetectableAndBranch) \
120 V(Label) \ 119 V(Label) \
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 virtual void SetDeferredLazyDeoptimizationEnvironment( 1123 virtual void SetDeferredLazyDeoptimizationEnvironment(
1125 LEnvironment* env) V8_OVERRIDE { 1124 LEnvironment* env) V8_OVERRIDE {
1126 lazy_deopt_env_ = env; 1125 lazy_deopt_env_ = env;
1127 } 1126 }
1128 1127
1129 private: 1128 private:
1130 LEnvironment* lazy_deopt_env_; 1129 LEnvironment* lazy_deopt_env_;
1131 }; 1130 };
1132 1131
1133 1132
1134 class LInstanceSize V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1135 public:
1136 explicit LInstanceSize(LOperand* object) {
1137 inputs_[0] = object;
1138 }
1139
1140 LOperand* object() { return inputs_[0]; }
1141
1142 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size")
1143 DECLARE_HYDROGEN_ACCESSOR(InstanceSize)
1144 };
1145
1146
1147 class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1133 class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1148 public: 1134 public:
1149 LBoundsCheck(LOperand* index, LOperand* length) { 1135 LBoundsCheck(LOperand* index, LOperand* length) {
1150 inputs_[0] = index; 1136 inputs_[0] = index;
1151 inputs_[1] = length; 1137 inputs_[1] = length;
1152 } 1138 }
1153 1139
1154 LOperand* index() { return inputs_[0]; } 1140 LOperand* index() { return inputs_[0]; }
1155 LOperand* length() { return inputs_[1]; } 1141 LOperand* length() { return inputs_[1]; }
1156 1142
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 2914
2929 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2915 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2930 }; 2916 };
2931 2917
2932 #undef DECLARE_HYDROGEN_ACCESSOR 2918 #undef DECLARE_HYDROGEN_ACCESSOR
2933 #undef DECLARE_CONCRETE_INSTRUCTION 2919 #undef DECLARE_CONCRETE_INSTRUCTION
2934 2920
2935 } } // namespace v8::internal 2921 } } // namespace v8::internal
2936 2922
2937 #endif // V8_IA32_LITHIUM_IA32_H_ 2923 #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