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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 Condition cc, | 300 Condition cc, |
301 FPURegister src1, | 301 FPURegister src1, |
302 FPURegister src2); | 302 FPURegister src2); |
303 void EmitCmpI(LOperand* left, LOperand* right); | 303 void EmitCmpI(LOperand* left, LOperand* right); |
304 void EmitNumberUntagD(Register input, | 304 void EmitNumberUntagD(Register input, |
305 DoubleRegister result, | 305 DoubleRegister result, |
306 bool deoptimize_on_undefined, | 306 bool deoptimize_on_undefined, |
307 bool deoptimize_on_minus_zero, | 307 bool deoptimize_on_minus_zero, |
308 LEnvironment* env); | 308 LEnvironment* env); |
309 | 309 |
| 310 void DeoptIfTaggedButNotSmi(LEnvironment* environment, |
| 311 HValue* value, |
| 312 LOperand* operand); |
| 313 |
310 // Emits optimized code for typeof x == "y". Modifies input register. | 314 // Emits optimized code for typeof x == "y". Modifies input register. |
311 // Returns the condition on which a final split to | 315 // Returns the condition on which a final split to |
312 // true and false label should be made, to optimize fallthrough. | 316 // true and false label should be made, to optimize fallthrough. |
313 // Returns two registers in cmp1 and cmp2 that can be used in the | 317 // Returns two registers in cmp1 and cmp2 that can be used in the |
314 // Branch instruction after EmitTypeofIs. | 318 // Branch instruction after EmitTypeofIs. |
315 Condition EmitTypeofIs(Label* true_label, | 319 Condition EmitTypeofIs(Label* true_label, |
316 Label* false_label, | 320 Label* false_label, |
317 Register input, | 321 Register input, |
318 Handle<String> type_name, | 322 Handle<String> type_name, |
319 Register& cmp1, | 323 Register& cmp1, |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 LCodeGen* codegen_; | 467 LCodeGen* codegen_; |
464 Label entry_; | 468 Label entry_; |
465 Label exit_; | 469 Label exit_; |
466 Label* external_exit_; | 470 Label* external_exit_; |
467 int instruction_index_; | 471 int instruction_index_; |
468 }; | 472 }; |
469 | 473 |
470 } } // namespace v8::internal | 474 } } // namespace v8::internal |
471 | 475 |
472 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 476 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |