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

Side by Side Diff: src/variables.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/v8utils.h ('k') | src/variables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return is_accessed_from_inner_scope_; 139 return is_accessed_from_inner_scope_;
140 } 140 }
141 bool is_used() { return is_used_; } 141 bool is_used() { return is_used_; }
142 void set_is_used(bool flag) { is_used_ = flag; } 142 void set_is_used(bool flag) { is_used_ = flag; }
143 143
144 bool IsVariable(Handle<String> n) const { 144 bool IsVariable(Handle<String> n) const {
145 return !is_this() && name().is_identical_to(n); 145 return !is_this() && name().is_identical_to(n);
146 } 146 }
147 147
148 bool IsStackAllocated() const; 148 bool IsStackAllocated() const;
149 bool IsParameter() const; // Includes 'this'.
150 bool IsStackLocal() const;
149 151
150 bool is_dynamic() const { 152 bool is_dynamic() const {
151 return (mode_ == DYNAMIC || 153 return (mode_ == DYNAMIC ||
152 mode_ == DYNAMIC_GLOBAL || 154 mode_ == DYNAMIC_GLOBAL ||
153 mode_ == DYNAMIC_LOCAL); 155 mode_ == DYNAMIC_LOCAL);
154 } 156 }
155 157
156 bool is_global() const; 158 bool is_global() const;
157 bool is_this() const { return kind_ == THIS; } 159 bool is_this() const { return kind_ == THIS; }
158 bool is_arguments() const { return kind_ == ARGUMENTS; } 160 bool is_arguments() const { return kind_ == ARGUMENTS; }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // rewrite_ is usually a Slot or a Property, but may be any expression. 198 // rewrite_ is usually a Slot or a Property, but may be any expression.
197 Expression* rewrite_; 199 Expression* rewrite_;
198 200
199 friend class Scope; // Has explicit access to rewrite_. 201 friend class Scope; // Has explicit access to rewrite_.
200 }; 202 };
201 203
202 204
203 } } // namespace v8::internal 205 } } // namespace v8::internal
204 206
205 #endif // V8_VARIABLES_H_ 207 #endif // V8_VARIABLES_H_
OLDNEW
« no previous file with comments | « src/v8utils.h ('k') | src/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698