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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 bind(&leave_exit_frame); | 739 bind(&leave_exit_frame); |
740 | 740 |
741 // Check if the function scheduled an exception. | 741 // Check if the function scheduled an exception. |
742 movq(rsi, scheduled_exception_address); | 742 movq(rsi, scheduled_exception_address); |
743 Cmp(Operand(rsi, 0), factory->the_hole_value()); | 743 Cmp(Operand(rsi, 0), factory->the_hole_value()); |
744 j(not_equal, &promote_scheduled_exception); | 744 j(not_equal, &promote_scheduled_exception); |
745 | 745 |
746 LeaveApiExitFrame(); | 746 LeaveApiExitFrame(); |
747 ret(stack_space * kPointerSize); | 747 ret(stack_space * kPointerSize); |
748 | 748 |
| 749 bind(&empty_result); |
| 750 // It was zero; the result is undefined. |
| 751 LoadRoot(rax, Heap::kUndefinedValueRootIndex); |
| 752 jmp(&prologue); |
| 753 |
749 bind(&promote_scheduled_exception); | 754 bind(&promote_scheduled_exception); |
750 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1); | 755 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1); |
751 | 756 |
752 bind(&empty_result); | |
753 // It was zero; the result is undefined. | |
754 Move(rax, factory->undefined_value()); | |
755 jmp(&prologue); | |
756 | |
757 // HandleScope limit has changed. Delete allocated extensions. | 757 // HandleScope limit has changed. Delete allocated extensions. |
758 bind(&delete_allocated_handles); | 758 bind(&delete_allocated_handles); |
759 movq(Operand(base_reg, kLimitOffset), prev_limit_reg); | 759 movq(Operand(base_reg, kLimitOffset), prev_limit_reg); |
760 movq(prev_limit_reg, rax); | 760 movq(prev_limit_reg, rax); |
761 #ifdef _WIN64 | 761 #ifdef _WIN64 |
762 LoadAddress(rcx, ExternalReference::isolate_address()); | 762 LoadAddress(rcx, ExternalReference::isolate_address()); |
763 #else | 763 #else |
764 LoadAddress(rdi, ExternalReference::isolate_address()); | 764 LoadAddress(rdi, ExternalReference::isolate_address()); |
765 #endif | 765 #endif |
766 LoadAddress(rax, | 766 LoadAddress(rax, |
(...skipping 3721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4488 bind(&check_prototype); | 4488 bind(&check_prototype); |
4489 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); | 4489 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); |
4490 cmpq(rcx, null_value); | 4490 cmpq(rcx, null_value); |
4491 j(not_equal, &next); | 4491 j(not_equal, &next); |
4492 } | 4492 } |
4493 | 4493 |
4494 | 4494 |
4495 } } // namespace v8::internal | 4495 } } // namespace v8::internal |
4496 | 4496 |
4497 #endif // V8_TARGET_ARCH_X64 | 4497 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |