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

Side by Side Diff: src/objects.h

Issue 2639333004: [pattern rewriter] Only desugar to call %ToName on computed properties (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/parsing/pattern-rewriter.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 1996
1997 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( 1997 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain(
1998 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); 1998 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto);
1999 1999
2000 // Reads all enumerable own properties of source and adds them to 2000 // Reads all enumerable own properties of source and adds them to
2001 // target, using either Set or CreateDataProperty depending on the 2001 // target, using either Set or CreateDataProperty depending on the
2002 // use_set argument. This only copies values not present in the 2002 // use_set argument. This only copies values not present in the
2003 // maybe_excluded_properties list. 2003 // maybe_excluded_properties list.
2004 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( 2004 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties(
2005 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, 2005 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source,
2006 const ScopedVector<Handle<Name>>* excluded_properties = nullptr, 2006 const ScopedVector<Handle<Object>>* excluded_properties = nullptr,
2007 bool use_set = true); 2007 bool use_set = true);
2008 2008
2009 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 2009 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
2010 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); 2010 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
2011 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 2011 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
2012 Handle<JSReceiver> object, Handle<Name> name); 2012 Handle<JSReceiver> object, Handle<Name> name);
2013 MUST_USE_RESULT static inline Maybe<bool> HasElement( 2013 MUST_USE_RESULT static inline Maybe<bool> HasElement(
2014 Handle<JSReceiver> object, uint32_t index); 2014 Handle<JSReceiver> object, uint32_t index);
2015 2015
2016 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( 2016 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
(...skipping 9634 matching lines...) Expand 10 before | Expand all | Expand 10 after
11651 } 11651 }
11652 }; 11652 };
11653 11653
11654 11654
11655 } // NOLINT, false-positive due to second-order macros. 11655 } // NOLINT, false-positive due to second-order macros.
11656 } // NOLINT, false-positive due to second-order macros. 11656 } // NOLINT, false-positive due to second-order macros.
11657 11657
11658 #include "src/objects/object-macros-undef.h" 11658 #include "src/objects/object-macros-undef.h"
11659 11659
11660 #endif // V8_OBJECTS_H_ 11660 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/parsing/pattern-rewriter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698