OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 }; | 658 }; |
659 | 659 |
660 #define DEF_FUNCTION_PTR_C(name) \ | 660 #define DEF_FUNCTION_PTR_C(name) \ |
661 { FUNCTION_ADDR(Generate_Adaptor), \ | 661 { FUNCTION_ADDR(Generate_Adaptor), \ |
662 FUNCTION_ADDR(Builtin_##name), \ | 662 FUNCTION_ADDR(Builtin_##name), \ |
663 #name, \ | 663 #name, \ |
664 c_##name, \ | 664 c_##name, \ |
665 Code::ComputeFlags(Code::BUILTIN) \ | 665 Code::ComputeFlags(Code::BUILTIN) \ |
666 }, | 666 }, |
667 | 667 |
668 #define DEF_FUNCTION_PTR_A(name, kind, state) \ | 668 #define DEF_FUNCTION_PTR_A(name, kind, state) \ |
669 { FUNCTION_ADDR(Generate_##name), \ | 669 { FUNCTION_ADDR(Generate_##name), \ |
670 NULL, \ | 670 NULL, \ |
671 #name, \ | 671 #name, \ |
672 name, \ | 672 name, \ |
673 Code::ComputeFlags(Code::kind, state) \ | 673 Code::ComputeFlags(Code::kind, NOT_IN_LOOP, state) \ |
674 }, | 674 }, |
675 | 675 |
676 // Define array of pointers to generators and C builtin functions. | 676 // Define array of pointers to generators and C builtin functions. |
677 static BuiltinDesc functions[] = { | 677 static BuiltinDesc functions[] = { |
678 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 678 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
679 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 679 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
680 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) | 680 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
681 // Terminator: | 681 // Terminator: |
682 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0) } | 682 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0) } |
683 }; | 683 }; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 if (entry->contains(pc)) { | 757 if (entry->contains(pc)) { |
758 return names_[i]; | 758 return names_[i]; |
759 } | 759 } |
760 } | 760 } |
761 } | 761 } |
762 return NULL; | 762 return NULL; |
763 } | 763 } |
764 | 764 |
765 | 765 |
766 } } // namespace v8::internal | 766 } } // namespace v8::internal |
OLD | NEW |