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

Side by Side Diff: src/objects.h

Issue 363073002: One of the fast cases in JSObject::MigrateFastToFast() should not be taken... (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments Created 6 years, 5 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 6267 matching lines...) Expand 10 before | Expand all | Expand 10 after
6278 Handle<Name> key); 6278 Handle<Name> key);
6279 6279
6280 Map* FindRootMap(); 6280 Map* FindRootMap();
6281 Map* FindFieldOwner(int descriptor); 6281 Map* FindFieldOwner(int descriptor);
6282 6282
6283 inline int GetInObjectPropertyOffset(int index); 6283 inline int GetInObjectPropertyOffset(int index);
6284 6284
6285 int NumberOfFields(); 6285 int NumberOfFields();
6286 6286
6287 // TODO(ishell): candidate with JSObject::MigrateToMap(). 6287 // TODO(ishell): candidate with JSObject::MigrateToMap().
6288 bool InstancesNeedRewriting(Map* target, 6288 bool InstancesNeedRewriting(Map* target, int target_number_of_fields,
6289 int target_number_of_fields, 6289 int target_inobject, int target_unused,
6290 int target_inobject, 6290 int* old_number_of_fields);
6291 int target_unused);
6292 // TODO(ishell): moveit! 6291 // TODO(ishell): moveit!
6293 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); 6292 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map);
6294 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( 6293 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType(
6295 Handle<HeapType> type1, 6294 Handle<HeapType> type1,
6296 Handle<HeapType> type2, 6295 Handle<HeapType> type2,
6297 Isolate* isolate); 6296 Isolate* isolate);
6298 static void GeneralizeFieldType(Handle<Map> map, 6297 static void GeneralizeFieldType(Handle<Map> map,
6299 int modify_index, 6298 int modify_index,
6300 Handle<HeapType> new_field_type); 6299 Handle<HeapType> new_field_type);
6301 static Handle<Map> GeneralizeRepresentation( 6300 static Handle<Map> GeneralizeRepresentation(
(...skipping 4897 matching lines...) Expand 10 before | Expand all | Expand 10 after
11199 } else { 11198 } else {
11200 value &= ~(1 << bit_position); 11199 value &= ~(1 << bit_position);
11201 } 11200 }
11202 return value; 11201 return value;
11203 } 11202 }
11204 }; 11203 };
11205 11204
11206 } } // namespace v8::internal 11205 } } // namespace v8::internal
11207 11206
11208 #endif // V8_OBJECTS_H_ 11207 #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