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

Side by Side Diff: src/objects.h

Issue 468163002: Use LookupIterator in SetAccessor / DefineAccessor and remove "search_hidden_prototypes" from Looku… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
« src/lookup.h ('K') | « src/lookup.h ('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 // 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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 // be returned in case no hash was created yet. 2003 // be returned in case no hash was created yet.
2004 inline Object* GetIdentityHash(); 2004 inline Object* GetIdentityHash();
2005 2005
2006 // Retrieves a permanent object identity hash code. May create and store a 2006 // Retrieves a permanent object identity hash code. May create and store a
2007 // hash code if needed and none exists. 2007 // hash code if needed and none exists.
2008 inline static Handle<Smi> GetOrCreateIdentityHash( 2008 inline static Handle<Smi> GetOrCreateIdentityHash(
2009 Handle<JSReceiver> object); 2009 Handle<JSReceiver> object);
2010 2010
2011 // Lookup a property. If found, the result is valid and has 2011 // Lookup a property. If found, the result is valid and has
2012 // detailed information. 2012 // detailed information.
2013 void LookupOwn(Handle<Name> name, LookupResult* result, 2013 void LookupOwn(Handle<Name> name, LookupResult* result);
2014 bool search_hidden_prototypes = false);
2015 void Lookup(Handle<Name> name, LookupResult* result); 2014 void Lookup(Handle<Name> name, LookupResult* result);
2016 2015
2017 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; 2016 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS };
2018 2017
2019 // Computes the enumerable keys for a JSObject. Used for implementing 2018 // Computes the enumerable keys for a JSObject. Used for implementing
2020 // "for (n in object) { }". 2019 // "for (n in object) { }".
2021 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( 2020 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys(
2022 Handle<JSReceiver> object, 2021 Handle<JSReceiver> object,
2023 KeyCollectionType type); 2022 KeyCollectionType type);
2024 2023
(...skipping 9201 matching lines...) Expand 10 before | Expand all | Expand 10 after
11226 } else { 11225 } else {
11227 value &= ~(1 << bit_position); 11226 value &= ~(1 << bit_position);
11228 } 11227 }
11229 return value; 11228 return value;
11230 } 11229 }
11231 }; 11230 };
11232 11231
11233 } } // namespace v8::internal 11232 } } // namespace v8::internal
11234 11233
11235 #endif // V8_OBJECTS_H_ 11234 #endif // V8_OBJECTS_H_
OLDNEW
« src/lookup.h ('K') | « src/lookup.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698