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

Side by Side Diff: src/objects-body-descriptors-inl.h

Issue 2915793002: [api] Prototype WeakRef implementation
Patch Set: Created 3 years, 6 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/objects.cc ('k') | src/objects-debug.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ 5 #ifndef V8_OBJECTS_BODY_DESCRIPTORS_INL_H_
6 #define V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ 6 #define V8_OBJECTS_BODY_DESCRIPTORS_INL_H_
7 7
8 #include "src/assembler-inl.h" 8 #include "src/assembler-inl.h"
9 #include "src/objects-body-descriptors.h" 9 #include "src/objects-body-descriptors.h"
10 #include "src/transitions.h" 10 #include "src/transitions.h"
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 case JS_REGEXP_TYPE: 550 case JS_REGEXP_TYPE:
551 case JS_GLOBAL_PROXY_TYPE: 551 case JS_GLOBAL_PROXY_TYPE:
552 case JS_GLOBAL_OBJECT_TYPE: 552 case JS_GLOBAL_OBJECT_TYPE:
553 case JS_API_OBJECT_TYPE: 553 case JS_API_OBJECT_TYPE:
554 case JS_SPECIAL_API_OBJECT_TYPE: 554 case JS_SPECIAL_API_OBJECT_TYPE:
555 case JS_MESSAGE_OBJECT_TYPE: 555 case JS_MESSAGE_OBJECT_TYPE:
556 case JS_BOUND_FUNCTION_TYPE: 556 case JS_BOUND_FUNCTION_TYPE:
557 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3); 557 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3);
558 case JS_WEAK_MAP_TYPE: 558 case JS_WEAK_MAP_TYPE:
559 case JS_WEAK_SET_TYPE: 559 case JS_WEAK_SET_TYPE:
560 case JS_WEAK_REF_TYPE:
560 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3); 561 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3);
561 case JS_ARRAY_BUFFER_TYPE: 562 case JS_ARRAY_BUFFER_TYPE:
562 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); 563 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3);
563 case JS_FUNCTION_TYPE: 564 case JS_FUNCTION_TYPE:
564 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3); 565 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3);
565 case ODDBALL_TYPE: 566 case ODDBALL_TYPE:
566 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3); 567 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3);
567 case JS_PROXY_TYPE: 568 case JS_PROXY_TYPE:
568 return Op::template apply<JSProxy::BodyDescriptor>(p1, p2, p3); 569 return Op::template apply<JSProxy::BodyDescriptor>(p1, p2, p3);
569 case FOREIGN_TYPE: 570 case FOREIGN_TYPE:
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 640
640 template <typename ObjectVisitor> 641 template <typename ObjectVisitor>
641 void HeapObject::IterateBodyFast(InstanceType type, int object_size, 642 void HeapObject::IterateBodyFast(InstanceType type, int object_size,
642 ObjectVisitor* v) { 643 ObjectVisitor* v) {
643 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); 644 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v);
644 } 645 }
645 } // namespace internal 646 } // namespace internal
646 } // namespace v8 647 } // namespace v8
647 648
648 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ 649 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698