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

Side by Side Diff: src/objects.h

Issue 7992005: Block scoped const variables. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 9 years, 2 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
« no previous file with comments | « src/messages.js ('k') | src/parser.h » ('j') | src/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 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
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 3050
3051 // Lookup support for serialized scope info. Returns the 3051 // Lookup support for serialized scope info. Returns the
3052 // parameter index for a given parameter name if the parameter is present; 3052 // parameter index for a given parameter name if the parameter is present;
3053 // otherwise returns a value < 0. The name must be a symbol (canonicalized). 3053 // otherwise returns a value < 0. The name must be a symbol (canonicalized).
3054 int ParameterIndex(String* name); 3054 int ParameterIndex(String* name);
3055 3055
3056 // Lookup support for serialized scope info. Returns the 3056 // Lookup support for serialized scope info. Returns the
3057 // function context slot index if the function name is present (named 3057 // function context slot index if the function name is present (named
3058 // function expressions, only), otherwise returns a value < 0. The name 3058 // function expressions, only), otherwise returns a value < 0. The name
3059 // must be a symbol (canonicalized). 3059 // must be a symbol (canonicalized).
3060 int FunctionContextSlotIndex(String* name); 3060 int FunctionContextSlotIndex(String* name, VariableMode* mode);
3061 3061
3062 static Handle<SerializedScopeInfo> Create(Scope* scope); 3062 static Handle<SerializedScopeInfo> Create(Scope* scope);
3063 3063
3064 // Serializes empty scope info. 3064 // Serializes empty scope info.
3065 static SerializedScopeInfo* Empty(); 3065 static SerializedScopeInfo* Empty();
3066 3066
3067 private: 3067 private:
3068 Object** ContextEntriesAddr(); 3068 Object** ContextEntriesAddr();
3069 3069
3070 Object** ParameterEntriesAddr(); 3070 Object** ParameterEntriesAddr();
(...skipping 4535 matching lines...) Expand 10 before | Expand all | Expand 10 after
7606 } else { 7606 } else {
7607 value &= ~(1 << bit_position); 7607 value &= ~(1 << bit_position);
7608 } 7608 }
7609 return value; 7609 return value;
7610 } 7610 }
7611 }; 7611 };
7612 7612
7613 } } // namespace v8::internal 7613 } } // namespace v8::internal
7614 7614
7615 #endif // V8_OBJECTS_H_ 7615 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698