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

Side by Side Diff: arguments/src/scopes.h

Issue 6665067: [Arguments] Remove synthetic properties and all code dealing with them. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Parameters. The left-most parameter has index 0. 244 // Parameters. The left-most parameter has index 0.
245 // Only valid for function scopes. 245 // Only valid for function scopes.
246 Variable* parameter(int index) const { 246 Variable* parameter(int index) const {
247 ASSERT(is_function_scope()); 247 ASSERT(is_function_scope());
248 return params_[index]; 248 return params_[index];
249 } 249 }
250 250
251 int num_parameters() const { return params_.length(); } 251 int num_parameters() const { return params_.length(); }
252 252
253 // The local variable 'arguments' if we need to allocate it; NULL otherwise. 253 // The local variable 'arguments' if we need to allocate it; NULL otherwise.
254 // If arguments() exist, arguments_shadow() exists, too.
255 Variable* arguments() const { return arguments_; } 254 Variable* arguments() const { return arguments_; }
256 255
257 // Declarations list. 256 // Declarations list.
258 ZoneList<Declaration*>* declarations() { return &decls_; } 257 ZoneList<Declaration*>* declarations() { return &decls_; }
259 258
260 259
261 260
262 // --------------------------------------------------------------------------- 261 // ---------------------------------------------------------------------------
263 // Variable allocation. 262 // Variable allocation.
264 263
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 int nesting_level_; 487 int nesting_level_;
489 // Nesting level of outermost scope that is contained in a with statement, 488 // Nesting level of outermost scope that is contained in a with statement,
490 // or kNotInsideWith if there are no with's around the current scope. 489 // or kNotInsideWith if there are no with's around the current scope.
491 int inside_with_level_; 490 int inside_with_level_;
492 }; 491 };
493 492
494 493
495 } } // namespace v8::internal 494 } } // namespace v8::internal
496 495
497 #endif // V8_SCOPES_H_ 496 #endif // V8_SCOPES_H_
OLDNEW
« no previous file with comments | « arguments/src/prettyprinter.cc ('k') | arguments/src/scopes.cc » ('j') | arguments/src/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698