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

Side by Side Diff: src/fast-codegen.h

Issue 486008: Adding compound assignments to the top-level compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | « src/compiler.cc ('k') | src/fast-codegen.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 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void VisitDeclarations(ZoneList<Declaration*>* declarations); 79 void VisitDeclarations(ZoneList<Declaration*>* declarations);
80 void DeclareGlobals(Handle<FixedArray> pairs); 80 void DeclareGlobals(Handle<FixedArray> pairs);
81 81
82 // Platform-specific return sequence 82 // Platform-specific return sequence
83 void EmitReturnSequence(int position); 83 void EmitReturnSequence(int position);
84 84
85 // Platform-specific code sequences for calls 85 // Platform-specific code sequences for calls
86 void EmitCallWithStub(Call* expr); 86 void EmitCallWithStub(Call* expr);
87 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); 87 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info);
88 88
89 // Platform-specific code for loading variables.
90 void EmitVariableLoad(Variable* expr, Expression::Context context);
91
89 // Platform-specific support for compiling assignments. 92 // Platform-specific support for compiling assignments.
90 93
94 // Load a value from a named property and push the result on the stack.
95 // The receiver is left on the stack by the IC.
96 void EmitNamedPropertyLoad(Property* expr, Expression::Context context);
97
98 // Load a value from a named property and push the result on the stack.
99 // The receiver and the key is left on the stack by the IC.
100 void EmitKeyedPropertyLoad(Expression::Context context);
101
102 // Apply the compound assignment operator. Expects both operands on top
103 // of the stack.
104 void EmitCompoundAssignmentOp(Token::Value op, Expression::Context context);
105
91 // Complete a variable assignment. The right-hand-side value is expected 106 // Complete a variable assignment. The right-hand-side value is expected
92 // on top of the stack. 107 // on top of the stack.
93 void EmitVariableAssignment(Assignment* expr); 108 void EmitVariableAssignment(Assignment* expr);
94 109
95 // Complete a named property assignment. The receiver and right-hand-side 110 // Complete a named property assignment. The receiver and right-hand-side
96 // value are expected on top of the stack. 111 // value are expected on top of the stack.
97 void EmitNamedPropertyAssignment(Assignment* expr); 112 void EmitNamedPropertyAssignment(Assignment* expr);
98 113
99 // Complete a keyed property assignment. The reciever, key, and 114 // Complete a keyed property assignment. The reciever, key, and
100 // right-hand-side value are expected on top of the stack. 115 // right-hand-side value are expected on top of the stack.
(...skipping 29 matching lines...) Expand all
130 Label* true_label_; 145 Label* true_label_;
131 Label* false_label_; 146 Label* false_label_;
132 147
133 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 148 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
134 }; 149 };
135 150
136 151
137 } } // namespace v8::internal 152 } } // namespace v8::internal
138 153
139 #endif // V8_FAST_CODEGEN_H_ 154 #endif // V8_FAST_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698