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

Side by Side Diff: src/objects.h

Issue 9616016: Make the runtime entry for setting/changing accessors "atomic". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review comments. Created 8 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/full-codegen-mips.cc ('k') | src/regexp.js » ('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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 847
848 // Object is the abstract superclass for all classes in the 848 // Object is the abstract superclass for all classes in the
849 // object hierarchy. 849 // object hierarchy.
850 // Object does not use any virtual functions to avoid the 850 // Object does not use any virtual functions to avoid the
851 // allocation of the C++ vtable. 851 // allocation of the C++ vtable.
852 // Since Smi and Failure are subclasses of Object no 852 // Since Smi and Failure are subclasses of Object no
853 // data members can be present in Object. 853 // data members can be present in Object.
854 class Object : public MaybeObject { 854 class Object : public MaybeObject {
855 public: 855 public:
856 // Type testing. 856 // Type testing.
857 bool IsObject() { return true; }
858
857 #define IS_TYPE_FUNCTION_DECL(type_) inline bool Is##type_(); 859 #define IS_TYPE_FUNCTION_DECL(type_) inline bool Is##type_();
858 OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) 860 OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL)
859 HEAP_OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) 861 HEAP_OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL)
860 #undef IS_TYPE_FUNCTION_DECL 862 #undef IS_TYPE_FUNCTION_DECL
861 863
862 inline bool IsFixedArrayBase(); 864 inline bool IsFixedArrayBase();
863 865
864 // Returns true if this object is an instance of the specified 866 // Returns true if this object is an instance of the specified
865 // function template. 867 // function template.
866 inline bool IsInstanceOf(FunctionTemplateInfo* type); 868 inline bool IsInstanceOf(FunctionTemplateInfo* type);
(...skipping 7597 matching lines...) Expand 10 before | Expand all | Expand 10 after
8464 } else { 8466 } else {
8465 value &= ~(1 << bit_position); 8467 value &= ~(1 << bit_position);
8466 } 8468 }
8467 return value; 8469 return value;
8468 } 8470 }
8469 }; 8471 };
8470 8472
8471 } } // namespace v8::internal 8473 } } // namespace v8::internal
8472 8474
8473 #endif // V8_OBJECTS_H_ 8475 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698