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

Side by Side Diff: src/liveedit.cc

Issue 668246: Check that function being patched has no activations on any thread stack (Closed)
Patch Set: format Created 10 years, 9 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
« no previous file with comments | « src/liveedit.h ('k') | src/liveedit-delay.js » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 int current_parent_index_; 313 int current_parent_index_;
314 }; 314 };
315 315
316 static FunctionInfoListener* active_function_info_listener = NULL; 316 static FunctionInfoListener* active_function_info_listener = NULL;
317 317
318 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script, 318 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script,
319 Handle<String> source) { 319 Handle<String> source) {
320 CompilationZoneScope zone_scope(DELETE_ON_EXIT); 320 CompilationZoneScope zone_scope(DELETE_ON_EXIT);
321 321
322 FunctionInfoListener listener; 322 FunctionInfoListener listener;
323 Handle<Object> original_source = Handle<Object>(script->source());
323 script->set_source(*source); 324 script->set_source(*source);
324 active_function_info_listener = &listener; 325 active_function_info_listener = &listener;
325 Handle<Object> original_source = Handle<Object>(script->source());
326 CompileScriptForTracker(script); 326 CompileScriptForTracker(script);
327 active_function_info_listener = NULL; 327 active_function_info_listener = NULL;
328 script->set_source(*original_source); 328 script->set_source(*original_source);
329 329
330 return *(listener.GetResult()); 330 return *(listener.GetResult());
331 } 331 }
332 332
333 333
334 void LiveEdit::WrapSharedFunctionInfos(Handle<JSArray> array) { 334 void LiveEdit::WrapSharedFunctionInfos(Handle<JSArray> array) {
335 HandleScope scope; 335 HandleScope scope;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 474
475 bool LiveEditFunctionTracker::IsActive() { 475 bool LiveEditFunctionTracker::IsActive() {
476 return false; 476 return false;
477 } 477 }
478 478
479 #endif // ENABLE_DEBUGGER_SUPPORT 479 #endif // ENABLE_DEBUGGER_SUPPORT
480 480
481 481
482 482
483 } } // namespace v8::internal 483 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/liveedit.h ('k') | src/liveedit-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698