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

Side by Side Diff: src/liveedit.cc

Issue 6894014: Support LiveEdit when standing on return operator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: clean Created 9 years, 8 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/debug.cc ('k') | no next file » | 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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 *mode = Debug::FRAME_DROPPED_IN_IC_CALL; 1404 *mode = Debug::FRAME_DROPPED_IN_IC_CALL;
1405 } else if (pre_top_frame_code == 1405 } else if (pre_top_frame_code ==
1406 isolate->debug()->debug_break_slot()) { 1406 isolate->debug()->debug_break_slot()) {
1407 // OK, we can drop debug break slot. 1407 // OK, we can drop debug break slot.
1408 *mode = Debug::FRAME_DROPPED_IN_DEBUG_SLOT_CALL; 1408 *mode = Debug::FRAME_DROPPED_IN_DEBUG_SLOT_CALL;
1409 } else if (pre_top_frame_code == 1409 } else if (pre_top_frame_code ==
1410 isolate->builtins()->builtin( 1410 isolate->builtins()->builtin(
1411 Builtins::kFrameDropper_LiveEdit)) { 1411 Builtins::kFrameDropper_LiveEdit)) {
1412 // OK, we can drop our own code. 1412 // OK, we can drop our own code.
1413 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; 1413 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL;
1414 } else if (pre_top_frame_code ==
1415 isolate->builtins()->builtin(Builtins::kReturn_DebugBreak)) {
1416 *mode = Debug::FRAME_DROPPED_IN_RETURN_CALL;
1414 } else if (pre_top_frame_code->kind() == Code::STUB && 1417 } else if (pre_top_frame_code->kind() == Code::STUB &&
1415 pre_top_frame_code->major_key()) { 1418 pre_top_frame_code->major_key()) {
1416 // Entry from our unit tests, it's fine, we support this case. 1419 // Entry from our unit tests, it's fine, we support this case.
1417 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; 1420 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL;
1418 } else { 1421 } else {
1419 return "Unknown structure of stack above changing function"; 1422 return "Unknown structure of stack above changing function";
1420 } 1423 }
1421 1424
1422 Address unused_stack_top = top_frame->sp(); 1425 Address unused_stack_top = top_frame->sp();
1423 Address unused_stack_bottom = bottom_js_frame->fp() 1426 Address unused_stack_bottom = bottom_js_frame->fp()
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 1687
1685 bool LiveEditFunctionTracker::IsActive() { 1688 bool LiveEditFunctionTracker::IsActive() {
1686 return false; 1689 return false;
1687 } 1690 }
1688 1691
1689 #endif // ENABLE_DEBUGGER_SUPPORT 1692 #endif // ENABLE_DEBUGGER_SUPPORT
1690 1693
1691 1694
1692 1695
1693 } } // namespace v8::internal 1696 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698