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

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: formatting Created 5 years, 11 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d1e5acff893d65b008606969db7241a873602656..960df390e1fabc10fbf6ecba987dd1d4fb630af0 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);
@@ -1938,12 +1938,14 @@ class JSObject: public JSReceiver {
StrictMode strict_mode,
bool check_prototype);
- MUST_USE_RESULT static MaybeHandle<Object> SetOwnElement(
- Handle<JSObject> object,
- uint32_t index,
- Handle<Object> value,
+ MUST_USE_RESULT static inline MaybeHandle<Object> SetOwnElement(
+ Handle<JSObject> object, uint32_t index, Handle<Object> value,
StrictMode strict_mode);
+ MUST_USE_RESULT static MaybeHandle<Object> SetOwnElement(
+ Handle<JSObject> object, uint32_t index, Handle<Object> value,
+ PropertyAttributes attributes, StrictMode strict_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,
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/objects.cc » ('j') | src/runtime/runtime-object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698