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

Side by Side Diff: src/objects.h

Issue 12957004: ES6 symbols: turn symbols into a proper primitive type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 9 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
« no previous file with comments | « src/messages.js ('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 // 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); 1095 static Handle<Object> GetElement(Handle<Object> object, uint32_t index);
1096 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); 1096 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index);
1097 // For use when we know that no exception can be thrown. 1097 // For use when we know that no exception can be thrown.
1098 inline Object* GetElementNoExceptionThrown(uint32_t index); 1098 inline Object* GetElementNoExceptionThrown(uint32_t index);
1099 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, 1099 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver,
1100 uint32_t index); 1100 uint32_t index);
1101 1101
1102 // Return the object's prototype (might be Heap::null_value()). 1102 // Return the object's prototype (might be Heap::null_value()).
1103 Object* GetPrototype(Isolate* isolate); 1103 Object* GetPrototype(Isolate* isolate);
1104 1104
1105 // Return the prototype, or the method holder for a value-like object.
1106 Object* GetDelegate(Isolate* isolate);
1107
1108 // Returns the permanent hash code associated with this object depending on 1105 // Returns the permanent hash code associated with this object depending on
1109 // the actual object type. Might return a failure in case no hash was 1106 // the actual object type. Might return a failure in case no hash was
1110 // created yet or GC was caused by creation. 1107 // created yet or GC was caused by creation.
1111 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag); 1108 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag);
1112 1109
1113 // Checks whether this object has the same value as the given one. This 1110 // Checks whether this object has the same value as the given one. This
1114 // function is implemented according to ES5, section 9.12 and can be used 1111 // function is implemented according to ES5, section 9.12 and can be used
1115 // to implement the Harmony "egal" function. 1112 // to implement the Harmony "egal" function.
1116 bool SameValue(Object* other); 1113 bool SameValue(Object* other);
1117 1114
(...skipping 8143 matching lines...) Expand 10 before | Expand all | Expand 10 after
9261 } else { 9258 } else {
9262 value &= ~(1 << bit_position); 9259 value &= ~(1 << bit_position);
9263 } 9260 }
9264 return value; 9261 return value;
9265 } 9262 }
9266 }; 9263 };
9267 9264
9268 } } // namespace v8::internal 9265 } } // namespace v8::internal
9269 9266
9270 #endif // V8_OBJECTS_H_ 9267 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698