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

Side by Side Diff: src/objects-inl.h

Issue 48923002: Provide private symbols through internal APIs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Mo comments Created 7 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 | « src/objects-debug.cc ('k') | src/objects-printer.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 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 if (other == this) return true; 2683 if (other == this) return true;
2684 if ((this->IsInternalizedString() && other->IsInternalizedString()) || 2684 if ((this->IsInternalizedString() && other->IsInternalizedString()) ||
2685 this->IsSymbol() || other->IsSymbol()) { 2685 this->IsSymbol() || other->IsSymbol()) {
2686 return false; 2686 return false;
2687 } 2687 }
2688 return String::cast(this)->SlowEquals(String::cast(other)); 2688 return String::cast(this)->SlowEquals(String::cast(other));
2689 } 2689 }
2690 2690
2691 2691
2692 ACCESSORS(Symbol, name, Object, kNameOffset) 2692 ACCESSORS(Symbol, name, Object, kNameOffset)
2693 ACCESSORS(Symbol, flags, Smi, kFlagsOffset)
2694 BOOL_ACCESSORS(Symbol, flags, is_private, kPrivateBit)
2693 2695
2694 2696
2695 bool String::Equals(String* other) { 2697 bool String::Equals(String* other) {
2696 if (other == this) return true; 2698 if (other == this) return true;
2697 if (this->IsInternalizedString() && other->IsInternalizedString()) { 2699 if (this->IsInternalizedString() && other->IsInternalizedString()) {
2698 return false; 2700 return false;
2699 } 2701 }
2700 return SlowEquals(other); 2702 return SlowEquals(other);
2701 } 2703 }
2702 2704
(...skipping 3695 matching lines...) Expand 10 before | Expand all | Expand 10 after
6398 #undef WRITE_UINT32_FIELD 6400 #undef WRITE_UINT32_FIELD
6399 #undef READ_SHORT_FIELD 6401 #undef READ_SHORT_FIELD
6400 #undef WRITE_SHORT_FIELD 6402 #undef WRITE_SHORT_FIELD
6401 #undef READ_BYTE_FIELD 6403 #undef READ_BYTE_FIELD
6402 #undef WRITE_BYTE_FIELD 6404 #undef WRITE_BYTE_FIELD
6403 6405
6404 6406
6405 } } // namespace v8::internal 6407 } } // namespace v8::internal
6406 6408
6407 #endif // V8_OBJECTS_INL_H_ 6409 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698