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

Side by Side Diff: src/objects.h

Issue 64223010: Harmony promises (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ignore multiple resolution Created 7 years, 1 month 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
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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 // function template. 1355 // function template.
1356 inline bool IsInstanceOf(FunctionTemplateInfo* type); 1356 inline bool IsInstanceOf(FunctionTemplateInfo* type);
1357 1357
1358 inline bool IsStruct(); 1358 inline bool IsStruct();
1359 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); 1359 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name();
1360 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) 1360 STRUCT_LIST(DECLARE_STRUCT_PREDICATE)
1361 #undef DECLARE_STRUCT_PREDICATE 1361 #undef DECLARE_STRUCT_PREDICATE
1362 1362
1363 INLINE(bool IsSpecObject()); 1363 INLINE(bool IsSpecObject());
1364 INLINE(bool IsSpecFunction()); 1364 INLINE(bool IsSpecFunction());
1365 bool IsCallable();
1365 1366
1366 // Oddball testing. 1367 // Oddball testing.
1367 INLINE(bool IsUndefined()); 1368 INLINE(bool IsUndefined());
1368 INLINE(bool IsNull()); 1369 INLINE(bool IsNull());
1369 INLINE(bool IsTheHole()); // Shadows MaybeObject's implementation. 1370 INLINE(bool IsTheHole()); // Shadows MaybeObject's implementation.
1370 INLINE(bool IsUninitialized()); 1371 INLINE(bool IsUninitialized());
1371 INLINE(bool IsTrue()); 1372 INLINE(bool IsTrue());
1372 INLINE(bool IsFalse()); 1373 INLINE(bool IsFalse());
1373 inline bool IsArgumentsMarker(); 1374 inline bool IsArgumentsMarker();
1374 inline bool NonFailureIsHeapObject(); 1375 inline bool NonFailureIsHeapObject();
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 public: 2645 public:
2645 static inline int SizeOf(Map* map, HeapObject* object); 2646 static inline int SizeOf(Map* map, HeapObject* object);
2646 }; 2647 };
2647 2648
2648 // Enqueue change record for Object.observe. May cause GC. 2649 // Enqueue change record for Object.observe. May cause GC.
2649 static void EnqueueChangeRecord(Handle<JSObject> object, 2650 static void EnqueueChangeRecord(Handle<JSObject> object,
2650 const char* type, 2651 const char* type,
2651 Handle<Name> name, 2652 Handle<Name> name,
2652 Handle<Object> old_value); 2653 Handle<Object> old_value);
2653 2654
2654 // Deliver change records to observers. May cause GC.
2655 static void DeliverChangeRecords(Isolate* isolate);
2656
2657 private: 2655 private:
2658 friend class DictionaryElementsAccessor; 2656 friend class DictionaryElementsAccessor;
2659 friend class JSReceiver; 2657 friend class JSReceiver;
2660 friend class Object; 2658 friend class Object;
2661 2659
2662 // Used from Object::GetProperty(). 2660 // Used from Object::GetProperty().
2663 static Handle<Object> GetPropertyWithFailedAccessCheck( 2661 static Handle<Object> GetPropertyWithFailedAccessCheck(
2664 Handle<JSObject> object, 2662 Handle<JSObject> object,
2665 Handle<Object> receiver, 2663 Handle<Object> receiver,
2666 LookupResult* result, 2664 LookupResult* result,
(...skipping 7821 matching lines...) Expand 10 before | Expand all | Expand 10 after
10488 } else { 10486 } else {
10489 value &= ~(1 << bit_position); 10487 value &= ~(1 << bit_position);
10490 } 10488 }
10491 return value; 10489 return value;
10492 } 10490 }
10493 }; 10491 };
10494 10492
10495 } } // namespace v8::internal 10493 } } // namespace v8::internal
10496 10494
10497 #endif // V8_OBJECTS_H_ 10495 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/objects.cc » ('j') | src/promise.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698