| 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 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1710 | 1710 |
| 1711 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 1711 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
| 1712 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 1712 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
| 1713 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) | 1713 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
| 1714 | 1714 |
| 1715 #undef DEF_FUNCTION_PTR_C | 1715 #undef DEF_FUNCTION_PTR_C |
| 1716 #undef DEF_FUNCTION_PTR_A | 1716 #undef DEF_FUNCTION_PTR_A |
| 1717 } | 1717 } |
| 1718 | 1718 |
| 1719 | 1719 |
| 1720 void Builtins::SetUp(bool create_heap_objects) { | 1720 void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { |
| 1721 ASSERT(!initialized_); | 1721 ASSERT(!initialized_); |
| 1722 Isolate* isolate = Isolate::Current(); | |
| 1723 Heap* heap = isolate->heap(); | 1722 Heap* heap = isolate->heap(); |
| 1724 | 1723 |
| 1725 // Create a scope for the handles in the builtins. | 1724 // Create a scope for the handles in the builtins. |
| 1726 HandleScope scope(isolate); | 1725 HandleScope scope(isolate); |
| 1727 | 1726 |
| 1728 const BuiltinDesc* functions = builtin_function_table.functions(); | 1727 const BuiltinDesc* functions = builtin_function_table.functions(); |
| 1729 | 1728 |
| 1730 // For now we generate builtin adaptor code into a stack-allocated | 1729 // For now we generate builtin adaptor code into a stack-allocated |
| 1731 // buffer, before copying it into individual code objects. Be careful | 1730 // buffer, before copying it into individual code objects. Be careful |
| 1732 // with alignment, some platforms don't like unaligned code. | 1731 // with alignment, some platforms don't like unaligned code. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1836 return Handle<Code>(code_address); \ | 1835 return Handle<Code>(code_address); \ |
| 1837 } | 1836 } |
| 1838 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1837 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
| 1839 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1838 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1840 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1839 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1841 #undef DEFINE_BUILTIN_ACCESSOR_C | 1840 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 1842 #undef DEFINE_BUILTIN_ACCESSOR_A | 1841 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 1843 | 1842 |
| 1844 | 1843 |
| 1845 } } // namespace v8::internal | 1844 } } // namespace v8::internal |
| OLD | NEW |