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

Side by Side Diff: src/objects.h

Issue 324933003: Fix invalid attributes when generalizing because of incompatible map change. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | 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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 6349 matching lines...) Expand 10 before | Expand all | Expand 10 after
6360 int modify_index, 6360 int modify_index,
6361 Representation new_representation, 6361 Representation new_representation,
6362 Handle<HeapType> new_field_type, 6362 Handle<HeapType> new_field_type,
6363 StoreMode store_mode); 6363 StoreMode store_mode);
6364 static Handle<Map> CopyGeneralizeAllRepresentations( 6364 static Handle<Map> CopyGeneralizeAllRepresentations(
6365 Handle<Map> map, 6365 Handle<Map> map,
6366 int modify_index, 6366 int modify_index,
6367 StoreMode store_mode, 6367 StoreMode store_mode,
6368 PropertyAttributes attributes, 6368 PropertyAttributes attributes,
6369 const char* reason); 6369 const char* reason);
6370 static Handle<Map> CopyGeneralizeAllRepresentations(
6371 Handle<Map> map,
6372 int modify_index,
6373 StoreMode store_mode,
6374 const char* reason);
6370 6375
6371 static Handle<Map> Normalize(Handle<Map> map, PropertyNormalizationMode mode); 6376 static Handle<Map> Normalize(Handle<Map> map, PropertyNormalizationMode mode);
6372 6377
6373 // Returns the constructor name (the name (possibly, inferred name) of the 6378 // Returns the constructor name (the name (possibly, inferred name) of the
6374 // function that was used to instantiate the object). 6379 // function that was used to instantiate the object).
6375 String* constructor_name(); 6380 String* constructor_name();
6376 6381
6377 // Tells whether the map is shared between objects that may have different 6382 // Tells whether the map is shared between objects that may have different
6378 // behavior. If true, the map should never be modified, instead a clone 6383 // behavior. If true, the map should never be modified, instead a clone
6379 // should be created and modified. 6384 // should be created and modified.
(...skipping 4863 matching lines...) Expand 10 before | Expand all | Expand 10 after
11243 } else { 11248 } else {
11244 value &= ~(1 << bit_position); 11249 value &= ~(1 << bit_position);
11245 } 11250 }
11246 return value; 11251 return value;
11247 } 11252 }
11248 }; 11253 };
11249 11254
11250 } } // namespace v8::internal 11255 } } // namespace v8::internal
11251 11256
11252 #endif // V8_OBJECTS_H_ 11257 #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