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

Side by Side Diff: src/hydrogen.h

Issue 5550003: Add optimized compiler support for generic global loads.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 HSubgraph* true_graph, 683 HSubgraph* true_graph,
684 HSubgraph* false_graph); 684 HSubgraph* false_graph);
685 685
686 void Push(HValue* value) { environment()->Push(value); } 686 void Push(HValue* value) { environment()->Push(value); }
687 HValue* Pop() { return environment()->Pop(); } 687 HValue* Pop() { return environment()->Pop(); }
688 HValue* Top() const { return environment()->Top(); } 688 HValue* Top() const { return environment()->Top(); }
689 void Drop(int n) { environment()->Drop(n); } 689 void Drop(int n) { environment()->Drop(n); }
690 void Bind(Variable* var, HValue* value) { environment()->Bind(var, value); } 690 void Bind(Variable* var, HValue* value) { environment()->Bind(var, value); }
691 691
692 void VisitForValue(Expression* expr); 692 void VisitForValue(Expression* expr);
693 void VisitForTypeofValue(Expression* expr);
693 void VisitForEffect(Expression* expr); 694 void VisitForEffect(Expression* expr);
694 void VisitForControl(Expression* expr, 695 void VisitForControl(Expression* expr,
695 HBasicBlock* true_block, 696 HBasicBlock* true_block,
696 HBasicBlock* false_block, 697 HBasicBlock* false_block,
697 bool invert_true, 698 bool invert_true,
698 bool invert_false); 699 bool invert_false);
699 700
700 // Visit an expression in a 'condition' context, i.e., in a control 701 // Visit an expression in a 'condition' context, i.e., in a control
701 // context but not a subexpression of logical and, or, or not. 702 // context but not a subexpression of logical and, or, or not.
702 void VisitCondition(Expression* expr, 703 void VisitCondition(Expression* expr,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 HSubgraph* CreateGotoSubgraph(HEnvironment* env); 739 HSubgraph* CreateGotoSubgraph(HEnvironment* env);
739 HSubgraph* CreateBranchSubgraph(HEnvironment* env); 740 HSubgraph* CreateBranchSubgraph(HEnvironment* env);
740 HSubgraph* CreateLoopHeaderSubgraph(HEnvironment* env); 741 HSubgraph* CreateLoopHeaderSubgraph(HEnvironment* env);
741 HSubgraph* CreateInlinedSubgraph(HEnvironment* outer, 742 HSubgraph* CreateInlinedSubgraph(HEnvironment* outer,
742 Handle<JSFunction> target, 743 Handle<JSFunction> target,
743 FunctionLiteral* function); 744 FunctionLiteral* function);
744 745
745 // Helpers for flow graph construction. 746 // Helpers for flow graph construction.
746 void LookupGlobalPropertyCell(VariableProxy* expr, 747 void LookupGlobalPropertyCell(VariableProxy* expr,
747 LookupResult* lookup, 748 LookupResult* lookup,
748 bool is_store); 749 bool is_store,
750 bool* use_generic);
749 751
750 bool TryArgumentsAccess(Property* expr); 752 bool TryArgumentsAccess(Property* expr);
751 bool TryCallApply(Call* expr); 753 bool TryCallApply(Call* expr);
752 bool TryInline(Call* expr); 754 bool TryInline(Call* expr);
753 bool TryMathFunctionInline(Call* expr); 755 bool TryMathFunctionInline(Call* expr);
754 void TraceInline(Handle<JSFunction> target, bool result); 756 void TraceInline(Handle<JSFunction> target, bool result);
755 757
756 void HandleGlobalVariableAssignment(VariableProxy* proxy, 758 void HandleGlobalVariableAssignment(VariableProxy* proxy,
757 HValue* value, 759 HValue* value,
758 int position); 760 int position);
759 void HandleGlobalVariableLoad(VariableProxy* expr); 761 void HandleGlobalVariableLoad(VariableProxy* expr, bool inside_typeof);
760 void HandlePropertyAssignment(Assignment* expr); 762 void HandlePropertyAssignment(Assignment* expr);
761 void HandleCompoundAssignment(Assignment* expr); 763 void HandleCompoundAssignment(Assignment* expr);
762 void HandlePolymorphicLoadNamedField(Property* expr, 764 void HandlePolymorphicLoadNamedField(Property* expr,
763 HValue* object, 765 HValue* object,
764 ZoneMapList* types, 766 ZoneMapList* types,
765 Handle<String> name); 767 Handle<String> name);
766 void HandlePolymorphicStoreNamedField(Assignment* expr, 768 void HandlePolymorphicStoreNamedField(Assignment* expr,
767 HValue* object, 769 HValue* object,
768 HValue* value, 770 HValue* value,
769 ZoneMapList* types, 771 ZoneMapList* types,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 const char* filename_; 1054 const char* filename_;
1053 HeapStringAllocator string_allocator_; 1055 HeapStringAllocator string_allocator_;
1054 StringStream trace_; 1056 StringStream trace_;
1055 int indent_; 1057 int indent_;
1056 }; 1058 };
1057 1059
1058 1060
1059 } } // namespace v8::internal 1061 } } // namespace v8::internal
1060 1062
1061 #endif // V8_HYDROGEN_H_ 1063 #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