Commit 56a9df6b authored by mstarzinger's avatar mstarzinger Committed by Commit bot

Update SharedFunctionInfoVerify to new object model.

The builtin function ID has been moved from the [function_data] field to
the [function_location] field. This just updates existing verification
functionality to be in sync.

R=rmcilroy@chromium.org

Review-Url: https://codereview.chromium.org/2064723002
Cr-Commit-Position: refs/heads/master@{#36951}
parent 6470ddad
...@@ -573,10 +573,13 @@ void SharedFunctionInfo::SharedFunctionInfoVerify() { ...@@ -573,10 +573,13 @@ void SharedFunctionInfo::SharedFunctionInfoVerify() {
VerifyObjectField(kScopeInfoOffset); VerifyObjectField(kScopeInfoOffset);
VerifyObjectField(kInstanceClassNameOffset); VerifyObjectField(kInstanceClassNameOffset);
CHECK(function_data()->IsUndefined(GetIsolate()) || IsApiFunction() || CHECK(function_data()->IsUndefined(GetIsolate()) || IsApiFunction() ||
HasBuiltinFunctionId() || HasBytecodeArray()); HasBytecodeArray());
VerifyObjectField(kFunctionDataOffset); VerifyObjectField(kFunctionDataOffset);
VerifyObjectField(kScriptOffset); VerifyObjectField(kScriptOffset);
VerifyObjectField(kDebugInfoOffset); VerifyObjectField(kDebugInfoOffset);
CHECK(function_identifier()->IsUndefined(GetIsolate()) ||
HasBuiltinFunctionId() || HasInferredName());
VerifyObjectField(kFunctionIdentifierOffset);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment