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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 MemOperand PrepareKeyedOperand(Register key, | 136 MemOperand PrepareKeyedOperand(Register key, |
137 Register base, | 137 Register base, |
138 bool key_is_constant, | 138 bool key_is_constant, |
139 int constant_key, | 139 int constant_key, |
140 int element_size, | 140 int element_size, |
141 int shift_size, | 141 int shift_size, |
142 int additional_index, | 142 int additional_index, |
143 int additional_offset); | 143 int additional_offset); |
144 | 144 |
145 // Emit frame translation commands for an environment. | 145 // Emit frame translation commands for an environment. |
146 void WriteTranslation(LEnvironment* environment, | 146 void WriteTranslation(LEnvironment* environment, Translation* translation); |
147 Translation* translation, | |
148 int* arguments_index, | |
149 int* arguments_count); | |
150 | 147 |
151 // Declare methods that deal with the individual node types. | 148 // Declare methods that deal with the individual node types. |
152 #define DECLARE_DO(type) void Do##type(L##type* node); | 149 #define DECLARE_DO(type) void Do##type(L##type* node); |
153 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 150 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
154 #undef DECLARE_DO | 151 #undef DECLARE_DO |
155 | 152 |
156 private: | 153 private: |
157 enum Status { | 154 enum Status { |
158 UNUSED, | 155 UNUSED, |
159 GENERATING, | 156 GENERATING, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 251 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
255 Safepoint::DeoptMode mode); | 252 Safepoint::DeoptMode mode); |
256 void DeoptimizeIf(Condition cc, | 253 void DeoptimizeIf(Condition cc, |
257 LEnvironment* environment, | 254 LEnvironment* environment, |
258 Register src1 = zero_reg, | 255 Register src1 = zero_reg, |
259 const Operand& src2 = Operand(zero_reg)); | 256 const Operand& src2 = Operand(zero_reg)); |
260 | 257 |
261 void AddToTranslation(Translation* translation, | 258 void AddToTranslation(Translation* translation, |
262 LOperand* op, | 259 LOperand* op, |
263 bool is_tagged, | 260 bool is_tagged, |
264 bool is_uint32, | 261 bool is_uint32); |
265 int arguments_index, | |
266 int arguments_count); | |
267 void PopulateDeoptimizationData(Handle<Code> code); | 262 void PopulateDeoptimizationData(Handle<Code> code); |
268 int DefineDeoptimizationLiteral(Handle<Object> literal); | 263 int DefineDeoptimizationLiteral(Handle<Object> literal); |
269 | 264 |
270 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 265 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
271 | 266 |
272 Register ToRegister(int index) const; | 267 Register ToRegister(int index) const; |
273 DoubleRegister ToDoubleRegister(int index) const; | 268 DoubleRegister ToDoubleRegister(int index) const; |
274 | 269 |
275 // Specific math operations - used from DoUnaryMathOperation. | 270 // Specific math operations - used from DoUnaryMathOperation. |
276 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | 271 void EmitIntegerMathAbs(LUnaryMathOperation* instr); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 LCodeGen* codegen_; | 473 LCodeGen* codegen_; |
479 Label entry_; | 474 Label entry_; |
480 Label exit_; | 475 Label exit_; |
481 Label* external_exit_; | 476 Label* external_exit_; |
482 int instruction_index_; | 477 int instruction_index_; |
483 }; | 478 }; |
484 | 479 |
485 } } // namespace v8::internal | 480 } } // namespace v8::internal |
486 | 481 |
487 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 482 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |