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

Side by Side Diff: src/objects.h

Issue 22799021: Fix hidden properties on object with frozen prototype. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // 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 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2152 MUST_USE_RESULT MaybeObject* SetPropertyWithInterceptor( 2152 MUST_USE_RESULT MaybeObject* SetPropertyWithInterceptor(
2153 Name* name, 2153 Name* name,
2154 Object* value, 2154 Object* value,
2155 PropertyAttributes attributes, 2155 PropertyAttributes attributes,
2156 StrictModeFlag strict_mode); 2156 StrictModeFlag strict_mode);
2157 MUST_USE_RESULT MaybeObject* SetPropertyPostInterceptor( 2157 MUST_USE_RESULT MaybeObject* SetPropertyPostInterceptor(
2158 Name* name, 2158 Name* name,
2159 Object* value, 2159 Object* value,
2160 PropertyAttributes attributes, 2160 PropertyAttributes attributes,
2161 StrictModeFlag strict_mode, 2161 StrictModeFlag strict_mode,
2162 ExtensibilityCheck extensibility_check,
2163 StoreMode mode = ALLOW_AS_CONSTANT); 2162 StoreMode mode = ALLOW_AS_CONSTANT);
2164 2163
2165 static Handle<Object> SetLocalPropertyIgnoreAttributes( 2164 static Handle<Object> SetLocalPropertyIgnoreAttributes(
2166 Handle<JSObject> object, 2165 Handle<JSObject> object,
2167 Handle<Name> key, 2166 Handle<Name> key,
2168 Handle<Object> value, 2167 Handle<Object> value,
2169 PropertyAttributes attributes, 2168 PropertyAttributes attributes,
2170 ValueType value_type = OPTIMAL_REPRESENTATION, 2169 ValueType value_type = OPTIMAL_REPRESENTATION,
2171 StoreMode mode = ALLOW_AS_CONSTANT); 2170 StoreMode mode = ALLOW_AS_CONSTANT);
2172 2171
(...skipping 17 matching lines...) Expand all
2190 2189
2191 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); 2190 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance);
2192 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance(); 2191 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance();
2193 2192
2194 // Can cause GC. 2193 // Can cause GC.
2195 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( 2194 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes(
2196 Name* key, 2195 Name* key,
2197 Object* value, 2196 Object* value,
2198 PropertyAttributes attributes, 2197 PropertyAttributes attributes,
2199 ValueType value_type = OPTIMAL_REPRESENTATION, 2198 ValueType value_type = OPTIMAL_REPRESENTATION,
2200 StoreMode mode = ALLOW_AS_CONSTANT); 2199 StoreMode mode = ALLOW_AS_CONSTANT,
2200 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK);
2201 2201
2202 // Retrieve a value in a normalized object given a lookup result. 2202 // Retrieve a value in a normalized object given a lookup result.
2203 // Handles the special representation of JS global objects. 2203 // Handles the special representation of JS global objects.
2204 Object* GetNormalizedProperty(LookupResult* result); 2204 Object* GetNormalizedProperty(LookupResult* result);
2205 2205
2206 // Sets the property value in a normalized object given (key, value). 2206 // Sets the property value in a normalized object given (key, value).
2207 // Handles the special representation of JS global objects. 2207 // Handles the special representation of JS global objects.
2208 static Handle<Object> SetNormalizedProperty(Handle<JSObject> object, 2208 static Handle<Object> SetNormalizedProperty(Handle<JSObject> object,
2209 LookupResult* result, 2209 LookupResult* result,
2210 Handle<Object> value); 2210 Handle<Object> value);
(...skipping 7973 matching lines...) Expand 10 before | Expand all | Expand 10 after
10184 } else { 10184 } else {
10185 value &= ~(1 << bit_position); 10185 value &= ~(1 << bit_position);
10186 } 10186 }
10187 return value; 10187 return value;
10188 } 10188 }
10189 }; 10189 };
10190 10190
10191 } } // namespace v8::internal 10191 } } // namespace v8::internal
10192 10192
10193 #endif // V8_OBJECTS_H_ 10193 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698