 Chromium Code Reviews
 Chromium Code Reviews Issue 12225099:
  Remove prototype checks for leaf maps in optimized code.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 12225099:
  Remove prototype checks for leaf maps in optimized code.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/heap.cc | 
| diff --git a/src/heap.cc b/src/heap.cc | 
| index 6637b9af65bd54fefada680625cccff304cf7905..e0a4cecb2defe0766d93693289ac6e648cc42bfc 100644 | 
| --- a/src/heap.cc | 
| +++ b/src/heap.cc | 
| @@ -2205,7 +2205,7 @@ MaybeObject* Heap::AllocateMap(InstanceType instance_type, | 
| map->set_inobject_properties(0); | 
| map->set_pre_allocated_property_fields(0); | 
| map->set_code_cache(empty_fixed_array(), SKIP_WRITE_BARRIER); | 
| - map->set_dependent_codes(DependentCodes::cast(empty_fixed_array()), | 
| + map->set_dependent_code(DependentCode::cast(empty_fixed_array()), | 
| SKIP_WRITE_BARRIER); | 
| 
Toon Verwaest
2013/02/13 15:18:25
reindent.
 
ulan
2013/02/14 09:30:46
Done.
 | 
| map->init_back_pointer(undefined_value()); | 
| map->set_unused_property_fields(0); | 
| @@ -2342,18 +2342,18 @@ bool Heap::CreateInitialMaps() { | 
| // Fix the instance_descriptors for the existing maps. | 
| meta_map()->set_code_cache(empty_fixed_array()); | 
| - meta_map()->set_dependent_codes(DependentCodes::cast(empty_fixed_array())); | 
| + meta_map()->set_dependent_code(DependentCode::cast(empty_fixed_array())); | 
| meta_map()->init_back_pointer(undefined_value()); | 
| meta_map()->set_instance_descriptors(empty_descriptor_array()); | 
| fixed_array_map()->set_code_cache(empty_fixed_array()); | 
| - fixed_array_map()->set_dependent_codes( | 
| - DependentCodes::cast(empty_fixed_array())); | 
| + fixed_array_map()->set_dependent_code( | 
| + DependentCode::cast(empty_fixed_array())); | 
| fixed_array_map()->init_back_pointer(undefined_value()); | 
| fixed_array_map()->set_instance_descriptors(empty_descriptor_array()); | 
| oddball_map()->set_code_cache(empty_fixed_array()); | 
| - oddball_map()->set_dependent_codes(DependentCodes::cast(empty_fixed_array())); | 
| + oddball_map()->set_dependent_code(DependentCode::cast(empty_fixed_array())); | 
| oddball_map()->init_back_pointer(undefined_value()); | 
| oddball_map()->set_instance_descriptors(empty_descriptor_array()); |