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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 AlwaysAllocateScope __scope__; | 713 AlwaysAllocateScope __scope__; |
714 code = Heap::CreateCode(desc, NULL, flags, masm.CodeObject()); | 714 code = Heap::CreateCode(desc, NULL, flags, masm.CodeObject()); |
715 if (code->IsFailure()) { | 715 if (code->IsFailure()) { |
716 v8::internal::V8::FatalProcessOutOfMemory("CreateCode"); | 716 v8::internal::V8::FatalProcessOutOfMemory("CreateCode"); |
717 } | 717 } |
718 } | 718 } |
719 // Add any unresolved jumps or calls to the fixup list in the | 719 // Add any unresolved jumps or calls to the fixup list in the |
720 // bootstrapper. | 720 // bootstrapper. |
721 Bootstrapper::AddFixup(Code::cast(code), &masm); | 721 Bootstrapper::AddFixup(Code::cast(code), &masm); |
722 // Log the event and add the code to the builtins array. | 722 // Log the event and add the code to the builtins array. |
723 LOG(CodeCreateEvent("Builtin", Code::cast(code), functions[i].s_name)); | 723 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, |
| 724 Code::cast(code), functions[i].s_name)); |
724 builtins_[i] = code; | 725 builtins_[i] = code; |
725 #ifdef ENABLE_DISASSEMBLER | 726 #ifdef ENABLE_DISASSEMBLER |
726 if (FLAG_print_builtin_code) { | 727 if (FLAG_print_builtin_code) { |
727 PrintF("Builtin: %s\n", functions[i].s_name); | 728 PrintF("Builtin: %s\n", functions[i].s_name); |
728 Code::cast(code)->Disassemble(functions[i].s_name); | 729 Code::cast(code)->Disassemble(functions[i].s_name); |
729 PrintF("\n"); | 730 PrintF("\n"); |
730 } | 731 } |
731 #endif | 732 #endif |
732 } else { | 733 } else { |
733 // Deserializing. The values will be filled in during IterateBuiltins. | 734 // Deserializing. The values will be filled in during IterateBuiltins. |
(...skipping 24 matching lines...) Expand all Loading... |
758 if (entry->contains(pc)) { | 759 if (entry->contains(pc)) { |
759 return names_[i]; | 760 return names_[i]; |
760 } | 761 } |
761 } | 762 } |
762 } | 763 } |
763 return NULL; | 764 return NULL; |
764 } | 765 } |
765 | 766 |
766 | 767 |
767 } } // namespace v8::internal | 768 } } // namespace v8::internal |
OLD | NEW |