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

Unified Diff: src/objects.h

Issue 9605042: Never let the hole escape... (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/runtime.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 1b5ce957bf16699f147b934fe8883c3a5ced2379..76958c199b6c20947bc07a0dbb861b737c804386 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7944,6 +7944,9 @@ class AccessorPair: public Struct {
}
}
+ // Same as get, but returns undefined instead of the hole.
+ Object* SafeGet(AccessorComponent component);
ulan 2012/03/07 09:59:34 Consider marking this function as inline.
+
bool ContainsAccessor() {
return IsJSAccessor(getter()) || IsJSAccessor(setter());
}
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698