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

Unified Diff: src/variables.h

Issue 335293004: New try: Parser: Delay internalizing strings and values (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased (trivial) Created 6 years, 6 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/utils.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
diff --git a/src/variables.h b/src/variables.h
index acec910033086a8d1a40a629e27e16c42374491d..fdea0eedf1f240e3120763324d2a8bf3e68b4f43 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -5,6 +5,7 @@
#ifndef V8_VARIABLES_H_
#define V8_VARIABLES_H_
+#include "src/ast-value-factory.h"
#include "src/interface.h"
#include "src/zone.h"
@@ -52,7 +53,7 @@ class Variable: public ZoneObject {
};
Variable(Scope* scope,
- Handle<String> name,
+ const AstRawString* name,
VariableMode mode,
bool is_valid_ref,
Kind kind,
@@ -70,7 +71,8 @@ class Variable: public ZoneObject {
// scope is only used to follow the context chain length.
Scope* scope() const { return scope_; }
- Handle<String> name() const { return name_; }
+ Handle<String> name() const { return name_->string(); }
+ const AstRawString* raw_name() const { return name_; }
VariableMode mode() const { return mode_; }
bool has_forced_context_allocation() const {
return force_context_allocation_;
@@ -136,7 +138,7 @@ class Variable: public ZoneObject {
private:
Scope* scope_;
- Handle<String> name_;
+ const AstRawString* name_;
VariableMode mode_;
Kind kind_;
Location location_;
« no previous file with comments | « src/utils.cc ('k') | src/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698