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 99 matching lines...) Loading... |
110 Label* map_check); | 110 Label* map_check); |
111 | 111 |
112 void DoCheckMapCommon(Register reg, Handle<Map> map, | 112 void DoCheckMapCommon(Register reg, Handle<Map> map, |
113 CompareMapMode mode, LEnvironment* env); | 113 CompareMapMode mode, LEnvironment* env); |
114 | 114 |
115 // Parallel move support. | 115 // Parallel move support. |
116 void DoParallelMove(LParallelMove* move); | 116 void DoParallelMove(LParallelMove* move); |
117 void DoGap(LGap* instr); | 117 void DoGap(LGap* instr); |
118 | 118 |
119 // Emit frame translation commands for an environment. | 119 // Emit frame translation commands for an environment. |
120 void WriteTranslation(LEnvironment* environment, Translation* translation); | 120 void WriteTranslation(LEnvironment* environment, |
| 121 Translation* translation, |
| 122 int* arguments_index, |
| 123 int* arguments_count); |
121 | 124 |
122 // Declare methods that deal with the individual node types. | 125 // Declare methods that deal with the individual node types. |
123 #define DECLARE_DO(type) void Do##type(L##type* node); | 126 #define DECLARE_DO(type) void Do##type(L##type* node); |
124 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 127 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
125 #undef DECLARE_DO | 128 #undef DECLARE_DO |
126 | 129 |
127 private: | 130 private: |
128 enum Status { | 131 enum Status { |
129 UNUSED, | 132 UNUSED, |
130 GENERATING, | 133 GENERATING, |
(...skipping 87 matching lines...) Loading... |
218 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 221 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
219 SafepointMode safepoint_mode, | 222 SafepointMode safepoint_mode, |
220 int argc); | 223 int argc); |
221 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 224 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
222 Safepoint::DeoptMode mode); | 225 Safepoint::DeoptMode mode); |
223 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 226 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
224 | 227 |
225 void AddToTranslation(Translation* translation, | 228 void AddToTranslation(Translation* translation, |
226 LOperand* op, | 229 LOperand* op, |
227 bool is_tagged, | 230 bool is_tagged, |
228 bool is_uint32); | 231 bool is_uint32, |
| 232 int arguments_index, |
| 233 int arguments_count); |
229 void PopulateDeoptimizationData(Handle<Code> code); | 234 void PopulateDeoptimizationData(Handle<Code> code); |
230 int DefineDeoptimizationLiteral(Handle<Object> literal); | 235 int DefineDeoptimizationLiteral(Handle<Object> literal); |
231 | 236 |
232 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 237 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
233 | 238 |
234 Register ToRegister(int index) const; | 239 Register ToRegister(int index) const; |
235 XMMRegister ToDoubleRegister(int index) const; | 240 XMMRegister ToDoubleRegister(int index) const; |
236 Operand BuildFastArrayOperand( | 241 Operand BuildFastArrayOperand( |
237 LOperand* elements_pointer, | 242 LOperand* elements_pointer, |
238 LOperand* key, | 243 LOperand* key, |
(...skipping 172 matching lines...) Loading... |
411 LCodeGen* codegen_; | 416 LCodeGen* codegen_; |
412 Label entry_; | 417 Label entry_; |
413 Label exit_; | 418 Label exit_; |
414 Label* external_exit_; | 419 Label* external_exit_; |
415 int instruction_index_; | 420 int instruction_index_; |
416 }; | 421 }; |
417 | 422 |
418 } } // namespace v8::internal | 423 } } // namespace v8::internal |
419 | 424 |
420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 425 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |