| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 7143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 7154       DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); | 7154       DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); | 
| 7155   unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this); | 7155   unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this); | 
| 7156   USE(ignore); | 7156   USE(ignore); | 
| 7157   return true;  // Return true if there was no ASSERT. | 7157   return true;  // Return true if there was no ASSERT. | 
| 7158 } | 7158 } | 
| 7159 | 7159 | 
| 7160 | 7160 | 
| 7161 void SharedFunctionInfo::StartInobjectSlackTracking(Map* map) { | 7161 void SharedFunctionInfo::StartInobjectSlackTracking(Map* map) { | 
| 7162   ASSERT(!IsInobjectSlackTrackingInProgress()); | 7162   ASSERT(!IsInobjectSlackTrackingInProgress()); | 
| 7163 | 7163 | 
|  | 7164   if (!FLAG_clever_optimizations) return; | 
|  | 7165 | 
| 7164   // Only initiate the tracking the first time. | 7166   // Only initiate the tracking the first time. | 
| 7165   if (live_objects_may_exist()) return; | 7167   if (live_objects_may_exist()) return; | 
| 7166   set_live_objects_may_exist(true); | 7168   set_live_objects_may_exist(true); | 
| 7167 | 7169 | 
| 7168   // No tracking during the snapshot construction phase. | 7170   // No tracking during the snapshot construction phase. | 
| 7169   if (Serializer::enabled()) return; | 7171   if (Serializer::enabled()) return; | 
| 7170 | 7172 | 
| 7171   if (map->unused_property_fields() == 0) return; | 7173   if (map->unused_property_fields() == 0) return; | 
| 7172 | 7174 | 
| 7173   // Nonzero counter is a leftover from the previous attempt interrupted | 7175   // Nonzero counter is a leftover from the previous attempt interrupted | 
| (...skipping 5005 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 12179   if (break_point_objects()->IsUndefined()) return 0; | 12181   if (break_point_objects()->IsUndefined()) return 0; | 
| 12180   // Single break point. | 12182   // Single break point. | 
| 12181   if (!break_point_objects()->IsFixedArray()) return 1; | 12183   if (!break_point_objects()->IsFixedArray()) return 1; | 
| 12182   // Multiple break points. | 12184   // Multiple break points. | 
| 12183   return FixedArray::cast(break_point_objects())->length(); | 12185   return FixedArray::cast(break_point_objects())->length(); | 
| 12184 } | 12186 } | 
| 12185 #endif  // ENABLE_DEBUGGER_SUPPORT | 12187 #endif  // ENABLE_DEBUGGER_SUPPORT | 
| 12186 | 12188 | 
| 12187 | 12189 | 
| 12188 } }  // namespace v8::internal | 12190 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|