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

Unified Diff: src/objects-inl.h

Issue 759683004: ExecutableAccessorInfo::clear_setter should set a null foreign pointer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: need write barrier Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-accessors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index b36cff97bc1b2129ceeb1be41ecb5a223a6a88e3..4a7b200ff05fcda83e802f614cf035b44a6154ca 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -7022,7 +7022,9 @@ bool AccessorInfo::IsCompatibleReceiver(Object* receiver) {
void ExecutableAccessorInfo::clear_setter() {
- set_setter(GetIsolate()->heap()->undefined_value(), SKIP_WRITE_BARRIER);
+ set_setter(*GetIsolate()->factory()->NewForeign(
+ reinterpret_cast<v8::internal::Address>(
+ reinterpret_cast<intptr_t>(nullptr))));
}
« no previous file with comments | « no previous file | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698