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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 Safepoint::DeoptMode mode); | 324 Safepoint::DeoptMode mode); |
325 void RecordPosition(int position); | 325 void RecordPosition(int position); |
326 | 326 |
327 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 327 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
328 void EmitGoto(int block); | 328 void EmitGoto(int block); |
329 void EmitBranch(int left_block, int right_block, Condition cc); | 329 void EmitBranch(int left_block, int right_block, Condition cc); |
330 void EmitNumberUntagD( | 330 void EmitNumberUntagD( |
331 Register input, | 331 Register input, |
332 Register temp, | 332 Register temp, |
333 XMMRegister result, | 333 XMMRegister result, |
334 bool deoptimize_on_undefined, | 334 bool allow_undefined_as_nan, |
335 bool deoptimize_on_minus_zero, | 335 bool deoptimize_on_minus_zero, |
336 LEnvironment* env, | 336 LEnvironment* env, |
337 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); | 337 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); |
338 | 338 |
339 void EmitNumberUntagDNoSSE2( | 339 void EmitNumberUntagDNoSSE2( |
340 Register input, | 340 Register input, |
341 Register temp, | 341 Register temp, |
342 bool deoptimize_on_undefined, | 342 bool allow_undefined_as_nan, |
343 bool deoptimize_on_minus_zero, | 343 bool deoptimize_on_minus_zero, |
344 LEnvironment* env, | 344 LEnvironment* env, |
345 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); | 345 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); |
346 | 346 |
347 // Emits optimized code for typeof x == "y". Modifies input register. | 347 // Emits optimized code for typeof x == "y". Modifies input register. |
348 // Returns the condition on which a final split to | 348 // Returns the condition on which a final split to |
349 // true and false label should be made, to optimize fallthrough. | 349 // true and false label should be made, to optimize fallthrough. |
350 Condition EmitTypeofIs(Label* true_label, | 350 Condition EmitTypeofIs(Label* true_label, |
351 Label* false_label, | 351 Label* false_label, |
352 Register input, | 352 Register input, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 LCodeGen* codegen_; | 486 LCodeGen* codegen_; |
487 Label entry_; | 487 Label entry_; |
488 Label exit_; | 488 Label exit_; |
489 Label* external_exit_; | 489 Label* external_exit_; |
490 int instruction_index_; | 490 int instruction_index_; |
491 }; | 491 }; |
492 | 492 |
493 } } // namespace v8::internal | 493 } } // namespace v8::internal |
494 | 494 |
495 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 495 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |