OLD | NEW |
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 Label* map_check); | 122 Label* map_check); |
123 | 123 |
124 void DoCheckMapCommon(Register reg, Handle<Map> map, | 124 void DoCheckMapCommon(Register reg, Handle<Map> map, |
125 CompareMapMode mode, LEnvironment* env); | 125 CompareMapMode mode, LEnvironment* env); |
126 | 126 |
127 // Parallel move support. | 127 // Parallel move support. |
128 void DoParallelMove(LParallelMove* move); | 128 void DoParallelMove(LParallelMove* move); |
129 void DoGap(LGap* instr); | 129 void DoGap(LGap* instr); |
130 | 130 |
131 // Emit frame translation commands for an environment. | 131 // Emit frame translation commands for an environment. |
132 void WriteTranslation(LEnvironment* environment, | 132 void WriteTranslation(LEnvironment* environment, Translation* translation); |
133 Translation* translation, | |
134 int* arguments_index, | |
135 int* arguments_count); | |
136 | 133 |
137 void EnsureRelocSpaceForDeoptimization(); | 134 void EnsureRelocSpaceForDeoptimization(); |
138 | 135 |
139 // Declare methods that deal with the individual node types. | 136 // Declare methods that deal with the individual node types. |
140 #define DECLARE_DO(type) void Do##type(L##type* node); | 137 #define DECLARE_DO(type) void Do##type(L##type* node); |
141 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 138 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
142 #undef DECLARE_DO | 139 #undef DECLARE_DO |
143 | 140 |
144 private: | 141 private: |
145 enum Status { | 142 enum Status { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 232 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
236 SafepointMode safepoint_mode); | 233 SafepointMode safepoint_mode); |
237 | 234 |
238 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 235 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
239 Safepoint::DeoptMode mode); | 236 Safepoint::DeoptMode mode); |
240 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 237 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
241 | 238 |
242 void AddToTranslation(Translation* translation, | 239 void AddToTranslation(Translation* translation, |
243 LOperand* op, | 240 LOperand* op, |
244 bool is_tagged, | 241 bool is_tagged, |
245 bool is_uint32, | 242 bool is_uint32); |
246 int arguments_index, | |
247 int arguments_count); | |
248 void PopulateDeoptimizationData(Handle<Code> code); | 243 void PopulateDeoptimizationData(Handle<Code> code); |
249 int DefineDeoptimizationLiteral(Handle<Object> literal); | 244 int DefineDeoptimizationLiteral(Handle<Object> literal); |
250 | 245 |
251 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 246 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
252 | 247 |
253 Register ToRegister(int index) const; | 248 Register ToRegister(int index) const; |
254 XMMRegister ToDoubleRegister(int index) const; | 249 XMMRegister ToDoubleRegister(int index) const; |
255 int ToInteger32(LConstantOperand* op) const; | 250 int ToInteger32(LConstantOperand* op) const; |
256 | 251 |
257 double ToDouble(LConstantOperand* op) const; | 252 double ToDouble(LConstantOperand* op) const; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 LCodeGen* codegen_; | 420 LCodeGen* codegen_; |
426 Label entry_; | 421 Label entry_; |
427 Label exit_; | 422 Label exit_; |
428 Label* external_exit_; | 423 Label* external_exit_; |
429 int instruction_index_; | 424 int instruction_index_; |
430 }; | 425 }; |
431 | 426 |
432 } } // namespace v8::internal | 427 } } // namespace v8::internal |
433 | 428 |
434 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 429 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |