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

Side by Side Diff: src/handles.cc

Issue 1582004: C++ profiles processor: wire up to VM. (Closed)
Patch Set: Created 10 years, 8 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 CompilationInfo info(shared); 730 CompilationInfo info(shared);
731 return CompileLazyHelper(&info, flag); 731 return CompileLazyHelper(&info, flag);
732 } 732 }
733 733
734 734
735 bool CompileLazy(Handle<JSFunction> function, 735 bool CompileLazy(Handle<JSFunction> function,
736 Handle<Object> receiver, 736 Handle<Object> receiver,
737 ClearExceptionFlag flag) { 737 ClearExceptionFlag flag) {
738 CompilationInfo info(function, 0, receiver); 738 CompilationInfo info(function, 0, receiver);
739 bool result = CompileLazyHelper(&info, flag); 739 bool result = CompileLazyHelper(&info, flag);
740 LOG(FunctionCreateEvent(*function)); 740 PROFILE(FunctionCreateEvent(*function));
741 return result; 741 return result;
742 } 742 }
743 743
744 744
745 bool CompileLazyInLoop(Handle<JSFunction> function, 745 bool CompileLazyInLoop(Handle<JSFunction> function,
746 Handle<Object> receiver, 746 Handle<Object> receiver,
747 ClearExceptionFlag flag) { 747 ClearExceptionFlag flag) {
748 CompilationInfo info(function, 1, receiver); 748 CompilationInfo info(function, 1, receiver);
749 bool result = CompileLazyHelper(&info, flag); 749 bool result = CompileLazyHelper(&info, flag);
750 LOG(FunctionCreateEvent(*function)); 750 PROFILE(FunctionCreateEvent(*function));
751 return result; 751 return result;
752 } 752 }
753 753
754 754
755 OptimizedObjectForAddingMultipleProperties:: 755 OptimizedObjectForAddingMultipleProperties::
756 OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object, 756 OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object,
757 int expected_additional_properties, 757 int expected_additional_properties,
758 bool condition) { 758 bool condition) {
759 object_ = object; 759 object_ = object;
760 if (condition && object_->HasFastProperties()) { 760 if (condition && object_->HasFastProperties()) {
(...skipping 19 matching lines...) Expand all
780 780
781 OptimizedObjectForAddingMultipleProperties:: 781 OptimizedObjectForAddingMultipleProperties::
782 ~OptimizedObjectForAddingMultipleProperties() { 782 ~OptimizedObjectForAddingMultipleProperties() {
783 // Reoptimize the object to allow fast property access. 783 // Reoptimize the object to allow fast property access.
784 if (has_been_transformed_) { 784 if (has_been_transformed_) {
785 TransformToFastProperties(object_, unused_property_fields_); 785 TransformToFastProperties(object_, unused_property_fields_);
786 } 786 }
787 } 787 }
788 788
789 } } // namespace v8::internal 789 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler-inl.h ('k') | src/ia32/assembler-ia32.cc » ('j') | src/platform-linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698