Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: src/debug.cc

Issue 23661004: add isolate parameter for Execution::Call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/execution.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698