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_X87_LITHIUM_CODEGEN_X87_H_ | 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_ |
6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ | 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "src/x87/lithium-x87.h" | 9 #include "src/x87/lithium-x87.h" |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 void EmitFalseBranch(InstrType instr, Condition cc); | 291 void EmitFalseBranch(InstrType instr, Condition cc); |
292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, | 292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, |
293 Register temp, X87Register res_reg, | 293 Register temp, X87Register res_reg, |
294 NumberUntagDMode mode); | 294 NumberUntagDMode mode); |
295 | 295 |
296 // Emits optimized code for typeof x == "y". Modifies input register. | 296 // Emits optimized code for typeof x == "y". Modifies input register. |
297 // Returns the condition on which a final split to | 297 // Returns the condition on which a final split to |
298 // true and false label should be made, to optimize fallthrough. | 298 // true and false label should be made, to optimize fallthrough. |
299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
300 | 300 |
301 // Emits optimized code for %_IsObject(x). Preserves input register. | |
302 // Returns the condition on which a final split to | |
303 // true and false label should be made, to optimize fallthrough. | |
304 Condition EmitIsObject(Register input, | |
305 Register temp1, | |
306 Label* is_not_object, | |
307 Label* is_object); | |
308 | |
309 // Emits optimized code for %_IsString(x). Preserves input register. | 301 // Emits optimized code for %_IsString(x). Preserves input register. |
310 // Returns the condition on which a final split to | 302 // Returns the condition on which a final split to |
311 // true and false label should be made, to optimize fallthrough. | 303 // true and false label should be made, to optimize fallthrough. |
312 Condition EmitIsString(Register input, | 304 Condition EmitIsString(Register input, |
313 Register temp1, | 305 Register temp1, |
314 Label* is_not_string, | 306 Label* is_not_string, |
315 SmiCheck check_needed); | 307 SmiCheck check_needed); |
316 | 308 |
317 // Emits optimized code for %_IsConstructCall(). | 309 // Emits optimized code for %_IsConstructCall(). |
318 // Caller should branch on equal condition. | 310 // Caller should branch on equal condition. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 Label exit_; | 495 Label exit_; |
504 Label* external_exit_; | 496 Label* external_exit_; |
505 Label done_; | 497 Label done_; |
506 int instruction_index_; | 498 int instruction_index_; |
507 LCodeGen::X87Stack x87_stack_; | 499 LCodeGen::X87Stack x87_stack_; |
508 }; | 500 }; |
509 | 501 |
510 } } // namespace v8::internal | 502 } } // namespace v8::internal |
511 | 503 |
512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ | 504 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ |
OLD | NEW |