OLD | NEW |
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 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3082 | 3082 |
3083 // Lookup support for serialized scope info. Returns the | 3083 // Lookup support for serialized scope info. Returns the |
3084 // parameter index for a given parameter name if the parameter is present; | 3084 // parameter index for a given parameter name if the parameter is present; |
3085 // otherwise returns a value < 0. The name must be a symbol (canonicalized). | 3085 // otherwise returns a value < 0. The name must be a symbol (canonicalized). |
3086 int ParameterIndex(String* name); | 3086 int ParameterIndex(String* name); |
3087 | 3087 |
3088 // Lookup support for serialized scope info. Returns the | 3088 // Lookup support for serialized scope info. Returns the |
3089 // function context slot index if the function name is present (named | 3089 // function context slot index if the function name is present (named |
3090 // function expressions, only), otherwise returns a value < 0. The name | 3090 // function expressions, only), otherwise returns a value < 0. The name |
3091 // must be a symbol (canonicalized). | 3091 // must be a symbol (canonicalized). |
3092 int FunctionContextSlotIndex(String* name); | 3092 int FunctionContextSlotIndex(String* name, VariableMode* mode); |
3093 | 3093 |
3094 static Handle<SerializedScopeInfo> Create(Scope* scope); | 3094 static Handle<SerializedScopeInfo> Create(Scope* scope); |
3095 | 3095 |
3096 // Serializes empty scope info. | 3096 // Serializes empty scope info. |
3097 static SerializedScopeInfo* Empty(); | 3097 static SerializedScopeInfo* Empty(); |
3098 | 3098 |
3099 private: | 3099 private: |
3100 Object** ContextEntriesAddr(); | 3100 Object** ContextEntriesAddr(); |
3101 | 3101 |
3102 Object** ParameterEntriesAddr(); | 3102 Object** ParameterEntriesAddr(); |
(...skipping 4567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7670 } else { | 7670 } else { |
7671 value &= ~(1 << bit_position); | 7671 value &= ~(1 << bit_position); |
7672 } | 7672 } |
7673 return value; | 7673 return value; |
7674 } | 7674 } |
7675 }; | 7675 }; |
7676 | 7676 |
7677 } } // namespace v8::internal | 7677 } } // namespace v8::internal |
7678 | 7678 |
7679 #endif // V8_OBJECTS_H_ | 7679 #endif // V8_OBJECTS_H_ |
OLD | NEW |