[runtime] temporarily transform IsContext check from DCHECK to CHECK
We are enabling this trial on canary to see if we can flush out some missing context restores. BUG= Review-Url: https://codereview.chromium.org/2164633002 Cr-Commit-Position: refs/heads/master@{#37875}
This commit is contained in:
parent
263131cf2a
commit
ec94ad400d
@ -81,6 +81,7 @@ double ClobberDoubleRegisters(double x1, double x2, double x3, double x4);
|
||||
|
||||
// TODO(cbruni): add global flag to check whether any tracing events have been
|
||||
// enabled.
|
||||
// TODO(cbruni): Convert the IsContext CHECK back to a DCHECK.
|
||||
#define RUNTIME_FUNCTION_RETURNS_TYPE(Type, Name) \
|
||||
static INLINE(Type __RT_impl_##Name(Arguments args, Isolate* isolate)); \
|
||||
\
|
||||
@ -94,7 +95,7 @@ double ClobberDoubleRegisters(double x1, double x2, double x3, double x4);
|
||||
} \
|
||||
\
|
||||
Type Name(int args_length, Object** args_object, Isolate* isolate) { \
|
||||
DCHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \
|
||||
CHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \
|
||||
CLOBBER_DOUBLE_REGISTERS(); \
|
||||
if (FLAG_runtime_call_stats) { \
|
||||
return Stats_##Name(args_length, args_object, isolate); \
|
||||
|
@ -76,30 +76,31 @@ class BuiltinArguments : public Arguments {
|
||||
// through the BuiltinArguments object args.
|
||||
// TODO(cbruni): add global flag to check whether any tracing events have been
|
||||
// enabled.
|
||||
#define BUILTIN(name) \
|
||||
MUST_USE_RESULT static Object* Builtin_Impl_##name(BuiltinArguments args, \
|
||||
Isolate* isolate); \
|
||||
\
|
||||
V8_NOINLINE static Object* Builtin_Impl_Stats_##name( \
|
||||
int args_length, Object** args_object, Isolate* isolate) { \
|
||||
BuiltinArguments args(args_length, args_object); \
|
||||
RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::Builtin_##name); \
|
||||
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), \
|
||||
"V8.Builtin_" #name); \
|
||||
return Builtin_Impl_##name(args, isolate); \
|
||||
} \
|
||||
\
|
||||
MUST_USE_RESULT Object* Builtin_##name( \
|
||||
int args_length, Object** args_object, Isolate* isolate) { \
|
||||
DCHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \
|
||||
if (FLAG_runtime_call_stats) { \
|
||||
return Builtin_Impl_Stats_##name(args_length, args_object, isolate); \
|
||||
} \
|
||||
BuiltinArguments args(args_length, args_object); \
|
||||
return Builtin_Impl_##name(args, isolate); \
|
||||
} \
|
||||
\
|
||||
MUST_USE_RESULT static Object* Builtin_Impl_##name(BuiltinArguments args, \
|
||||
// TODO(cbruni): Convert the IsContext CHECK back to a DCHECK.
|
||||
#define BUILTIN(name) \
|
||||
MUST_USE_RESULT static Object* Builtin_Impl_##name(BuiltinArguments args, \
|
||||
Isolate* isolate); \
|
||||
\
|
||||
V8_NOINLINE static Object* Builtin_Impl_Stats_##name( \
|
||||
int args_length, Object** args_object, Isolate* isolate) { \
|
||||
BuiltinArguments args(args_length, args_object); \
|
||||
RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::Builtin_##name); \
|
||||
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), \
|
||||
"V8.Builtin_" #name); \
|
||||
return Builtin_Impl_##name(args, isolate); \
|
||||
} \
|
||||
\
|
||||
MUST_USE_RESULT Object* Builtin_##name( \
|
||||
int args_length, Object** args_object, Isolate* isolate) { \
|
||||
CHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \
|
||||
if (FLAG_runtime_call_stats) { \
|
||||
return Builtin_Impl_Stats_##name(args_length, args_object, isolate); \
|
||||
} \
|
||||
BuiltinArguments args(args_length, args_object); \
|
||||
return Builtin_Impl_##name(args, isolate); \
|
||||
} \
|
||||
\
|
||||
MUST_USE_RESULT static Object* Builtin_Impl_##name(BuiltinArguments args, \
|
||||
Isolate* isolate)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user