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

Unified Diff: src/handles.h

Issue 231103002: Object::GetElements() and friends maybehandlification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: FixedArray::UnionOfKeys() maybehandlified Created 6 years, 8 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 | « src/elements.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index 6f26880bcfb5d0ce602b79fc1f49ec40c6312535..1100f5b836bf5b6c27953561a7b239a12668b31a 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -287,7 +287,8 @@ class DeferredHandleScope {
// an object of expected type, or the handle is an error if running out
// of space or encountering an internal error.
-Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name);
+MUST_USE_RESULT MaybeHandle<Object> GetProperty(Handle<JSReceiver> obj,
+ const char* name);
// Get the JS object corresponding to the given script; create it
// if none exists.
@@ -317,10 +318,10 @@ enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS };
// Computes the enumerable keys for a JSObject. Used for implementing
// "for (n in object) { }".
-Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object,
- KeyCollectionType type,
- bool* threw);
-Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw);
+MUST_USE_RESULT MaybeHandle<FixedArray> GetKeysInFixedArrayFor(
+ Handle<JSReceiver> object,
+ KeyCollectionType type);
+MUST_USE_RESULT MaybeHandle<JSArray> GetKeysFor(Handle<JSReceiver> object);
Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length);
Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
bool cache_result);
« no previous file with comments | « src/elements.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698