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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 264 |
265 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 265 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
266 void EmitGoto(int block); | 266 void EmitGoto(int block); |
267 void EmitBranch(int left_block, int right_block, Condition cc); | 267 void EmitBranch(int left_block, int right_block, Condition cc); |
268 void EmitNumberUntagD(Register input, | 268 void EmitNumberUntagD(Register input, |
269 XMMRegister result, | 269 XMMRegister result, |
270 bool deoptimize_on_undefined, | 270 bool deoptimize_on_undefined, |
271 bool deoptimize_on_minus_zero, | 271 bool deoptimize_on_minus_zero, |
272 LEnvironment* env); | 272 LEnvironment* env); |
273 | 273 |
| 274 |
| 275 void DeoptIfTaggedButNotSmi(LEnvironment* environment, |
| 276 HValue* value, |
| 277 LOperand* operand); |
| 278 |
274 // Emits optimized code for typeof x == "y". Modifies input register. | 279 // Emits optimized code for typeof x == "y". Modifies input register. |
275 // Returns the condition on which a final split to | 280 // Returns the condition on which a final split to |
276 // true and false label should be made, to optimize fallthrough. | 281 // true and false label should be made, to optimize fallthrough. |
277 Condition EmitTypeofIs(Label* true_label, | 282 Condition EmitTypeofIs(Label* true_label, |
278 Label* false_label, | 283 Label* false_label, |
279 Register input, | 284 Register input, |
280 Handle<String> type_name); | 285 Handle<String> type_name); |
281 | 286 |
282 // Emits optimized code for %_IsObject(x). Preserves input register. | 287 // Emits optimized code for %_IsObject(x). Preserves input register. |
283 // Returns the condition on which a final split to | 288 // Returns the condition on which a final split to |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 LCodeGen* codegen_; | 409 LCodeGen* codegen_; |
405 Label entry_; | 410 Label entry_; |
406 Label exit_; | 411 Label exit_; |
407 Label* external_exit_; | 412 Label* external_exit_; |
408 int instruction_index_; | 413 int instruction_index_; |
409 }; | 414 }; |
410 | 415 |
411 } } // namespace v8::internal | 416 } } // namespace v8::internal |
412 | 417 |
413 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 418 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |