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

Unified Diff: src/objects.h

Issue 896643003: Class methods should be non enumerable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use LanguageMode Created 5 years, 10 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/mips64/full-codegen-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »
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 38b4b82d2ebf9218bff916a7c20b7191ec345b28..286f6fb798a0bb5175f962ac54a48366782cfd19 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1113,7 +1113,7 @@ class Object {
Handle<Context> context);
// Converts this to a Smi if possible.
- static MUST_USE_RESULT inline MaybeHandle<Smi> ToSmi(Isolate* isolate,
+ MUST_USE_RESULT static inline MaybeHandle<Smi> ToSmi(Isolate* isolate,
Handle<Object> object);
MUST_USE_RESULT static MaybeHandle<Object> GetProperty(LookupIterator* it);
@@ -1932,10 +1932,14 @@ class JSObject: public JSReceiver {
Handle<JSObject> object, uint32_t index, Handle<Object> value,
LanguageMode language_mode, bool check_prototype);
- MUST_USE_RESULT static MaybeHandle<Object> SetOwnElement(
+ MUST_USE_RESULT static inline MaybeHandle<Object> SetOwnElement(
Handle<JSObject> object, uint32_t index, Handle<Object> value,
LanguageMode language_mode);
+ MUST_USE_RESULT static MaybeHandle<Object> SetOwnElement(
+ Handle<JSObject> object, uint32_t index, Handle<Object> value,
+ PropertyAttributes attributes, LanguageMode language_mode);
+
// Empty handle is returned if the element cannot be set to the given value.
MUST_USE_RESULT static MaybeHandle<Object> SetElement(
Handle<JSObject> object, uint32_t index, Handle<Object> value,
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698