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.cc

Issue 1178883003: Fix GCMole issue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after
4120 DCHECK(object->map()->is_extensible() || 4120 DCHECK(object->map()->is_extensible() ||
4121 it.isolate()->IsInternallyUsedPropertyName(name)); 4121 it.isolate()->IsInternallyUsedPropertyName(name));
4122 #endif 4122 #endif
4123 AddDataProperty(&it, value, attributes, STRICT, 4123 AddDataProperty(&it, value, attributes, STRICT,
4124 CERTAINLY_NOT_STORE_FROM_KEYED).Check(); 4124 CERTAINLY_NOT_STORE_FROM_KEYED).Check();
4125 } 4125 }
4126 4126
4127 4127
4128 // static 4128 // static
4129 void ExecutableAccessorInfo::ClearSetter(Handle<ExecutableAccessorInfo> info) { 4129 void ExecutableAccessorInfo::ClearSetter(Handle<ExecutableAccessorInfo> info) {
4130 info->set_setter(*v8::FromCData(info->GetIsolate(), nullptr)); 4130 Handle<Object> object = v8::FromCData(info->GetIsolate(), nullptr);
4131 info->set_setter(*object);
4131 } 4132 }
4132 4133
4133 4134
4134 MaybeHandle<Object> JSObject::ReconfigureAsDataProperty( 4135 MaybeHandle<Object> JSObject::ReconfigureAsDataProperty(
4135 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes) { 4136 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes) {
4136 Handle<JSObject> object = Handle<JSObject>::cast(it->GetReceiver()); 4137 Handle<JSObject> object = Handle<JSObject>::cast(it->GetReceiver());
4137 bool is_observed = object->map()->is_observed() && 4138 bool is_observed = object->map()->is_observed() &&
4138 (it->IsElement() || 4139 (it->IsElement() ||
4139 !it->isolate()->IsInternallyUsedPropertyName(it->name())); 4140 !it->isolate()->IsInternallyUsedPropertyName(it->name()));
4140 4141
(...skipping 12584 matching lines...) Expand 10 before | Expand all | Expand 10 after
16725 Handle<Object> new_value) { 16726 Handle<Object> new_value) {
16726 if (cell->value() != *new_value) { 16727 if (cell->value() != *new_value) {
16727 cell->set_value(*new_value); 16728 cell->set_value(*new_value);
16728 Isolate* isolate = cell->GetIsolate(); 16729 Isolate* isolate = cell->GetIsolate();
16729 cell->dependent_code()->DeoptimizeDependentCodeGroup( 16730 cell->dependent_code()->DeoptimizeDependentCodeGroup(
16730 isolate, DependentCode::kPropertyCellChangedGroup); 16731 isolate, DependentCode::kPropertyCellChangedGroup);
16731 } 16732 }
16732 } 16733 }
16733 } // namespace internal 16734 } // namespace internal
16734 } // namespace v8 16735 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698