| 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 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1830 } | 1830 } |
| 1831 return NULL; | 1831 return NULL; |
| 1832 } | 1832 } |
| 1833 | 1833 |
| 1834 | 1834 |
| 1835 void Builtins::Generate_InterruptCheck(MacroAssembler* masm) { | 1835 void Builtins::Generate_InterruptCheck(MacroAssembler* masm) { |
| 1836 masm->TailCallRuntime(Runtime::kInterrupt, 0, 1); | 1836 masm->TailCallRuntime(Runtime::kInterrupt, 0, 1); |
| 1837 } | 1837 } |
| 1838 | 1838 |
| 1839 | 1839 |
| 1840 void Builtins::Generate_StackCheck(MacroAssembler* masm) { | |
| 1841 masm->TailCallRuntime(Runtime::kStackGuard, 0, 1); | |
| 1842 } | |
| 1843 | |
| 1844 | |
| 1845 #define DEFINE_BUILTIN_ACCESSOR_C(name, ignore) \ | 1840 #define DEFINE_BUILTIN_ACCESSOR_C(name, ignore) \ |
| 1846 Handle<Code> Builtins::name() { \ | 1841 Handle<Code> Builtins::name() { \ |
| 1847 Code** code_address = \ | 1842 Code** code_address = \ |
| 1848 reinterpret_cast<Code**>(builtin_address(k##name)); \ | 1843 reinterpret_cast<Code**>(builtin_address(k##name)); \ |
| 1849 return Handle<Code>(code_address); \ | 1844 return Handle<Code>(code_address); \ |
| 1850 } | 1845 } |
| 1851 #define DEFINE_BUILTIN_ACCESSOR_A(name, kind, state, extra) \ | 1846 #define DEFINE_BUILTIN_ACCESSOR_A(name, kind, state, extra) \ |
| 1852 Handle<Code> Builtins::name() { \ | 1847 Handle<Code> Builtins::name() { \ |
| 1853 Code** code_address = \ | 1848 Code** code_address = \ |
| 1854 reinterpret_cast<Code**>(builtin_address(k##name)); \ | 1849 reinterpret_cast<Code**>(builtin_address(k##name)); \ |
| 1855 return Handle<Code>(code_address); \ | 1850 return Handle<Code>(code_address); \ |
| 1856 } | 1851 } |
| 1857 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1852 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
| 1858 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1853 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1859 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1854 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1860 #undef DEFINE_BUILTIN_ACCESSOR_C | 1855 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 1861 #undef DEFINE_BUILTIN_ACCESSOR_A | 1856 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 1862 | 1857 |
| 1863 | 1858 |
| 1864 } } // namespace v8::internal | 1859 } } // namespace v8::internal |
| OLD | NEW |