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

Unified Diff: src/runtime/runtime-object.cc

Issue 1138243002: [strong] Introduce strong bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index ca35c102fd257e0922405d767ab1448052d4a832..e4478b7b44cd293d124510d3291eeefea6731fd9 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -1518,6 +1518,15 @@ RUNTIME_FUNCTION(Runtime_IsSpecObject) {
}
+RUNTIME_FUNCTION(Runtime_IsStrong) {
+ SealHandleScope shs(isolate);
+ DCHECK(args.length() == 1);
+ CONVERT_ARG_CHECKED(Object, obj, 0);
+ return isolate->heap()->ToBoolean(obj->IsJSReceiver() &&
+ JSReceiver::cast(obj)->map()->is_strong());
+}
+
+
RUNTIME_FUNCTION(Runtime_ClassOf) {
SealHandleScope shs(isolate);
DCHECK(args.length() == 1);
« src/objects.h ('K') | « src/runtime/runtime.h ('k') | test/mjsunit/strong/objects.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698