| 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 3386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3397 | 3397 |
| 3398 // Create the execution state. | 3398 // Create the execution state. |
| 3399 bool caught_exception = false; | 3399 bool caught_exception = false; |
| 3400 Handle<Object> exec_state = MakeExecutionState(&caught_exception); | 3400 Handle<Object> exec_state = MakeExecutionState(&caught_exception); |
| 3401 if (caught_exception) { | 3401 if (caught_exception) { |
| 3402 return isolate_->factory()->undefined_value(); | 3402 return isolate_->factory()->undefined_value(); |
| 3403 } | 3403 } |
| 3404 | 3404 |
| 3405 Handle<Object> argv[] = { exec_state, data }; | 3405 Handle<Object> argv[] = { exec_state, data }; |
| 3406 Handle<Object> result = Execution::Call( | 3406 Handle<Object> result = Execution::Call( |
| 3407 isolate_, |
| 3407 fun, | 3408 fun, |
| 3408 Handle<Object>(isolate_->debug()->debug_context_->global_proxy(), | 3409 Handle<Object>(isolate_->debug()->debug_context_->global_proxy(), |
| 3409 isolate_), | 3410 isolate_), |
| 3410 ARRAY_SIZE(argv), | 3411 ARRAY_SIZE(argv), |
| 3411 argv, | 3412 argv, |
| 3412 pending_exception); | 3413 pending_exception); |
| 3413 return result; | 3414 return result; |
| 3414 } | 3415 } |
| 3415 | 3416 |
| 3416 | 3417 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3842 { | 3843 { |
| 3843 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3844 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
| 3844 isolate_->debugger()->CallMessageDispatchHandler(); | 3845 isolate_->debugger()->CallMessageDispatchHandler(); |
| 3845 } | 3846 } |
| 3846 } | 3847 } |
| 3847 } | 3848 } |
| 3848 | 3849 |
| 3849 #endif // ENABLE_DEBUGGER_SUPPORT | 3850 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3850 | 3851 |
| 3851 } } // namespace v8::internal | 3852 } } // namespace v8::internal |
| OLD | NEW |