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