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

Unified Diff: src/objects.h

Issue 1704353002: [runtime] Force internalize names used before lookup in in DescriptorArray and TransitionArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d7d4dfa4e242968d2ba95c5fda2344e8eaae4eff..9e104d5b0b18c573c4c36c65058492f84a160d7c 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -3038,6 +3038,7 @@ class DescriptorArray: public FixedArray {
static const int kDescriptorDetails = 1;
static const int kDescriptorValue = 2;
static const int kDescriptorSize = 3;
+ static const int kEntrySize = kDescriptorSize;
#if defined(DEBUG) || defined(OBJECT_PRINT)
// For our gdb macros, we should perhaps change these in the future.
@@ -8572,10 +8573,7 @@ class Name: public HeapObject {
// If the name is private, it can only name own properties.
inline bool IsPrivate();
- // If the name is a non-flat string, this method returns a flat version of the
- // string. Otherwise it'll just return the input.
- static inline Handle<Name> Flatten(Handle<Name> name,
- PretenureFlag pretenure = NOT_TENURED);
+ inline bool IsUniqueName() const;
// Return a string version of this name that is converted according to the
// rules described in ES6 section 9.2.11.
« src/compiler/access-info.cc ('K') | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698