From 508e54d465a2bfcf7eb910ebfbc5c4c51973c65d Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 1 Dec 2009 15:52:02 +0000 Subject: [PATCH] Fix debug build Missed out on reflecting changes to Script object layout in objects-debug.cc. Also fixed http://codereview.chromium.org/450034/diff/2006/2010. TBR=ager@chromium.org Review URL: http://codereview.chromium.org/456021 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3394 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler.cc | 1 - src/objects-debug.cc | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/compiler.cc b/src/compiler.cc index f5ba319f1..22b0a03c6 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -179,7 +179,6 @@ static Handle MakeFunction(bool is_global, // called. if (is_eval) { JavaScriptFrameIterator it; - if (it.frame()->function()->IsJSFunction()) script->set_eval_from_shared( JSFunction::cast(it.frame()->function())->shared()); int offset = static_cast( diff --git a/src/objects-debug.cc b/src/objects-debug.cc index 20c68f76a..36f65eee8 100644 --- a/src/objects-debug.cc +++ b/src/objects-debug.cc @@ -1145,12 +1145,10 @@ void Script::ScriptPrint() { compilation_type()->ShortPrint(); PrintF("\n - line ends: "); line_ends()->ShortPrint(); - PrintF("\n - eval from script: "); - eval_from_script()->ShortPrint(); - PrintF("\n - eval from script position: "); - eval_from_script_position()->ShortPrint(); - PrintF("\n - eval from function name: "); - eval_from_function_name()->ShortPrint(); + PrintF("\n - eval from shared: "); + eval_from_shared()->ShortPrint(); + PrintF("\n - eval from instructions offset: "); + eval_from_instructions_offset()->ShortPrint(); PrintF("\n"); } -- 2.34.1