Fix debug build
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Dec 2009 15:52:02 +0000 (15:52 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Dec 2009 15:52:02 +0000 (15:52 +0000)
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
src/objects-debug.cc

index f5ba319f191ef6bef6a455cf4180b4de9d258997..22b0a03c6ac70e0776431ade122e6244d1a15a59 100644 (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>(
index 20c68f76a879056376a3d15fded5c713e975900d..36f65eee84fc873c1bdf8b42707313aeeb4baf34 100644 (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");
 }