OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 7653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7664 // eax: result parameter for PerformGC, if any (setup below) | 7664 // eax: result parameter for PerformGC, if any (setup below) |
7665 // ebx: pointer to builtin function (C callee-saved) | 7665 // ebx: pointer to builtin function (C callee-saved) |
7666 // ebp: frame pointer (restored after C call) | 7666 // ebp: frame pointer (restored after C call) |
7667 // esp: stack pointer (restored after C call) | 7667 // esp: stack pointer (restored after C call) |
7668 // edi: number of arguments including receiver (C callee-saved) | 7668 // edi: number of arguments including receiver (C callee-saved) |
7669 // esi: argv pointer (C callee-saved) | 7669 // esi: argv pointer (C callee-saved) |
7670 | 7670 |
7671 Label throw_out_of_memory_exception; | 7671 Label throw_out_of_memory_exception; |
7672 Label throw_normal_exception; | 7672 Label throw_normal_exception; |
7673 | 7673 |
7674 // Call into the runtime system. Collect garbage before the call if | 7674 // Call into the runtime system. |
7675 // running with --gc-greedy set. | |
7676 if (FLAG_gc_greedy) { | |
7677 Failure* failure = Failure::RetryAfterGC(0); | |
7678 __ mov(eax, Immediate(reinterpret_cast<int32_t>(failure))); | |
7679 } | |
7680 GenerateCore(masm, &throw_normal_exception, | 7675 GenerateCore(masm, &throw_normal_exception, |
7681 &throw_out_of_memory_exception, | 7676 &throw_out_of_memory_exception, |
7682 frame_type, | 7677 frame_type, |
7683 FLAG_gc_greedy, | 7678 false, |
7684 false); | 7679 false); |
7685 | 7680 |
7686 // Do space-specific GC and retry runtime call. | 7681 // Do space-specific GC and retry runtime call. |
7687 GenerateCore(masm, | 7682 GenerateCore(masm, |
7688 &throw_normal_exception, | 7683 &throw_normal_exception, |
7689 &throw_out_of_memory_exception, | 7684 &throw_out_of_memory_exception, |
7690 frame_type, | 7685 frame_type, |
7691 true, | 7686 true, |
7692 false); | 7687 false); |
7693 | 7688 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7868 | 7863 |
7869 int CompareStub::MinorKey() { | 7864 int CompareStub::MinorKey() { |
7870 // Encode the two parameters in a unique 16 bit value. | 7865 // Encode the two parameters in a unique 16 bit value. |
7871 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 7866 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
7872 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 7867 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
7873 } | 7868 } |
7874 | 7869 |
7875 #undef __ | 7870 #undef __ |
7876 | 7871 |
7877 } } // namespace v8::internal | 7872 } } // namespace v8::internal |
OLD | NEW |