| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 60e3379e15a4d848aad2fed45fdadd58c14d7354..7c51b534653804daefca4615139e4a95fa312f51 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1344,7 +1344,7 @@ void Isolate::ReportPendingMessages() {
|
| // since the GenerateThrowOutOfMemory stub cannot make a RuntimeCall to
|
| // set it.
|
| HandleScope scope;
|
| - if (thread_local_top_.pending_exception_ == Failure::OutOfMemoryException()) {
|
| + if (thread_local_top_.pending_exception_->IsOutOfMemory()) {
|
| context()->mark_out_of_memory();
|
| } else if (thread_local_top_.pending_exception_ ==
|
| heap()->termination_exception()) {
|
| @@ -1375,7 +1375,7 @@ void Isolate::ReportPendingMessages() {
|
| MessageLocation Isolate::GetMessageLocation() {
|
| ASSERT(has_pending_exception());
|
|
|
| - if (thread_local_top_.pending_exception_ != Failure::OutOfMemoryException() &&
|
| + if (!thread_local_top_.pending_exception_->IsOutOfMemory() &&
|
| thread_local_top_.pending_exception_ != heap()->termination_exception() &&
|
| thread_local_top_.has_pending_message_ &&
|
| !thread_local_top_.pending_message_obj_->IsTheHole() &&
|
| @@ -1889,7 +1889,7 @@ void Isolate::PropagatePendingExceptionToExternalTryCatch() {
|
|
|
| if (!external_caught) return;
|
|
|
| - if (thread_local_top_.pending_exception_ == Failure::OutOfMemoryException()) {
|
| + if (thread_local_top_.pending_exception_->IsOutOfMemory()) {
|
| // Do not propagate OOM exception: we should kill VM asap.
|
| } else if (thread_local_top_.pending_exception_ ==
|
| heap()->termination_exception()) {
|
|
|