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 3551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3562 | 3562 |
3563 // Copies all the context locals into an object used to materialize a scope. | 3563 // Copies all the context locals into an object used to materialize a scope. |
3564 bool CopyContextLocalsToScopeObject(Isolate* isolate, | 3564 bool CopyContextLocalsToScopeObject(Isolate* isolate, |
3565 Handle<Context> context, | 3565 Handle<Context> context, |
3566 Handle<JSObject> scope_object); | 3566 Handle<JSObject> scope_object); |
3567 | 3567 |
3568 | 3568 |
3569 static Handle<ScopeInfo> Create(Scope* scope, Zone* zone); | 3569 static Handle<ScopeInfo> Create(Scope* scope, Zone* zone); |
3570 | 3570 |
3571 // Serializes empty scope info. | 3571 // Serializes empty scope info. |
3572 static ScopeInfo* Empty(); | 3572 static ScopeInfo* Empty(Isolate* isolate); |
3573 | 3573 |
3574 #ifdef DEBUG | 3574 #ifdef DEBUG |
3575 void Print(); | 3575 void Print(); |
3576 #endif | 3576 #endif |
3577 | 3577 |
3578 // The layout of the static part of a ScopeInfo is as follows. Each entry is | 3578 // The layout of the static part of a ScopeInfo is as follows. Each entry is |
3579 // numeric and occupies one array slot. | 3579 // numeric and occupies one array slot. |
3580 // 1. A set of properties of the scope | 3580 // 1. A set of properties of the scope |
3581 // 2. The number of parameters. This only applies to function scopes. For | 3581 // 2. The number of parameters. This only applies to function scopes. For |
3582 // non-function scopes this is 0. | 3582 // non-function scopes this is 0. |
(...skipping 5433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9016 } else { | 9016 } else { |
9017 value &= ~(1 << bit_position); | 9017 value &= ~(1 << bit_position); |
9018 } | 9018 } |
9019 return value; | 9019 return value; |
9020 } | 9020 } |
9021 }; | 9021 }; |
9022 | 9022 |
9023 } } // namespace v8::internal | 9023 } } // namespace v8::internal |
9024 | 9024 |
9025 #endif // V8_OBJECTS_H_ | 9025 #endif // V8_OBJECTS_H_ |
OLD | NEW |