Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index c640a29c10db12c9959479b72d4b8f7afabeb89e..30852adfa9fcc8041dd29677831f8aeb4562f898 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2494,16 +2494,6 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
__ call(ebx); |
// Result is in eax or edx:eax - do not destroy these registers! |
- // Runtime functions should not return 'the hole'. Allowing it to escape may |
- // lead to crashes in the IC code later. |
- if (FLAG_debug_code) { |
- Label okay; |
- __ cmp(eax, isolate()->factory()->the_hole_value()); |
- __ j(not_equal, &okay, Label::kNear); |
- __ int3(); |
- __ bind(&okay); |
- } |
- |
// Check result for exception sentinel. |
Label exception_returned; |
__ cmp(eax, isolate()->factory()->exception()); |