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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 MemOperand PrepareKeyedOperand(Register key, | 140 MemOperand PrepareKeyedOperand(Register key, |
141 Register base, | 141 Register base, |
142 bool key_is_constant, | 142 bool key_is_constant, |
143 int constant_key, | 143 int constant_key, |
144 int element_size, | 144 int element_size, |
145 int shift_size, | 145 int shift_size, |
146 int additional_index, | 146 int additional_index, |
147 int additional_offset); | 147 int additional_offset); |
148 | 148 |
149 // Emit frame translation commands for an environment. | 149 // Emit frame translation commands for an environment. |
150 void WriteTranslation(LEnvironment* environment, Translation* translation); | 150 void WriteTranslation(LEnvironment* environment, |
151 Translation* translation, | |
152 int* arguments_index, | |
Sven Panne
2012/09/12 07:14:22
I think later it will be very hard to understand w
Michael Starzinger
2012/09/12 10:07:28
Done. I added the documentation into LCodeGen::Wri
| |
153 int* arguments_count); | |
151 | 154 |
152 // Declare methods that deal with the individual node types. | 155 // Declare methods that deal with the individual node types. |
153 #define DECLARE_DO(type) void Do##type(L##type* node); | 156 #define DECLARE_DO(type) void Do##type(L##type* node); |
154 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 157 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
155 #undef DECLARE_DO | 158 #undef DECLARE_DO |
156 | 159 |
157 private: | 160 private: |
158 enum Status { | 161 enum Status { |
159 UNUSED, | 162 UNUSED, |
160 GENERATING, | 163 GENERATING, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 254 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
252 SafepointMode safepoint_mode); | 255 SafepointMode safepoint_mode); |
253 | 256 |
254 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 257 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
255 Safepoint::DeoptMode mode); | 258 Safepoint::DeoptMode mode); |
256 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 259 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
257 | 260 |
258 void AddToTranslation(Translation* translation, | 261 void AddToTranslation(Translation* translation, |
259 LOperand* op, | 262 LOperand* op, |
260 bool is_tagged, | 263 bool is_tagged, |
261 bool is_uint32); | 264 bool is_uint32, |
265 int arguments_index, | |
266 int arguments_count); | |
262 void PopulateDeoptimizationData(Handle<Code> code); | 267 void PopulateDeoptimizationData(Handle<Code> code); |
263 int DefineDeoptimizationLiteral(Handle<Object> literal); | 268 int DefineDeoptimizationLiteral(Handle<Object> literal); |
264 | 269 |
265 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 270 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
266 | 271 |
267 Register ToRegister(int index) const; | 272 Register ToRegister(int index) const; |
268 DoubleRegister ToDoubleRegister(int index) const; | 273 DoubleRegister ToDoubleRegister(int index) const; |
269 | 274 |
270 // Specific math operations - used from DoUnaryMathOperation. | 275 // Specific math operations - used from DoUnaryMathOperation. |
271 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | 276 void EmitIntegerMathAbs(LUnaryMathOperation* instr); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
469 LCodeGen* codegen_; | 474 LCodeGen* codegen_; |
470 Label entry_; | 475 Label entry_; |
471 Label exit_; | 476 Label exit_; |
472 Label* external_exit_; | 477 Label* external_exit_; |
473 int instruction_index_; | 478 int instruction_index_; |
474 }; | 479 }; |
475 | 480 |
476 } } // namespace v8::internal | 481 } } // namespace v8::internal |
477 | 482 |
478 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 483 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |