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

Side by Side Diff: src/hydrogen.h

Issue 7778013: NewGC: Merge bleeding edge up to 9009. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 3 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/heap.cc ('k') | src/hydrogen.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 // Helpers for flow graph construction. 867 // Helpers for flow graph construction.
868 enum GlobalPropertyAccess { 868 enum GlobalPropertyAccess {
869 kUseCell, 869 kUseCell,
870 kUseGeneric 870 kUseGeneric
871 }; 871 };
872 GlobalPropertyAccess LookupGlobalProperty(Variable* var, 872 GlobalPropertyAccess LookupGlobalProperty(Variable* var,
873 LookupResult* lookup, 873 LookupResult* lookup,
874 bool is_store); 874 bool is_store);
875 875
876 bool TryArgumentsAccess(Property* expr); 876 bool TryArgumentsAccess(Property* expr);
877
878 // Try to optimize fun.apply(receiver, arguments) pattern.
877 bool TryCallApply(Call* expr); 879 bool TryCallApply(Call* expr);
880
878 bool TryInline(Call* expr); 881 bool TryInline(Call* expr);
879 bool TryInlineBuiltinFunction(Call* expr, 882 bool TryInlineBuiltinFunction(Call* expr,
880 HValue* receiver, 883 HValue* receiver,
881 Handle<Map> receiver_map, 884 Handle<Map> receiver_map,
882 CheckType check_type); 885 CheckType check_type);
883 886
884 // If --trace-inlining, print a line of the inlining trace. Inlining 887 // If --trace-inlining, print a line of the inlining trace. Inlining
885 // succeeded if the reason string is NULL and failed if there is a 888 // succeeded if the reason string is NULL and failed if there is a
886 // non-NULL reason string. 889 // non-NULL reason string.
887 void TraceInline(Handle<JSFunction> target, 890 void TraceInline(Handle<JSFunction> target,
888 Handle<JSFunction> caller, 891 Handle<JSFunction> caller,
889 const char* failure_reason); 892 const char* failure_reason);
890 893
891 void HandleGlobalVariableAssignment(Variable* var, 894 void HandleGlobalVariableAssignment(Variable* var,
892 HValue* value, 895 HValue* value,
893 int position, 896 int position,
894 int ast_id); 897 int ast_id);
895 898
896 void HandlePropertyAssignment(Assignment* expr); 899 void HandlePropertyAssignment(Assignment* expr);
897 void HandleCompoundAssignment(Assignment* expr); 900 void HandleCompoundAssignment(Assignment* expr);
898 void HandlePolymorphicStoreNamedField(Assignment* expr, 901 void HandlePolymorphicStoreNamedField(Assignment* expr,
899 HValue* object, 902 HValue* object,
900 HValue* value, 903 HValue* value,
901 ZoneMapList* types, 904 SmallMapList* types,
902 Handle<String> name); 905 Handle<String> name);
903 void HandlePolymorphicCallNamed(Call* expr, 906 void HandlePolymorphicCallNamed(Call* expr,
904 HValue* receiver, 907 HValue* receiver,
905 ZoneMapList* types, 908 SmallMapList* types,
906 Handle<String> name); 909 Handle<String> name);
907 void HandleLiteralCompareTypeof(CompareOperation* compare_expr, 910 void HandleLiteralCompareTypeof(CompareOperation* compare_expr,
908 Expression* expr, 911 Expression* expr,
909 Handle<String> check); 912 Handle<String> check);
910 void HandleLiteralCompareUndefined(CompareOperation* compare_expr, 913 void HandleLiteralCompareUndefined(CompareOperation* compare_expr,
911 Expression* expr); 914 Expression* expr);
912 915
913 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context, 916 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context,
914 HValue* string, 917 HValue* string,
915 HValue* index); 918 HValue* index);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 const char* filename_; 1229 const char* filename_;
1227 HeapStringAllocator string_allocator_; 1230 HeapStringAllocator string_allocator_;
1228 StringStream trace_; 1231 StringStream trace_;
1229 int indent_; 1232 int indent_;
1230 }; 1233 };
1231 1234
1232 1235
1233 } } // namespace v8::internal 1236 } } // namespace v8::internal
1234 1237
1235 #endif // V8_HYDROGEN_H_ 1238 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698