OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 // HeapNumber => false iff +0, -0, or NaN. These three cases set the | 1406 // HeapNumber => false iff +0, -0, or NaN. These three cases set the |
1407 // zero flag when compared to zero using ucomisd. | 1407 // zero flag when compared to zero using ucomisd. |
1408 __ xorps(xmm0, xmm0); | 1408 __ xorps(xmm0, xmm0); |
1409 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); | 1409 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); |
1410 __ j(zero, false_label); | 1410 __ j(zero, false_label); |
1411 __ jmp(true_label); | 1411 __ jmp(true_label); |
1412 | 1412 |
1413 // The conversion stub doesn't cause garbage collections so it's | 1413 // The conversion stub doesn't cause garbage collections so it's |
1414 // safe to not record a safepoint after the call. | 1414 // safe to not record a safepoint after the call. |
1415 __ bind(&call_stub); | 1415 __ bind(&call_stub); |
1416 ToBooleanStub stub; | 1416 ToBooleanStub stub(rax); |
1417 __ Pushad(); | 1417 __ Pushad(); |
1418 __ push(reg); | 1418 __ push(reg); |
1419 __ CallStub(&stub); | 1419 __ CallStub(&stub); |
1420 __ testq(rax, rax); | 1420 __ testq(rax, rax); |
1421 __ Popad(); | 1421 __ Popad(); |
1422 EmitBranch(true_block, false_block, not_zero); | 1422 EmitBranch(true_block, false_block, not_zero); |
1423 } | 1423 } |
1424 } | 1424 } |
1425 } | 1425 } |
1426 | 1426 |
(...skipping 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4291 RegisterEnvironmentForDeoptimization(environment); | 4291 RegisterEnvironmentForDeoptimization(environment); |
4292 ASSERT(osr_pc_offset_ == -1); | 4292 ASSERT(osr_pc_offset_ == -1); |
4293 osr_pc_offset_ = masm()->pc_offset(); | 4293 osr_pc_offset_ = masm()->pc_offset(); |
4294 } | 4294 } |
4295 | 4295 |
4296 #undef __ | 4296 #undef __ |
4297 | 4297 |
4298 } } // namespace v8::internal | 4298 } } // namespace v8::internal |
4299 | 4299 |
4300 #endif // V8_TARGET_ARCH_X64 | 4300 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |