OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // Call the function through the right JS entry stub. | 112 // Call the function through the right JS entry stub. |
113 byte* function_entry = function->code()->entry(); | 113 byte* function_entry = function->code()->entry(); |
114 JSFunction* func = *function; | 114 JSFunction* func = *function; |
115 Object* recv = *receiver; | 115 Object* recv = *receiver; |
116 Object*** argv = reinterpret_cast<Object***>(args); | 116 Object*** argv = reinterpret_cast<Object***>(args); |
117 value = | 117 value = |
118 CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv); | 118 CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv); |
119 } | 119 } |
120 | 120 |
121 #ifdef DEBUG | 121 #ifdef VERIFY_HEAP |
122 value->Verify(); | 122 value->Verify(); |
123 #endif | 123 #endif |
124 | 124 |
125 // Update the pending exception flag and return the value. | 125 // Update the pending exception flag and return the value. |
126 *has_pending_exception = value->IsException(); | 126 *has_pending_exception = value->IsException(); |
127 ASSERT(*has_pending_exception == Isolate::Current()->has_pending_exception()); | 127 ASSERT(*has_pending_exception == Isolate::Current()->has_pending_exception()); |
128 if (*has_pending_exception) { | 128 if (*has_pending_exception) { |
129 isolate->ReportPendingMessages(); | 129 isolate->ReportPendingMessages(); |
130 if (isolate->pending_exception() == Failure::OutOfMemoryException()) { | 130 if (isolate->pending_exception() == Failure::OutOfMemoryException()) { |
131 if (!isolate->ignore_out_of_memory()) { | 131 if (!isolate->ignore_out_of_memory()) { |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 } | 961 } |
962 if (stack_guard->IsInterrupted()) { | 962 if (stack_guard->IsInterrupted()) { |
963 stack_guard->Continue(INTERRUPT); | 963 stack_guard->Continue(INTERRUPT); |
964 return isolate->StackOverflow(); | 964 return isolate->StackOverflow(); |
965 } | 965 } |
966 return isolate->heap()->undefined_value(); | 966 return isolate->heap()->undefined_value(); |
967 } | 967 } |
968 | 968 |
969 | 969 |
970 } } // namespace v8::internal | 970 } } // namespace v8::internal |
OLD | NEW |