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

Unified Diff: src/variables.h

Issue 1102903002: [strong] Simplify the classes-referring-to-classes check. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: oops Created 5 years, 8 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 | « src/scopes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.h
diff --git a/src/variables.h b/src/variables.h
index 31bfe42dc098e43fa4b6deabdfda076a96ee7596..384a8859545045ac502c5f80cc7a8229ddd81d75 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -192,16 +192,11 @@ class ClassVariable : public Variable {
int declaration_group_start = -1)
: Variable(scope, name, mode, Variable::CLASS, initialization_flag,
maybe_assigned_flag),
- declaration_group_start_(declaration_group_start),
- corresponding_outer_class_variable_(nullptr) {}
+ declaration_group_start_(declaration_group_start) {}
int declaration_group_start() const { return declaration_group_start_; }
-
- ClassVariable* corresponding_outer_class_variable() const {
- return corresponding_outer_class_variable_;
- }
- void set_corresponding_outer_class_variable(ClassVariable* var) {
- corresponding_outer_class_variable_ = var;
+ void set_declaration_group_start(int declaration_group_start) {
+ declaration_group_start_ = declaration_group_start;
}
private:
@@ -209,7 +204,6 @@ class ClassVariable : public Variable {
// needed for strong mode scoping checks. TODO(marja, rossberg): Implement
// checks for functions too.
int declaration_group_start_;
- ClassVariable* corresponding_outer_class_variable_;
};
} } // namespace v8::internal
« no previous file with comments | « src/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698