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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 NULL, \ | 608 NULL, \ |
609 #name, \ | 609 #name, \ |
610 name, \ | 610 name, \ |
611 Code::ComputeFlags(Code::kind, state) \ | 611 Code::ComputeFlags(Code::kind, state) \ |
612 }, | 612 }, |
613 | 613 |
614 // Define array of pointers to generators and C builtin functions. | 614 // Define array of pointers to generators and C builtin functions. |
615 static BuiltinDesc functions[] = { | 615 static BuiltinDesc functions[] = { |
616 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 616 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
617 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 617 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
| 618 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
618 // Terminator: | 619 // Terminator: |
619 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0) } | 620 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0) } |
620 }; | 621 }; |
621 | 622 |
622 #undef DEF_FUNCTION_PTR_C | 623 #undef DEF_FUNCTION_PTR_C |
623 #undef DEF_FUNCTION_PTR_A | 624 #undef DEF_FUNCTION_PTR_A |
624 | 625 |
625 // For now we generate builtin adaptor code into a stack-allocated | 626 // For now we generate builtin adaptor code into a stack-allocated |
626 // buffer, before copying it into individual code objects. | 627 // buffer, before copying it into individual code objects. |
627 byte buffer[4*KB]; | 628 byte buffer[4*KB]; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 if (entry->contains(pc)) { | 695 if (entry->contains(pc)) { |
695 return names_[i]; | 696 return names_[i]; |
696 } | 697 } |
697 } | 698 } |
698 } | 699 } |
699 return NULL; | 700 return NULL; |
700 } | 701 } |
701 | 702 |
702 | 703 |
703 } } // namespace v8::internal | 704 } } // namespace v8::internal |
OLD | NEW |