| 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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 ++functions; | 1712 ++functions; |
| 1713 | 1713 |
| 1714 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 1714 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
| 1715 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 1715 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
| 1716 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) | 1716 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
| 1717 | 1717 |
| 1718 #undef DEF_FUNCTION_PTR_C | 1718 #undef DEF_FUNCTION_PTR_C |
| 1719 #undef DEF_FUNCTION_PTR_A | 1719 #undef DEF_FUNCTION_PTR_A |
| 1720 } | 1720 } |
| 1721 | 1721 |
| 1722 void Builtins::Setup(bool create_heap_objects) { | 1722 void Builtins::SetUp(bool create_heap_objects) { |
| 1723 ASSERT(!initialized_); | 1723 ASSERT(!initialized_); |
| 1724 Isolate* isolate = Isolate::Current(); | 1724 Isolate* isolate = Isolate::Current(); |
| 1725 Heap* heap = isolate->heap(); | 1725 Heap* heap = isolate->heap(); |
| 1726 | 1726 |
| 1727 // Create a scope for the handles in the builtins. | 1727 // Create a scope for the handles in the builtins. |
| 1728 HandleScope scope(isolate); | 1728 HandleScope scope(isolate); |
| 1729 | 1729 |
| 1730 const BuiltinDesc* functions = BuiltinFunctionTable::functions(); | 1730 const BuiltinDesc* functions = BuiltinFunctionTable::functions(); |
| 1731 | 1731 |
| 1732 // For now we generate builtin adaptor code into a stack-allocated | 1732 // For now we generate builtin adaptor code into a stack-allocated |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1828 return Handle<Code>(code_address); \ | 1828 return Handle<Code>(code_address); \ |
| 1829 } | 1829 } |
| 1830 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1830 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
| 1831 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1831 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1832 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1832 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1833 #undef DEFINE_BUILTIN_ACCESSOR_C | 1833 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 1834 #undef DEFINE_BUILTIN_ACCESSOR_A | 1834 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 1835 | 1835 |
| 1836 | 1836 |
| 1837 } } // namespace v8::internal | 1837 } } // namespace v8::internal |
| OLD | NEW |