OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3406 // mode for that variable. | 3406 // mode for that variable. |
3407 int ContextSlotIndex(String* name, | 3407 int ContextSlotIndex(String* name, |
3408 VariableMode* mode, | 3408 VariableMode* mode, |
3409 InitializationFlag* init_flag); | 3409 InitializationFlag* init_flag); |
3410 | 3410 |
3411 // Lookup support for serialized scope info. Returns the | 3411 // Lookup support for serialized scope info. Returns the |
3412 // parameter index for a given parameter name if the parameter is present; | 3412 // parameter index for a given parameter name if the parameter is present; |
3413 // otherwise returns a value < 0. The name must be a symbol (canonicalized). | 3413 // otherwise returns a value < 0. The name must be a symbol (canonicalized). |
3414 int ParameterIndex(String* name); | 3414 int ParameterIndex(String* name); |
3415 | 3415 |
3416 // Lookup support for serialized scope info. Returns the | 3416 // Lookup support for serialized scope info. Returns the function context |
3417 // function context slot index if the function name is present (named | 3417 // slot index if the function name is present and context-allocated (named |
3418 // function expressions, only), otherwise returns a value < 0. The name | 3418 // function expressions, only), otherwise returns a value < 0. The name |
3419 // must be a symbol (canonicalized). | 3419 // must be a symbol (canonicalized). |
3420 int FunctionContextSlotIndex(String* name, VariableMode* mode); | 3420 int FunctionContextSlotIndex(String* name, VariableMode* mode); |
3421 | 3421 |
3422 static Handle<ScopeInfo> Create(Scope* scope); | 3422 static Handle<ScopeInfo> Create(Scope* scope); |
3423 | 3423 |
3424 // Serializes empty scope info. | 3424 // Serializes empty scope info. |
3425 static ScopeInfo* Empty(); | 3425 static ScopeInfo* Empty(); |
3426 | 3426 |
3427 #ifdef DEBUG | 3427 #ifdef DEBUG |
(...skipping 5166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8594 } else { | 8594 } else { |
8595 value &= ~(1 << bit_position); | 8595 value &= ~(1 << bit_position); |
8596 } | 8596 } |
8597 return value; | 8597 return value; |
8598 } | 8598 } |
8599 }; | 8599 }; |
8600 | 8600 |
8601 } } // namespace v8::internal | 8601 } } // namespace v8::internal |
8602 | 8602 |
8603 #endif // V8_OBJECTS_H_ | 8603 #endif // V8_OBJECTS_H_ |
OLD | NEW |