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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/fast-codegen.h
===================================================================
--- src/fast-codegen.h (revision 3445)
+++ src/fast-codegen.h (working copy)
@@ -86,8 +86,23 @@
void EmitCallWithStub(Call* expr);
void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info);
+ // Platform-specific code for loading variables.
+ void EmitVariableLoad(Variable* expr, Expression::Context context);
+
// Platform-specific support for compiling assignments.
+ // Load a value from a named property and push the result on the stack.
+ // The receiver is left on the stack by the IC.
+ void EmitNamedPropertyLoad(Property* expr, Expression::Context context);
+
+ // Load a value from a named property and push the result on the stack.
+ // The receiver and the key is left on the stack by the IC.
+ void EmitKeyedPropertyLoad(Expression::Context context);
+
+ // Apply the compound assignment operator. Expects both operands on top
+ // of the stack.
+ void EmitCompoundAssignmentOp(Token::Value op, Expression::Context context);
+
// Complete a variable assignment. The right-hand-side value is expected
// on top of the stack.
void EmitVariableAssignment(Assignment* expr);
« 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