| 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 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |