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

Unified Diff: src/api.cc

Issue 5581006: Checking heap objects in API. (Closed)
Patch Set: Created 10 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 | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index f28082344cc34f20f78be91f3619cff64530ea34..246d3e5440fdfbd20d06fbeba4e1336e02c50519 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -517,6 +517,11 @@ i::Object** v8::HandleScope::CreateHandle(i::Object* value) {
}
+i::Object** v8::HandleScope::CreateHandleFromHeapObject(i::Object* value) {
+ return i::HandleScope::CreateHandle(value, i::Isolate::Current());
+}
+
+
void Context::Enter() {
if (IsDeadCheck("v8::Context::Enter()")) return;
ENTER_V8;
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698