Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: src/builtins.cc

Issue 119304: Add log compression ability. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | src/log.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | src/log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698