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

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

Issue 7778013: NewGC: Merge bleeding edge up to 9009. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 3 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 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(CmpConstantEqAndBranch) \ 79 V(CmpConstantEqAndBranch) \
80 V(ConstantD) \ 80 V(ConstantD) \
81 V(ConstantI) \ 81 V(ConstantI) \
82 V(ConstantT) \ 82 V(ConstantT) \
83 V(Context) \ 83 V(Context) \
84 V(DeleteProperty) \ 84 V(DeleteProperty) \
85 V(Deoptimize) \ 85 V(Deoptimize) \
86 V(DivI) \ 86 V(DivI) \
87 V(DoubleToI) \ 87 V(DoubleToI) \
88 V(ElementsKind) \ 88 V(ElementsKind) \
89 V(ExternalArrayLength) \ 89 V(FixedArrayBaseLength) \
90 V(FixedArrayLength) \
91 V(FunctionLiteral) \ 90 V(FunctionLiteral) \
92 V(GetCachedArrayIndex) \ 91 V(GetCachedArrayIndex) \
93 V(GlobalObject) \ 92 V(GlobalObject) \
94 V(GlobalReceiver) \ 93 V(GlobalReceiver) \
95 V(Goto) \ 94 V(Goto) \
96 V(HasCachedArrayIndexAndBranch) \ 95 V(HasCachedArrayIndexAndBranch) \
97 V(HasInstanceTypeAndBranch) \ 96 V(HasInstanceTypeAndBranch) \
98 V(In) \ 97 V(In) \
99 V(InstanceOf) \ 98 V(InstanceOf) \
100 V(InstanceOfKnownGlobal) \ 99 V(InstanceOfKnownGlobal) \
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 public: 914 public:
916 explicit LJSArrayLength(LOperand* value) { 915 explicit LJSArrayLength(LOperand* value) {
917 inputs_[0] = value; 916 inputs_[0] = value;
918 } 917 }
919 918
920 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") 919 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
921 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) 920 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
922 }; 921 };
923 922
924 923
925 class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> { 924 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
926 public: 925 public:
927 explicit LExternalArrayLength(LOperand* value) { 926 explicit LFixedArrayBaseLength(LOperand* value) {
928 inputs_[0] = value; 927 inputs_[0] = value;
929 } 928 }
930 929
931 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external-array-length") 930 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
932 DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength) 931 "fixed-array-base-length")
933 }; 932 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
934
935
936 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
937 public:
938 explicit LFixedArrayLength(LOperand* value) {
939 inputs_[0] = value;
940 }
941
942 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
943 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
944 }; 933 };
945 934
946 935
947 class LElementsKind: public LTemplateInstruction<1, 1, 0> { 936 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
948 public: 937 public:
949 explicit LElementsKind(LOperand* value) { 938 explicit LElementsKind(LOperand* value) {
950 inputs_[0] = value; 939 inputs_[0] = value;
951 } 940 }
952 941
953 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 942 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr, 2232 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
2244 int index); 2233 int index);
2245 template<int I, int T> 2234 template<int I, int T>
2246 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr); 2235 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
2247 template<int I, int T> 2236 template<int I, int T>
2248 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr, 2237 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
2249 Register reg); 2238 Register reg);
2250 template<int I, int T> 2239 template<int I, int T>
2251 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr, 2240 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
2252 XMMRegister reg); 2241 XMMRegister reg);
2242 // Assigns an environment to an instruction. An instruction which can
2243 // deoptimize must have an environment.
2253 LInstruction* AssignEnvironment(LInstruction* instr); 2244 LInstruction* AssignEnvironment(LInstruction* instr);
2245 // Assigns a pointer map to an instruction. An instruction which can
2246 // trigger a GC or a lazy deoptimization must have a pointer map.
2254 LInstruction* AssignPointerMap(LInstruction* instr); 2247 LInstruction* AssignPointerMap(LInstruction* instr);
2255 2248
2256 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY }; 2249 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
2257 2250
2258 // By default we assume that instruction sequences generated for calls 2251 // Marks a call for the register allocator. Assigns a pointer map to
2259 // cannot deoptimize eagerly and we do not attach environment to this 2252 // support GC and lazy deoptimization. Assigns an environment to support
2260 // instruction. 2253 // eager deoptimization if CAN_DEOPTIMIZE_EAGERLY.
2261 LInstruction* MarkAsCall( 2254 LInstruction* MarkAsCall(
2262 LInstruction* instr, 2255 LInstruction* instr,
2263 HInstruction* hinstr, 2256 HInstruction* hinstr,
2264 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); 2257 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
2265 LInstruction* MarkAsSaveDoubles(LInstruction* instr); 2258 LInstruction* MarkAsSaveDoubles(LInstruction* instr);
2266 2259
2267 LInstruction* SetInstructionPendingDeoptimizationEnvironment( 2260 LInstruction* SetInstructionPendingDeoptimizationEnvironment(
2268 LInstruction* instr, int ast_id); 2261 LInstruction* instr, int ast_id);
2269 void ClearInstructionPendingDeoptimizationEnvironment(); 2262 void ClearInstructionPendingDeoptimizationEnvironment();
2270 2263
(...skipping 24 matching lines...) Expand all
2295 2288
2296 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2289 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2297 }; 2290 };
2298 2291
2299 #undef DECLARE_HYDROGEN_ACCESSOR 2292 #undef DECLARE_HYDROGEN_ACCESSOR
2300 #undef DECLARE_CONCRETE_INSTRUCTION 2293 #undef DECLARE_CONCRETE_INSTRUCTION
2301 2294
2302 } } // namespace v8::internal 2295 } } // namespace v8::internal
2303 2296
2304 #endif // V8_IA32_LITHIUM_IA32_H_ 2297 #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