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

Side by Side Diff: src/hydrogen.h

Issue 8334021: Recognize special comparisons via pattern matching on the hydrogen graph, 2nd attempt. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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 | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')
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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 void HandleCompoundAssignment(Assignment* expr); 905 void HandleCompoundAssignment(Assignment* expr);
906 void HandlePolymorphicStoreNamedField(Assignment* expr, 906 void HandlePolymorphicStoreNamedField(Assignment* expr,
907 HValue* object, 907 HValue* object,
908 HValue* value, 908 HValue* value,
909 SmallMapList* types, 909 SmallMapList* types,
910 Handle<String> name); 910 Handle<String> name);
911 void HandlePolymorphicCallNamed(Call* expr, 911 void HandlePolymorphicCallNamed(Call* expr,
912 HValue* receiver, 912 HValue* receiver,
913 SmallMapList* types, 913 SmallMapList* types,
914 Handle<String> name); 914 Handle<String> name);
915 bool TryLiteralCompare(CompareOperation* expr);
916 void HandleLiteralCompareTypeof(CompareOperation* expr, 915 void HandleLiteralCompareTypeof(CompareOperation* expr,
917 Expression* sub_expr, 916 HTypeof* typeof_expr,
918 Handle<String> check); 917 Handle<String> check);
919 void HandleLiteralCompareNil(CompareOperation* expr, 918 void HandleLiteralCompareNil(CompareOperation* expr,
920 Expression* sub_expr, 919 HValue* value,
921 NilValue nil); 920 NilValue nil);
922 921
923 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context, 922 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context,
924 HValue* string, 923 HValue* string,
925 HValue* index); 924 HValue* index);
926 HInstruction* BuildBinaryOperation(BinaryOperation* expr, 925 HInstruction* BuildBinaryOperation(BinaryOperation* expr,
927 HValue* left, 926 HValue* left,
928 HValue* right); 927 HValue* right);
929 HInstruction* BuildIncrement(bool returns_original_input, 928 HInstruction* BuildIncrement(bool returns_original_input,
930 CountOperation* expr); 929 CountOperation* expr);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 const char* filename_; 1240 const char* filename_;
1242 HeapStringAllocator string_allocator_; 1241 HeapStringAllocator string_allocator_;
1243 StringStream trace_; 1242 StringStream trace_;
1244 int indent_; 1243 int indent_;
1245 }; 1244 };
1246 1245
1247 1246
1248 } } // namespace v8::internal 1247 } } // namespace v8::internal
1249 1248
1250 #endif // V8_HYDROGEN_H_ 1249 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698