Declare more functions returing a MaybeObject* with MUST_USE_RESULT.

No violations found this time.

Additionally I changed one function JSDate::GetField that never returns
a failure to return a Object* instead.
Review URL: https://chromiumcodereview.appspot.com/10383088

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11532 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 132af256
This diff is collapsed.
...@@ -12987,7 +12987,7 @@ int BreakPointInfo::GetBreakPointCount() { ...@@ -12987,7 +12987,7 @@ int BreakPointInfo::GetBreakPointCount() {
#endif // ENABLE_DEBUGGER_SUPPORT #endif // ENABLE_DEBUGGER_SUPPORT
MaybeObject* JSDate::GetField(Object* object, Smi* index) { Object* JSDate::GetField(Object* object, Smi* index) {
return JSDate::cast(object)->DoGetField( return JSDate::cast(object)->DoGetField(
static_cast<FieldIndex>(index->value())); static_cast<FieldIndex>(index->value()));
} }
......
...@@ -6139,7 +6139,7 @@ class JSDate: public JSObject { ...@@ -6139,7 +6139,7 @@ class JSDate: public JSObject {
// Returns the date field with the specified index. // Returns the date field with the specified index.
// See FieldIndex for the list of date fields. // See FieldIndex for the list of date fields.
static MaybeObject* GetField(Object* date, Smi* index); static Object* GetField(Object* date, Smi* index);
void SetValue(Object* value, bool is_value_nan); void SetValue(Object* value, bool is_value_nan);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment