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

Unified Diff: src/variables.h

Issue 506050: - Undo unfortunate renaming of StaticType. (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/rewriter.cc ('k') | src/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.h
===================================================================
--- src/variables.h (revision 3477)
+++ src/variables.h (working copy)
@@ -65,14 +65,14 @@
// Variables and AST expression nodes can track their "type" to enable
// optimizations and removal of redundant checks when generating code.
-class SmiAnalysis {
+class StaticType {
public:
enum Kind {
UNKNOWN,
LIKELY_SMI
};
- SmiAnalysis() : kind_(UNKNOWN) {}
+ StaticType() : kind_(UNKNOWN) {}
bool Is(Kind kind) const { return kind_ == kind; }
@@ -80,11 +80,11 @@
bool IsUnknown() const { return Is(UNKNOWN); }
bool IsLikelySmi() const { return Is(LIKELY_SMI); }
- void CopyFrom(SmiAnalysis* other) {
+ void CopyFrom(StaticType* other) {
kind_ = other->kind_;
}
- static const char* Type2String(SmiAnalysis* type);
+ static const char* Type2String(StaticType* type);
// LIKELY_SMI accessors
void SetAsLikelySmi() {
@@ -100,7 +100,7 @@
private:
Kind kind_;
- DISALLOW_COPY_AND_ASSIGN(SmiAnalysis);
+ DISALLOW_COPY_AND_ASSIGN(StaticType);
};
@@ -203,7 +203,7 @@
Expression* rewrite() const { return rewrite_; }
Slot* slot() const;
- SmiAnalysis* type() { return &type_; }
+ StaticType* type() { return &type_; }
private:
Scope* scope_;
@@ -220,7 +220,7 @@
UseCount obj_uses_; // uses of the object the variable points to
// Static type information
- SmiAnalysis type_;
+ StaticType type_;
// Code generation.
// rewrite_ is usually a Slot or a Property, but may be any expression.
« no previous file with comments | « src/rewriter.cc ('k') | src/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698