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
This commit is contained in:
sgjesse@chromium.org 2009-12-01 15:52:02 +00:00
parent fc713930ed
commit 508e54d465
2 changed files with 4 additions and 7 deletions

View File

@ -179,7 +179,6 @@ static Handle<JSFunction> 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<int>(

View File

@ -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");
}