Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.h

Issue 705663004: harmony_scoping: Implement lexical bindings at top level (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ready for review Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // - CodeCacheHashTable 80 // - CodeCacheHashTable
81 // - MapCache 81 // - MapCache
82 // - OrderedHashTable 82 // - OrderedHashTable
83 // - OrderedHashSet 83 // - OrderedHashSet
84 // - OrderedHashMap 84 // - OrderedHashMap
85 // - Context 85 // - Context
86 // - TypeFeedbackVector 86 // - TypeFeedbackVector
87 // - JSFunctionResultCache 87 // - JSFunctionResultCache
88 // - ScopeInfo 88 // - ScopeInfo
89 // - TransitionArray 89 // - TransitionArray
90 // - GlobalContextTable
90 // - FixedDoubleArray 91 // - FixedDoubleArray
91 // - ExternalArray 92 // - ExternalArray
92 // - ExternalUint8ClampedArray 93 // - ExternalUint8ClampedArray
93 // - ExternalInt8Array 94 // - ExternalInt8Array
94 // - ExternalUint8Array 95 // - ExternalUint8Array
95 // - ExternalInt16Array 96 // - ExternalInt16Array
96 // - ExternalUint16Array 97 // - ExternalUint16Array
97 // - ExternalInt32Array 98 // - ExternalInt32Array
98 // - ExternalUint32Array 99 // - ExternalUint32Array
99 // - ExternalFloat32Array 100 // - ExternalFloat32Array
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 V(DescriptorArray) \ 937 V(DescriptorArray) \
937 V(TransitionArray) \ 938 V(TransitionArray) \
938 V(TypeFeedbackVector) \ 939 V(TypeFeedbackVector) \
939 V(DeoptimizationInputData) \ 940 V(DeoptimizationInputData) \
940 V(DeoptimizationOutputData) \ 941 V(DeoptimizationOutputData) \
941 V(DependentCode) \ 942 V(DependentCode) \
942 V(FixedArray) \ 943 V(FixedArray) \
943 V(FixedDoubleArray) \ 944 V(FixedDoubleArray) \
944 V(ConstantPoolArray) \ 945 V(ConstantPoolArray) \
945 V(Context) \ 946 V(Context) \
947 V(GlobalContextTable) \
946 V(NativeContext) \ 948 V(NativeContext) \
947 V(ScopeInfo) \ 949 V(ScopeInfo) \
948 V(JSFunction) \ 950 V(JSFunction) \
949 V(Code) \ 951 V(Code) \
950 V(Oddball) \ 952 V(Oddball) \
951 V(SharedFunctionInfo) \ 953 V(SharedFunctionInfo) \
952 V(JSValue) \ 954 V(JSValue) \
953 V(JSDate) \ 955 V(JSDate) \
954 V(JSMessageObject) \ 956 V(JSMessageObject) \
955 V(StringWrapper) \ 957 V(StringWrapper) \
(...skipping 6571 matching lines...) Expand 10 before | Expand all | Expand 10 after
7527 DECL_ACCESSORS(native_context, Context) 7529 DECL_ACCESSORS(native_context, Context)
7528 7530
7529 // [global context]: the most recent (i.e. innermost) global context. 7531 // [global context]: the most recent (i.e. innermost) global context.
7530 DECL_ACCESSORS(global_context, Context) 7532 DECL_ACCESSORS(global_context, Context)
7531 7533
7532 // [global proxy]: the global proxy object of the context 7534 // [global proxy]: the global proxy object of the context
7533 DECL_ACCESSORS(global_proxy, JSObject) 7535 DECL_ACCESSORS(global_proxy, JSObject)
7534 7536
7535 DECLARE_CAST(GlobalObject) 7537 DECLARE_CAST(GlobalObject)
7536 7538
7539 static void InvalidatePropertyCell(Handle<GlobalObject> object,
7540 Handle<Name> name);
7541
7537 // Layout description. 7542 // Layout description.
7538 static const int kBuiltinsOffset = JSObject::kHeaderSize; 7543 static const int kBuiltinsOffset = JSObject::kHeaderSize;
7539 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; 7544 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize;
7540 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; 7545 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize;
7541 static const int kGlobalProxyOffset = kGlobalContextOffset + kPointerSize; 7546 static const int kGlobalProxyOffset = kGlobalContextOffset + kPointerSize;
7542 static const int kHeaderSize = kGlobalProxyOffset + kPointerSize; 7547 static const int kHeaderSize = kGlobalProxyOffset + kPointerSize;
7543 7548
7544 private: 7549 private:
7545 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject); 7550 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject);
7546 }; 7551 };
(...skipping 3382 matching lines...) Expand 10 before | Expand all | Expand 10 after
10929 } else { 10934 } else {
10930 value &= ~(1 << bit_position); 10935 value &= ~(1 << bit_position);
10931 } 10936 }
10932 return value; 10937 return value;
10933 } 10938 }
10934 }; 10939 };
10935 10940
10936 } } // namespace v8::internal 10941 } } // namespace v8::internal
10937 10942
10938 #endif // V8_OBJECTS_H_ 10943 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698