OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
7 | 7 |
8 #include "src/arm/lithium-arm.h" | 8 #include "src/arm/lithium-arm.h" |
9 | 9 |
10 #include "src/arm/lithium-gap-resolver-arm.h" | 10 #include "src/arm/lithium-gap-resolver-arm.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 int formal_parameter_count, | 227 int formal_parameter_count, |
228 int arity, | 228 int arity, |
229 LInstruction* instr, | 229 LInstruction* instr, |
230 R1State r1_state); | 230 R1State r1_state); |
231 | 231 |
232 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 232 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
233 SafepointMode safepoint_mode); | 233 SafepointMode safepoint_mode); |
234 | 234 |
235 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 235 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
236 Safepoint::DeoptMode mode); | 236 Safepoint::DeoptMode mode); |
237 void DeoptimizeIf(Condition condition, | 237 void DeoptimizeIf(Condition condition, LInstruction* instr, |
238 LEnvironment* environment, | |
239 Deoptimizer::BailoutType bailout_type); | 238 Deoptimizer::BailoutType bailout_type); |
240 void DeoptimizeIf(Condition condition, LEnvironment* environment); | 239 void DeoptimizeIf(Condition condition, LInstruction* instr); |
241 | 240 |
242 void AddToTranslation(LEnvironment* environment, | 241 void AddToTranslation(LEnvironment* environment, |
243 Translation* translation, | 242 Translation* translation, |
244 LOperand* op, | 243 LOperand* op, |
245 bool is_tagged, | 244 bool is_tagged, |
246 bool is_uint32, | 245 bool is_uint32, |
247 int* object_index_pointer, | 246 int* object_index_pointer, |
248 int* dematerialized_index_pointer); | 247 int* dematerialized_index_pointer); |
249 void PopulateDeoptimizationData(Handle<Code> code); | 248 void PopulateDeoptimizationData(Handle<Code> code); |
250 int DefineDeoptimizationLiteral(Handle<Object> literal); | 249 int DefineDeoptimizationLiteral(Handle<Object> literal); |
(...skipping 23 matching lines...) Expand all Loading... |
274 void RecordAndWritePosition(int position) OVERRIDE; | 273 void RecordAndWritePosition(int position) OVERRIDE; |
275 | 274 |
276 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 275 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
277 void EmitGoto(int block); | 276 void EmitGoto(int block); |
278 | 277 |
279 // EmitBranch expects to be the last instruction of a block. | 278 // EmitBranch expects to be the last instruction of a block. |
280 template<class InstrType> | 279 template<class InstrType> |
281 void EmitBranch(InstrType instr, Condition condition); | 280 void EmitBranch(InstrType instr, Condition condition); |
282 template<class InstrType> | 281 template<class InstrType> |
283 void EmitFalseBranch(InstrType instr, Condition condition); | 282 void EmitFalseBranch(InstrType instr, Condition condition); |
284 void EmitNumberUntagD(Register input, | 283 void EmitNumberUntagD(LNumberUntagD* instr, Register input, |
285 DwVfpRegister result, | 284 DwVfpRegister result, NumberUntagDMode mode); |
286 bool allow_undefined_as_nan, | |
287 bool deoptimize_on_minus_zero, | |
288 LEnvironment* env, | |
289 NumberUntagDMode mode); | |
290 | 285 |
291 // Emits optimized code for typeof x == "y". Modifies input register. | 286 // Emits optimized code for typeof x == "y". Modifies input register. |
292 // Returns the condition on which a final split to | 287 // Returns the condition on which a final split to |
293 // true and false label should be made, to optimize fallthrough. | 288 // true and false label should be made, to optimize fallthrough. |
294 Condition EmitTypeofIs(Label* true_label, | 289 Condition EmitTypeofIs(Label* true_label, |
295 Label* false_label, | 290 Label* false_label, |
296 Register input, | 291 Register input, |
297 Handle<String> type_name); | 292 Handle<String> type_name); |
298 | 293 |
299 // Emits optimized code for %_IsObject(x). Preserves input register. | 294 // Emits optimized code for %_IsObject(x). Preserves input register. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 LCodeGen* codegen_; | 402 LCodeGen* codegen_; |
408 Label entry_; | 403 Label entry_; |
409 Label exit_; | 404 Label exit_; |
410 Label* external_exit_; | 405 Label* external_exit_; |
411 int instruction_index_; | 406 int instruction_index_; |
412 }; | 407 }; |
413 | 408 |
414 } } // namespace v8::internal | 409 } } // namespace v8::internal |
415 | 410 |
416 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 411 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |