Index: src/arguments.h |
diff --git a/src/arguments.h b/src/arguments.h |
index 42d444b20723df62c201bcaf1600bd5952a6ad5e..2311870326f6a4f696489ef43cd4e29bb0bfe8f0 100644 |
--- a/src/arguments.h |
+++ b/src/arguments.h |
@@ -220,17 +220,14 @@ class FunctionCallbackArguments |
static const int kCalleeIndex = T::kCalleeIndex; |
static const int kContextSaveIndex = T::kContextSaveIndex; |
- FunctionCallbackArguments(internal::Isolate* isolate, |
- internal::Object* data, |
- internal::JSFunction* callee, |
- internal::Object* holder, |
- internal::Object** argv, |
- int argc, |
- bool is_construct_call) |
- : Super(isolate), |
- argv_(argv), |
- argc_(argc), |
- is_construct_call_(is_construct_call) { |
+ FunctionCallbackArguments(internal::Isolate* isolate, internal::Object* data, |
+ internal::HeapObject* callee, |
+ internal::Object* holder, internal::Object** argv, |
+ int argc, bool is_construct_call) |
+ : Super(isolate), |
+ argv_(argv), |
+ argc_(argc), |
+ is_construct_call_(is_construct_call) { |
Object** values = begin(); |
values[T::kDataIndex] = data; |
values[T::kCalleeIndex] = callee; |
@@ -242,7 +239,8 @@ class FunctionCallbackArguments |
values[T::kReturnValueDefaultValueIndex] = |
isolate->heap()->the_hole_value(); |
values[T::kReturnValueIndex] = isolate->heap()->the_hole_value(); |
- DCHECK(values[T::kCalleeIndex]->IsJSFunction()); |
+ DCHECK(values[T::kCalleeIndex]->IsJSFunction() || |
+ values[T::kCalleeIndex]->IsFunctionTemplateInfo()); |
DCHECK(values[T::kHolderIndex]->IsHeapObject()); |
DCHECK(values[T::kIsolateIndex]->IsSmi()); |
} |