Back out bug 712939 for not getting fully reviewed.

This commit is contained in:
Andrew McCreight 2014-02-20 06:40:56 -08:00
parent 29702b130e
commit 57d072a733
3 changed files with 3 additions and 6 deletions

View File

@ -70,8 +70,7 @@ namespace mozilla {
namespace plugins {
namespace parent {
static_assert(sizeof(NPIdentifier) == sizeof(jsid),
"NPIdentifier must be binary compatible with jsid.");
JS_STATIC_ASSERT(sizeof(NPIdentifier) == sizeof(jsid));
inline jsid
NPIdentifierToJSId(NPIdentifier id)

View File

@ -382,8 +382,7 @@ public:
return;
}
static_assert(sizeof(mStack[0]) == sizeof(js::ProfileEntry),
"mStack must be binary compatible with js::ProfileEntry.");
JS_STATIC_ASSERT(sizeof(mStack[0]) == sizeof(js::ProfileEntry));
js::SetRuntimeProfilingStack(runtime,
(js::ProfileEntry*) mStack,
(uint32_t*) &mStackPointer,

View File

@ -549,8 +549,7 @@ CycleCollectedJSRuntime::DescribeGCThing(bool aIsMarked, void* aThing,
"BaseShape",
"TypeObject",
};
static_assert(MOZ_ARRAY_LENGTH(trace_types) == JSTRACE_LAST + 1,
"Length of trace_types should match the number of cases of JSGCTraceKind.");
JS_STATIC_ASSERT(MOZ_ARRAY_LENGTH(trace_types) == JSTRACE_LAST + 1);
JS_snprintf(name, sizeof(name), "JS %s", trace_types[aTraceKind]);
}