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 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4081 bool block_scope_is_class_scope(); | 4081 bool block_scope_is_class_scope(); |
4082 FunctionKind function_kind(); | 4082 FunctionKind function_kind(); |
4083 | 4083 |
4084 // Copies all the context locals into an object used to materialize a scope. | 4084 // Copies all the context locals into an object used to materialize a scope. |
4085 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, | 4085 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
4086 Handle<Context> context, | 4086 Handle<Context> context, |
4087 Handle<JSObject> scope_object); | 4087 Handle<JSObject> scope_object); |
4088 | 4088 |
4089 | 4089 |
4090 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); | 4090 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); |
| 4091 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate); |
4091 | 4092 |
4092 // Serializes empty scope info. | 4093 // Serializes empty scope info. |
4093 static ScopeInfo* Empty(Isolate* isolate); | 4094 static ScopeInfo* Empty(Isolate* isolate); |
4094 | 4095 |
4095 #ifdef DEBUG | 4096 #ifdef DEBUG |
4096 void Print(); | 4097 void Print(); |
4097 #endif | 4098 #endif |
4098 | 4099 |
4099 // The layout of the static part of a ScopeInfo is as follows. Each entry is | 4100 // The layout of the static part of a ScopeInfo is as follows. Each entry is |
4100 // numeric and occupies one array slot. | 4101 // numeric and occupies one array slot. |
(...skipping 6778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10879 } else { | 10880 } else { |
10880 value &= ~(1 << bit_position); | 10881 value &= ~(1 << bit_position); |
10881 } | 10882 } |
10882 return value; | 10883 return value; |
10883 } | 10884 } |
10884 }; | 10885 }; |
10885 | 10886 |
10886 } } // namespace v8::internal | 10887 } } // namespace v8::internal |
10887 | 10888 |
10888 #endif // V8_OBJECTS_H_ | 10889 #endif // V8_OBJECTS_H_ |
OLD | NEW |