Silence more warnings.
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 9 Jul 2012 16:22:53 +0000 (16:22 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 9 Jul 2012 16:22:53 +0000 (16:22 +0000)
R=mstarzinger@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10746002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12020 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/accessors.cc
src/scopes.cc

index f4fefff..fcc82a1 100644 (file)
@@ -859,10 +859,10 @@ Handle<AccessorInfo> Accessors::MakeModuleExport(
   info->set_all_can_write(true);
   info->set_name(*name);
   info->set_data(Smi::FromInt(index));
-  v8::AccessorGetter getter = &ModuleGetExport;
-  v8::AccessorSetter setter = &ModuleSetExport;
-  info->set_getter(*v8::FromCData(getter));
-  if (!(attributes & ReadOnly)) info->set_setter(*v8::FromCData(setter));
+  Handle<Foreign> getter = v8::FromCData(&ModuleGetExport);
+  Handle<Foreign> setter = v8::FromCData(&ModuleSetExport);
+  info->set_getter(*getter);
+  if (!(attributes & ReadOnly)) info->set_setter(*setter);
   return info;
 }
 
index 3762a57..a5b12f8 100644 (file)
@@ -1378,7 +1378,7 @@ void Scope::LinkModules(CompilationInfo* info) {
             Accessors::MakeModuleExport(it.name(), var->index(), attr);
         Handle<Object> result = SetAccessor(instance, info);
         ASSERT(!(result.is_null() || result->IsUndefined()));
-       USE(result);
+        USE(result);
       }
     }
     USE(JSObject::PreventExtensions(instance));