5 #ifndef INCLUDE_V8_WEAK_CALLBACK_INFO_H_
6 #define INCLUDE_V8_WEAK_CALLBACK_INFO_H_
18 static const int kInternalFieldsInWeakCallback = 2;
19 static const int kEmbedderFieldsInWeakCallback = 2;
27 void* embedder_fields[kEmbedderFieldsInWeakCallback],
29 : isolate_(isolate), parameter_(parameter), callback_(callback) {
30 for (
int i = 0; i < kEmbedderFieldsInWeakCallback; ++i) {
31 embedder_fields_[i] = embedder_fields[i];
51 void* embedder_fields_[kEmbedderFieldsInWeakCallback];
72 "and will not be supported going forward.")
77 #ifdef V8_ENABLE_CHECKS
78 if (index < 0 || index >= kEmbedderFieldsInWeakCallback) {
79 api_internal::InternalFieldOutOfBounds(index);
82 return embedder_fields_[index];