OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/lookup.h" | 5 #include "src/lookup.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/elements.h" | 9 #include "src/elements.h" |
10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 if (IsElement()) { | 409 if (IsElement()) { |
410 Handle<JSObject> object = Handle<JSObject>::cast(holder); | 410 Handle<JSObject> object = Handle<JSObject>::cast(holder); |
411 ElementsAccessor* accessor = object->GetElementsAccessor(); | 411 ElementsAccessor* accessor = object->GetElementsAccessor(); |
412 accessor->Delete(object, number_); | 412 accessor->Delete(object, number_); |
413 } else { | 413 } else { |
414 bool is_prototype_map = holder->map()->is_prototype_map(); | 414 bool is_prototype_map = holder->map()->is_prototype_map(); |
415 RuntimeCallTimerScope stats_scope( | 415 RuntimeCallTimerScope stats_scope( |
416 isolate_, is_prototype_map | 416 isolate_, is_prototype_map |
417 ? &RuntimeCallStats::PrototypeObject_DeleteProperty | 417 ? &RuntimeCallStats::PrototypeObject_DeleteProperty |
418 : &RuntimeCallStats::Object_DeleteProperty); | 418 : &RuntimeCallStats::Object_DeleteProperty); |
419 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( | |
420 isolate_, | |
421 (is_prototype_map | |
422 ? &tracing::TraceEventStatsTable::PrototypeObject_DeleteProperty | |
423 : &tracing::TraceEventStatsTable::Object_DeleteProperty)); | |
424 | 419 |
425 PropertyNormalizationMode mode = | 420 PropertyNormalizationMode mode = |
426 is_prototype_map ? KEEP_INOBJECT_PROPERTIES : CLEAR_INOBJECT_PROPERTIES; | 421 is_prototype_map ? KEEP_INOBJECT_PROPERTIES : CLEAR_INOBJECT_PROPERTIES; |
427 | 422 |
428 if (holder->HasFastProperties()) { | 423 if (holder->HasFastProperties()) { |
429 JSObject::NormalizeProperties(Handle<JSObject>::cast(holder), mode, 0, | 424 JSObject::NormalizeProperties(Handle<JSObject>::cast(holder), mode, 0, |
430 "DeletingProperty"); | 425 "DeletingProperty"); |
431 ReloadPropertyInformation<false>(); | 426 ReloadPropertyInformation<false>(); |
432 } | 427 } |
433 // TODO(verwaest): Get rid of the name_ argument. | 428 // TODO(verwaest): Get rid of the name_ argument. |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 : access_check_info->named_interceptor(); | 831 : access_check_info->named_interceptor(); |
837 if (interceptor) { | 832 if (interceptor) { |
838 return handle(InterceptorInfo::cast(interceptor), isolate_); | 833 return handle(InterceptorInfo::cast(interceptor), isolate_); |
839 } | 834 } |
840 } | 835 } |
841 return Handle<InterceptorInfo>(); | 836 return Handle<InterceptorInfo>(); |
842 } | 837 } |
843 | 838 |
844 } // namespace internal | 839 } // namespace internal |
845 } // namespace v8 | 840 } // namespace v8 |
OLD | NEW |