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

Unified Diff: src/factory.cc

Issue 1682853003: [debugger] introduce abstract interface for break location. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revert stray edit Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/x87/debug-x87.cc ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 09a473c3f1265f8d0020984d87a65726fe2b6938..1a3a007a8536c7b3188affcca5c6fb115c60998a 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2249,7 +2249,11 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
Handle<DebugInfo> debug_info =
Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE));
debug_info->set_shared(*shared);
- debug_info->set_code(shared->code());
+ if (shared->HasBytecodeArray()) {
+ debug_info->set_abstract_code(AbstractCode::cast(shared->bytecode_array()));
+ } else {
+ debug_info->set_abstract_code(AbstractCode::cast(shared->code()));
+ }
debug_info->set_break_points(*break_points);
// Link debug info to function.
« no previous file with comments | « src/debug/x87/debug-x87.cc ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698