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

Side by Side Diff: src/objects.h

Issue 12319144: Avoid TLS accesses in Object::Lookup and Object::GetPrototype. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplified Object::GetPrototype a bit 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/mips/stub-cache-mips.cc ('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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 JSReceiver* getter); 1012 JSReceiver* getter);
1013 1013
1014 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); 1014 static Handle<Object> GetElement(Handle<Object> object, uint32_t index);
1015 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); 1015 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index);
1016 // For use when we know that no exception can be thrown. 1016 // For use when we know that no exception can be thrown.
1017 inline Object* GetElementNoExceptionThrown(uint32_t index); 1017 inline Object* GetElementNoExceptionThrown(uint32_t index);
1018 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, 1018 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver,
1019 uint32_t index); 1019 uint32_t index);
1020 1020
1021 // Return the object's prototype (might be Heap::null_value()). 1021 // Return the object's prototype (might be Heap::null_value()).
1022 Object* GetPrototype(); 1022 Object* GetPrototype(Isolate* isolate);
1023 1023
1024 // Returns the permanent hash code associated with this object depending on 1024 // Returns the permanent hash code associated with this object depending on
1025 // the actual object type. Might return a failure in case no hash was 1025 // the actual object type. Might return a failure in case no hash was
1026 // created yet or GC was caused by creation. 1026 // created yet or GC was caused by creation.
1027 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag); 1027 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag);
1028 1028
1029 // Checks whether this object has the same value as the given one. This 1029 // Checks whether this object has the same value as the given one. This
1030 // function is implemented according to ES5, section 9.12 and can be used 1030 // function is implemented according to ES5, section 9.12 and can be used
1031 // to implement the Harmony "egal" function. 1031 // to implement the Harmony "egal" function.
1032 bool SameValue(Object* other); 1032 bool SameValue(Object* other);
(...skipping 7983 matching lines...) Expand 10 before | Expand all | Expand 10 after
9016 } else { 9016 } else {
9017 value &= ~(1 << bit_position); 9017 value &= ~(1 << bit_position);
9018 } 9018 }
9019 return value; 9019 return value;
9020 } 9020 }
9021 }; 9021 };
9022 9022
9023 } } // namespace v8::internal 9023 } } // namespace v8::internal
9024 9024
9025 #endif // V8_OBJECTS_H_ 9025 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698