Index: src/builtins/builtins-utils.h |
diff --git a/src/builtins/builtins-utils.h b/src/builtins/builtins-utils.h |
index c2caa136e1725a73f00251889377fcf4b0718637..f84d10a4a734bf23545a59150e38d855065d0c1a 100644 |
--- a/src/builtins/builtins-utils.h |
+++ b/src/builtins/builtins-utils.h |
@@ -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) |
// ---------------------------------------------------------------------------- |