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

Side by Side Diff: src/objects.h

Issue 229973004: Remove calls to non-handlified version of GetProperty(name). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: update Created 6 years, 8 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.cc ('k') | src/objects-inl.h » ('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 7758 matching lines...) Expand 10 before | Expand all | Expand 10 after
7769 // [global receiver]: the global receiver object of the context 7769 // [global receiver]: the global receiver object of the context
7770 DECL_ACCESSORS(global_receiver, JSObject) 7770 DECL_ACCESSORS(global_receiver, JSObject)
7771 7771
7772 // Retrieve the property cell used to store a property. 7772 // Retrieve the property cell used to store a property.
7773 PropertyCell* GetPropertyCell(LookupResult* result); 7773 PropertyCell* GetPropertyCell(LookupResult* result);
7774 7774
7775 // This is like GetProperty, but is used when you know the lookup won't fail 7775 // This is like GetProperty, but is used when you know the lookup won't fail
7776 // by throwing an exception. This is for the debug and builtins global 7776 // by throwing an exception. This is for the debug and builtins global
7777 // objects, where it is known which properties can be expected to be present 7777 // objects, where it is known which properties can be expected to be present
7778 // on the object. 7778 // on the object.
7779 Object* GetPropertyNoExceptionThrown(Name* key) { 7779 static inline Handle<Object> GetPropertyNoExceptionThrown(
7780 Object* answer = GetProperty(key)->ToObjectUnchecked(); 7780 Handle<GlobalObject> global,
7781 return answer; 7781 Handle<Name> name);
7782 }
7783 7782
7784 // Casting. 7783 // Casting.
7785 static inline GlobalObject* cast(Object* obj); 7784 static inline GlobalObject* cast(Object* obj);
7786 7785
7787 // Layout description. 7786 // Layout description.
7788 static const int kBuiltinsOffset = JSObject::kHeaderSize; 7787 static const int kBuiltinsOffset = JSObject::kHeaderSize;
7789 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; 7788 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize;
7790 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; 7789 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize;
7791 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; 7790 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize;
7792 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize; 7791 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize;
(...skipping 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after
11013 } else { 11012 } else {
11014 value &= ~(1 << bit_position); 11013 value &= ~(1 << bit_position);
11015 } 11014 }
11016 return value; 11015 return value;
11017 } 11016 }
11018 }; 11017 };
11019 11018
11020 } } // namespace v8::internal 11019 } } // namespace v8::internal
11021 11020
11022 #endif // V8_OBJECTS_H_ 11021 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698