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 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 functions->flags = Code::ComputeFlags(Code::BUILTIN); \ | 1576 functions->flags = Code::ComputeFlags(Code::BUILTIN); \ |
1577 functions->extra_args = aextra_args; \ | 1577 functions->extra_args = aextra_args; \ |
1578 ++functions; | 1578 ++functions; |
1579 | 1579 |
1580 #define DEF_FUNCTION_PTR_A(aname, kind, state, extra) \ | 1580 #define DEF_FUNCTION_PTR_A(aname, kind, state, extra) \ |
1581 functions->generator = FUNCTION_ADDR(Generate_##aname); \ | 1581 functions->generator = FUNCTION_ADDR(Generate_##aname); \ |
1582 functions->c_code = NULL; \ | 1582 functions->c_code = NULL; \ |
1583 functions->s_name = #aname; \ | 1583 functions->s_name = #aname; \ |
1584 functions->name = k##aname; \ | 1584 functions->name = k##aname; \ |
1585 functions->flags = Code::ComputeFlags(Code::kind, \ | 1585 functions->flags = Code::ComputeFlags(Code::kind, \ |
1586 NOT_IN_LOOP, \ | |
1587 state, \ | 1586 state, \ |
1588 extra); \ | 1587 extra); \ |
1589 functions->extra_args = NO_EXTRA_ARGUMENTS; \ | 1588 functions->extra_args = NO_EXTRA_ARGUMENTS; \ |
1590 ++functions; | 1589 ++functions; |
1591 | 1590 |
1592 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 1591 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
1593 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 1592 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
1594 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) | 1593 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
1595 | 1594 |
1596 #undef DEF_FUNCTION_PTR_C | 1595 #undef DEF_FUNCTION_PTR_C |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1704 return Handle<Code>(code_address); \ | 1703 return Handle<Code>(code_address); \ |
1705 } | 1704 } |
1706 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1705 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
1707 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1706 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
1708 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1707 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
1709 #undef DEFINE_BUILTIN_ACCESSOR_C | 1708 #undef DEFINE_BUILTIN_ACCESSOR_C |
1710 #undef DEFINE_BUILTIN_ACCESSOR_A | 1709 #undef DEFINE_BUILTIN_ACCESSOR_A |
1711 | 1710 |
1712 | 1711 |
1713 } } // namespace v8::internal | 1712 } } // namespace v8::internal |
OLD | NEW |