Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 9d317ca535f9630d97ccf08d920adee1e4284ca4..b4af94daadffea1aa597bc8635a4e3d91008a4d5 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14617,14 +14617,27 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_SetObserverDeliveryPending) { |
- SealHandleScope shs(isolate); |
- ASSERT(args.length() == 0); |
- isolate->set_observer_delivery_pending(true); |
+// For testing only. |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_FailHard) { |
Michael Starzinger
2013/11/15 09:37:20
This is similar to the existing Runtime_Abort, can
rossberg
2013/11/15 10:00:58
Done.
|
+ HandleScope scope(isolate); |
+ ASSERT(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(String, message, 0); |
+ PrintF("%s\n", *message->ToCString()); |
+ CHECK(!"FailHard"); |
return isolate->heap()->undefined_value(); |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotasksPending) { |
+ SealHandleScope shs(isolate); |
+ ASSERT(args.length() == 1); |
+ CONVERT_BOOLEAN_ARG_CHECKED(new_state, 0); |
+ bool old_state = isolate->microtasks_pending(); |
+ isolate->set_microtasks_pending(new_state); |
+ return isolate->heap()->ToBoolean(old_state); |
+} |
+ |
+ |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetObservationState) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 0); |