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

Side by Side Diff: src/objects.h

Issue 11413068: Fix and clean up treatment of hidden prototypes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 // Set the object's prototype (only JSReceiver and null are allowed). 1509 // Set the object's prototype (only JSReceiver and null are allowed).
1510 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value, 1510 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value,
1511 bool skip_hidden_prototypes); 1511 bool skip_hidden_prototypes);
1512 1512
1513 // Retrieves a permanent object identity hash code. The undefined value might 1513 // Retrieves a permanent object identity hash code. The undefined value might
1514 // be returned in case no hash was created yet and OMIT_CREATION was used. 1514 // be returned in case no hash was created yet and OMIT_CREATION was used.
1515 inline MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); 1515 inline MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag);
1516 1516
1517 // Lookup a property. If found, the result is valid and has 1517 // Lookup a property. If found, the result is valid and has
1518 // detailed information. 1518 // detailed information.
1519 void LocalLookup(String* name, LookupResult* result); 1519 void LocalLookup(String* name, LookupResult* result,
1520 bool search_hidden_prototypes = false);
1520 void Lookup(String* name, LookupResult* result); 1521 void Lookup(String* name, LookupResult* result);
1521 1522
1522 protected: 1523 protected:
1523 Smi* GenerateIdentityHash(); 1524 Smi* GenerateIdentityHash();
1524 1525
1525 private: 1526 private:
1526 PropertyAttributes GetPropertyAttributeForResult(JSReceiver* receiver, 1527 PropertyAttributes GetPropertyAttributeForResult(JSReceiver* receiver,
1527 LookupResult* result, 1528 LookupResult* result,
1528 String* name, 1529 String* name,
1529 bool continue_search); 1530 bool continue_search);
(...skipping 7472 matching lines...) Expand 10 before | Expand all | Expand 10 after
9002 } else { 9003 } else {
9003 value &= ~(1 << bit_position); 9004 value &= ~(1 << bit_position);
9004 } 9005 }
9005 return value; 9006 return value;
9006 } 9007 }
9007 }; 9008 };
9008 9009
9009 } } // namespace v8::internal 9010 } } // namespace v8::internal
9010 9011
9011 #endif // V8_OBJECTS_H_ 9012 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698