| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ | 
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ | 
| 7 | 7 | 
| 8 #include "allocation.h" | 8 #include "allocation.h" | 
| 9 #include "assert-scope.h" | 9 #include "assert-scope.h" | 
| 10 #include "builtins.h" | 10 #include "builtins.h" | 
| (...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4572   // the stack slot index for a given slot name if the slot is | 4572   // the stack slot index for a given slot name if the slot is | 
| 4573   // present; otherwise returns a value < 0. The name must be an internalized | 4573   // present; otherwise returns a value < 0. The name must be an internalized | 
| 4574   // string. | 4574   // string. | 
| 4575   int StackSlotIndex(String* name); | 4575   int StackSlotIndex(String* name); | 
| 4576 | 4576 | 
| 4577   // Lookup support for serialized scope info. Returns the | 4577   // Lookup support for serialized scope info. Returns the | 
| 4578   // context slot index for a given slot name if the slot is present; otherwise | 4578   // context slot index for a given slot name if the slot is present; otherwise | 
| 4579   // returns a value < 0. The name must be an internalized string. | 4579   // returns a value < 0. The name must be an internalized string. | 
| 4580   // If the slot is present and mode != NULL, sets *mode to the corresponding | 4580   // If the slot is present and mode != NULL, sets *mode to the corresponding | 
| 4581   // mode for that variable. | 4581   // mode for that variable. | 
| 4582   int ContextSlotIndex(String* name, | 4582   static int ContextSlotIndex(Handle<ScopeInfo> scope_info, | 
| 4583                        VariableMode* mode, | 4583                               Handle<String> name, | 
| 4584                        InitializationFlag* init_flag); | 4584                               VariableMode* mode, | 
|  | 4585                               InitializationFlag* init_flag); | 
| 4585 | 4586 | 
| 4586   // Lookup support for serialized scope info. Returns the | 4587   // Lookup support for serialized scope info. Returns the | 
| 4587   // parameter index for a given parameter name if the parameter is present; | 4588   // parameter index for a given parameter name if the parameter is present; | 
| 4588   // otherwise returns a value < 0. The name must be an internalized string. | 4589   // otherwise returns a value < 0. The name must be an internalized string. | 
| 4589   int ParameterIndex(String* name); | 4590   int ParameterIndex(String* name); | 
| 4590 | 4591 | 
| 4591   // Lookup support for serialized scope info. Returns the function context | 4592   // Lookup support for serialized scope info. Returns the function context | 
| 4592   // slot index if the function name is present and context-allocated (named | 4593   // slot index if the function name is present and context-allocated (named | 
| 4593   // function expressions, only), otherwise returns a value < 0. The name | 4594   // function expressions, only), otherwise returns a value < 0. The name | 
| 4594   // must be an internalized string. | 4595   // must be an internalized string. | 
| (...skipping 6575 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 11170     } else { | 11171     } else { | 
| 11171       value &= ~(1 << bit_position); | 11172       value &= ~(1 << bit_position); | 
| 11172     } | 11173     } | 
| 11173     return value; | 11174     return value; | 
| 11174   } | 11175   } | 
| 11175 }; | 11176 }; | 
| 11176 | 11177 | 
| 11177 } }  // namespace v8::internal | 11178 } }  // namespace v8::internal | 
| 11178 | 11179 | 
| 11179 #endif  // V8_OBJECTS_H_ | 11180 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|