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 1165603002: Starting using GlobalDictionary for global objects instead of NameDictionary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « src/lookup-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9906 matching lines...) Expand 10 before | Expand all | Expand 10 after
9917 // property. 9917 // property.
9918 DECL_ACCESSORS(dependent_code, DependentCode) 9918 DECL_ACCESSORS(dependent_code, DependentCode)
9919 9919
9920 PropertyCellConstantType GetConstantType(); 9920 PropertyCellConstantType GetConstantType();
9921 9921
9922 // Computes the new type of the cell's contents for the given value, but 9922 // Computes the new type of the cell's contents for the given value, but
9923 // without actually modifying the details. 9923 // without actually modifying the details.
9924 static PropertyCellType UpdatedType(Handle<PropertyCell> cell, 9924 static PropertyCellType UpdatedType(Handle<PropertyCell> cell,
9925 Handle<Object> value, 9925 Handle<Object> value,
9926 PropertyDetails details); 9926 PropertyDetails details);
9927 static void UpdateCell(Handle<NameDictionary> dictionary, int entry, 9927 static void UpdateCell(Handle<GlobalDictionary> dictionary, int entry,
9928 Handle<Object> value, PropertyDetails details); 9928 Handle<Object> value, PropertyDetails details);
9929 9929
9930 static Handle<PropertyCell> InvalidateEntry(Handle<NameDictionary> dictionary, 9930 static Handle<PropertyCell> InvalidateEntry(
9931 int entry); 9931 Handle<GlobalDictionary> dictionary, int entry);
9932 9932
9933 static void SetValueWithInvalidation(Handle<PropertyCell> cell, 9933 static void SetValueWithInvalidation(Handle<PropertyCell> cell,
9934 Handle<Object> new_value); 9934 Handle<Object> new_value);
9935 9935
9936 DECLARE_CAST(PropertyCell) 9936 DECLARE_CAST(PropertyCell)
9937 9937
9938 // Dispatched behavior. 9938 // Dispatched behavior.
9939 DECLARE_PRINTER(PropertyCell) 9939 DECLARE_PRINTER(PropertyCell)
9940 DECLARE_VERIFIER(PropertyCell) 9940 DECLARE_VERIFIER(PropertyCell)
9941 9941
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
11191 } else { 11191 } else {
11192 value &= ~(1 << bit_position); 11192 value &= ~(1 << bit_position);
11193 } 11193 }
11194 return value; 11194 return value;
11195 } 11195 }
11196 }; 11196 };
11197 11197
11198 } } // namespace v8::internal 11198 } } // namespace v8::internal
11199 11199
11200 #endif // V8_OBJECTS_H_ 11200 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lookup-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698