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

Side by Side Diff: src/objects.h

Issue 231883007: Return MaybeHandle from Invoke. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 2123
2124 // Lookup a property. If found, the result is valid and has 2124 // Lookup a property. If found, the result is valid and has
2125 // detailed information. 2125 // detailed information.
2126 void LocalLookup(Name* name, LookupResult* result, 2126 void LocalLookup(Name* name, LookupResult* result,
2127 bool search_hidden_prototypes = false); 2127 bool search_hidden_prototypes = false);
2128 void Lookup(Name* name, LookupResult* result); 2128 void Lookup(Name* name, LookupResult* result);
2129 2129
2130 protected: 2130 protected:
2131 Smi* GenerateIdentityHash(); 2131 Smi* GenerateIdentityHash();
2132 2132
2133 static Handle<Object> SetPropertyWithDefinedSetter(Handle<JSReceiver> object, 2133 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter(
2134 Handle<JSReceiver> setter, 2134 Handle<JSReceiver> object,
2135 Handle<Object> value); 2135 Handle<JSReceiver> setter,
2136 Handle<Object> value);
2136 2137
2137 private: 2138 private:
2138 static PropertyAttributes GetPropertyAttributeForResult( 2139 static PropertyAttributes GetPropertyAttributeForResult(
2139 Handle<JSReceiver> object, 2140 Handle<JSReceiver> object,
2140 Handle<JSReceiver> receiver, 2141 Handle<JSReceiver> receiver,
2141 LookupResult* result, 2142 LookupResult* result,
2142 Handle<Name> name, 2143 Handle<Name> name,
2143 bool continue_search); 2144 bool continue_search);
2144 2145
2145 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( 2146 MUST_USE_RESULT static MaybeHandle<Object> SetProperty(
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2804 static PropertyAttributes GetElementAttributeWithInterceptor( 2805 static PropertyAttributes GetElementAttributeWithInterceptor(
2805 Handle<JSObject> object, 2806 Handle<JSObject> object,
2806 Handle<JSReceiver> receiver, 2807 Handle<JSReceiver> receiver,
2807 uint32_t index, 2808 uint32_t index,
2808 bool continue_search); 2809 bool continue_search);
2809 static PropertyAttributes GetElementAttributeWithoutInterceptor( 2810 static PropertyAttributes GetElementAttributeWithoutInterceptor(
2810 Handle<JSObject> object, 2811 Handle<JSObject> object,
2811 Handle<JSReceiver> receiver, 2812 Handle<JSReceiver> receiver,
2812 uint32_t index, 2813 uint32_t index,
2813 bool continue_search); 2814 bool continue_search);
2814 static Handle<Object> SetElementWithCallback( 2815 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithCallback(
2815 Handle<JSObject> object, 2816 Handle<JSObject> object,
2816 Handle<Object> structure, 2817 Handle<Object> structure,
2817 uint32_t index, 2818 uint32_t index,
2818 Handle<Object> value, 2819 Handle<Object> value,
2819 Handle<JSObject> holder, 2820 Handle<JSObject> holder,
2820 StrictMode strict_mode); 2821 StrictMode strict_mode);
2821 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithInterceptor( 2822 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithInterceptor(
2822 Handle<JSObject> object, 2823 Handle<JSObject> object,
2823 uint32_t index, 2824 uint32_t index,
2824 Handle<Object> value, 2825 Handle<Object> value,
(...skipping 8194 matching lines...) Expand 10 before | Expand all | Expand 10 after
11019 } else { 11020 } else {
11020 value &= ~(1 << bit_position); 11021 value &= ~(1 << bit_position);
11021 } 11022 }
11022 return value; 11023 return value;
11023 } 11024 }
11024 }; 11025 };
11025 11026
11026 } } // namespace v8::internal 11027 } } // namespace v8::internal
11027 11028
11028 #endif // V8_OBJECTS_H_ 11029 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698