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

Side by Side Diff: src/objects.h

Issue 261583004: Object.defineProperty shouldn't be a hint that we're constructing a dictionary. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added test Created 6 years, 7 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 // 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 "allocation.h" 8 #include "allocation.h"
9 #include "assert-scope.h" 9 #include "assert-scope.h"
10 #include "builtins.h" 10 #include "builtins.h"
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 StrictMode strict_mode, 2242 StrictMode strict_mode,
2243 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); 2243 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
2244 2244
2245 MUST_USE_RESULT static MaybeHandle<Object> SetLocalPropertyIgnoreAttributes( 2245 MUST_USE_RESULT static MaybeHandle<Object> SetLocalPropertyIgnoreAttributes(
2246 Handle<JSObject> object, 2246 Handle<JSObject> object,
2247 Handle<Name> key, 2247 Handle<Name> key,
2248 Handle<Object> value, 2248 Handle<Object> value,
2249 PropertyAttributes attributes, 2249 PropertyAttributes attributes,
2250 ValueType value_type = OPTIMAL_REPRESENTATION, 2250 ValueType value_type = OPTIMAL_REPRESENTATION,
2251 StoreMode mode = ALLOW_AS_CONSTANT, 2251 StoreMode mode = ALLOW_AS_CONSTANT,
2252 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); 2252 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK,
2253 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
2253 2254
2254 static inline Handle<String> ExpectedTransitionKey(Handle<Map> map); 2255 static inline Handle<String> ExpectedTransitionKey(Handle<Map> map);
2255 static inline Handle<Map> ExpectedTransitionTarget(Handle<Map> map); 2256 static inline Handle<Map> ExpectedTransitionTarget(Handle<Map> map);
2256 2257
2257 // Try to follow an existing transition to a field with attributes NONE. The 2258 // Try to follow an existing transition to a field with attributes NONE. The
2258 // return value indicates whether the transition was successful. 2259 // return value indicates whether the transition was successful.
2259 static inline Handle<Map> FindTransitionToField(Handle<Map> map, 2260 static inline Handle<Map> FindTransitionToField(Handle<Map> map,
2260 Handle<Name> key); 2261 Handle<Name> key);
2261 2262
2262 // Extend the receiver with a single fast property appeared first in the 2263 // Extend the receiver with a single fast property appeared first in the
(...skipping 8910 matching lines...) Expand 10 before | Expand all | Expand 10 after
11173 } else { 11174 } else {
11174 value &= ~(1 << bit_position); 11175 value &= ~(1 << bit_position);
11175 } 11176 }
11176 return value; 11177 return value;
11177 } 11178 }
11178 }; 11179 };
11179 11180
11180 } } // namespace v8::internal 11181 } } // namespace v8::internal
11181 11182
11182 #endif // V8_OBJECTS_H_ 11183 #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