From 8a019050ffd833881361a9b0dc2cf8a3353f0177 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Tue, 30 Jul 2013 17:00:05 +0000 Subject: [PATCH] Reland "Compilation type and state allocate an unnecessary Smi on v8::Script" (r15940). It turns out that this change is not related to the test failures. TBR=danno@chromium.org Review URL: https://codereview.chromium.org/21256003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15962 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/accessors.cc | 5 ++--- src/compiler.cc | 6 ++---- src/factory.cc | 4 +--- src/isolate.cc | 6 +++--- src/liveedit.cc | 5 ++++- src/objects-inl.h | 21 +++++++++++++++++++-- src/objects-printer.cc | 3 +-- src/objects.h | 32 +++++++++++++++++++++----------- src/runtime.cc | 2 +- 9 files changed, 54 insertions(+), 30 deletions(-) diff --git a/src/accessors.cc b/src/accessors.cc index 51db3615c3..a43eb78b87 100644 --- a/src/accessors.cc +++ b/src/accessors.cc @@ -292,7 +292,7 @@ const AccessorDescriptor Accessors::ScriptType = { MaybeObject* Accessors::ScriptGetCompilationType(Object* object, void*) { Object* script = JSValue::cast(object)->value(); - return Script::cast(script)->compilation_type(); + return Smi::FromInt(Script::cast(script)->compilation_type()); } @@ -388,8 +388,7 @@ MaybeObject* Accessors::ScriptGetEvalFromScriptPosition(Object* object, void*) { Handle