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

Unified Diff: src/cfg.h

Issue 162006: Added support for expression statements to the CFG builder and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/cfg.cc » ('j') | src/cfg.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cfg.h
===================================================================
--- src/cfg.h (revision 2628)
+++ src/cfg.h (working copy)
@@ -201,11 +201,13 @@
// computation is not needed (though its side effects are).
class Effect : public Location {
public:
- // We should not try to emit code to read or write to Effect.
+ // We should not try to emit code to read Effect.
void Get(MacroAssembler* masm, Register reg) { UNREACHABLE(); }
- void Set(MacroAssembler* masm, Register reg) { UNREACHABLE(); }
void Push(MacroAssembler* masm) { UNREACHABLE(); }
+ // Setting Effect is ignored.
+ void Set(MacroAssembler* masm, Register reg) {}
+
#ifdef DEBUG
void Print();
#endif
@@ -311,6 +313,7 @@
// Accessors.
Location* location() { return loc_; }
+ void set_location(Location* loc) { loc_ = loc; }
// Support for fast-compilation mode:
« no previous file with comments | « no previous file | src/cfg.cc » ('j') | src/cfg.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698