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

Side by Side Diff: src/objects.h

Issue 7911: Various API changes (Closed)
Patch Set: "Various API changes Created 12 years, 2 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
« no previous file with comments | « src/handles.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 // Oddball testing. 650 // Oddball testing.
651 INLINE(bool IsUndefined()); 651 INLINE(bool IsUndefined());
652 INLINE(bool IsTheHole()); 652 INLINE(bool IsTheHole());
653 INLINE(bool IsNull()); 653 INLINE(bool IsNull());
654 INLINE(bool IsTrue()); 654 INLINE(bool IsTrue());
655 INLINE(bool IsFalse()); 655 INLINE(bool IsFalse());
656 656
657 // Extract the number. 657 // Extract the number.
658 inline double Number(); 658 inline double Number();
659 659
660 inline bool HasSpecificClassOf(String* name);
661
660 Object* ToObject(); // ECMA-262 9.9. 662 Object* ToObject(); // ECMA-262 9.9.
661 Object* ToBoolean(); // ECMA-262 9.2. 663 Object* ToBoolean(); // ECMA-262 9.2.
662 664
663 // Convert to a JSObject if needed. 665 // Convert to a JSObject if needed.
664 // global_context is used when creating wrapper object. 666 // global_context is used when creating wrapper object.
665 Object* ToObject(Context* global_context); 667 Object* ToObject(Context* global_context);
666 668
667 // Converts this to a Smi if possible. 669 // Converts this to a Smi if possible.
668 // Failure is returned otherwise. 670 // Failure is returned otherwise.
669 inline Object* ToSmi(); 671 inline Object* ToSmi();
(...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after
4079 } else { 4081 } else {
4080 value &= ~(1 << bit_position); 4082 value &= ~(1 << bit_position);
4081 } 4083 }
4082 return value; 4084 return value;
4083 } 4085 }
4084 }; 4086 };
4085 4087
4086 } } // namespace v8::internal 4088 } } // namespace v8::internal
4087 4089
4088 #endif // V8_OBJECTS_H_ 4090 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698