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 <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4048 bool block_scope_is_class_scope(); | 4048 bool block_scope_is_class_scope(); |
4049 FunctionKind function_kind(); | 4049 FunctionKind function_kind(); |
4050 | 4050 |
4051 // Copies all the context locals into an object used to materialize a scope. | 4051 // Copies all the context locals into an object used to materialize a scope. |
4052 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, | 4052 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
4053 Handle<Context> context, | 4053 Handle<Context> context, |
4054 Handle<JSObject> scope_object); | 4054 Handle<JSObject> scope_object); |
4055 | 4055 |
4056 | 4056 |
4057 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); | 4057 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); |
| 4058 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate); |
4058 | 4059 |
4059 // Serializes empty scope info. | 4060 // Serializes empty scope info. |
4060 static ScopeInfo* Empty(Isolate* isolate); | 4061 static ScopeInfo* Empty(Isolate* isolate); |
4061 | 4062 |
4062 #ifdef DEBUG | 4063 #ifdef DEBUG |
4063 void Print(); | 4064 void Print(); |
4064 #endif | 4065 #endif |
4065 | 4066 |
4066 // The layout of the static part of a ScopeInfo is as follows. Each entry is | 4067 // The layout of the static part of a ScopeInfo is as follows. Each entry is |
4067 // numeric and occupies one array slot. | 4068 // numeric and occupies one array slot. |
(...skipping 6776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10844 } else { | 10845 } else { |
10845 value &= ~(1 << bit_position); | 10846 value &= ~(1 << bit_position); |
10846 } | 10847 } |
10847 return value; | 10848 return value; |
10848 } | 10849 } |
10849 }; | 10850 }; |
10850 | 10851 |
10851 } } // namespace v8::internal | 10852 } } // namespace v8::internal |
10852 | 10853 |
10853 #endif // V8_OBJECTS_H_ | 10854 #endif // V8_OBJECTS_H_ |
OLD | NEW |