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

Side by Side Diff: src/handles.cc

Issue 6588047: Version 3.1.7... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/handles.h ('k') | src/handles-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 return CompileLazyFunction(function, flag, NOT_IN_LOOP); 856 return CompileLazyFunction(function, flag, NOT_IN_LOOP);
857 } 857 }
858 858
859 859
860 bool CompileLazyInLoop(Handle<JSFunction> function, 860 bool CompileLazyInLoop(Handle<JSFunction> function,
861 ClearExceptionFlag flag) { 861 ClearExceptionFlag flag) {
862 return CompileLazyFunction(function, flag, IN_LOOP); 862 return CompileLazyFunction(function, flag, IN_LOOP);
863 } 863 }
864 864
865 865
866 bool CompileOptimized(Handle<JSFunction> function, int osr_ast_id) { 866 bool CompileOptimized(Handle<JSFunction> function,
867 int osr_ast_id,
868 ClearExceptionFlag flag) {
867 CompilationInfo info(function); 869 CompilationInfo info(function);
868 info.SetOptimizing(osr_ast_id); 870 info.SetOptimizing(osr_ast_id);
869 return CompileLazyHelper(&info, KEEP_EXCEPTION); 871 return CompileLazyHelper(&info, flag);
870 } 872 }
871 873
872 874
873 OptimizedObjectForAddingMultipleProperties:: 875 OptimizedObjectForAddingMultipleProperties::
874 OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object, 876 OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object,
875 int expected_additional_properties, 877 int expected_additional_properties,
876 bool condition) { 878 bool condition) {
877 object_ = object; 879 object_ = object;
878 if (condition && object_->HasFastProperties() && !object->IsJSGlobalProxy()) { 880 if (condition && object_->HasFastProperties() && !object->IsJSGlobalProxy()) {
879 // Normalize the properties of object to avoid n^2 behavior 881 // Normalize the properties of object to avoid n^2 behavior
(...skipping 13 matching lines...) Expand all
893 895
894 OptimizedObjectForAddingMultipleProperties:: 896 OptimizedObjectForAddingMultipleProperties::
895 ~OptimizedObjectForAddingMultipleProperties() { 897 ~OptimizedObjectForAddingMultipleProperties() {
896 // Reoptimize the object to allow fast property access. 898 // Reoptimize the object to allow fast property access.
897 if (has_been_transformed_) { 899 if (has_been_transformed_) {
898 TransformToFastProperties(object_, unused_property_fields_); 900 TransformToFastProperties(object_, unused_property_fields_);
899 } 901 }
900 } 902 }
901 903
902 } } // namespace v8::internal 904 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/handles-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698