From 80d1b898fb90eaf0d5da14a46b5c339d3b630f4f Mon Sep 17 00:00:00 2001 From: "keuchel@chromium.org" Date: Thu, 3 Nov 2011 08:59:01 +0000 Subject: [PATCH] Fix gcc-4.6 warnings. BUG=v8:1806 Review URL: http://codereview.chromium.org/8386072 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9867 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 12 ++-- test/cctest/test-api.cc | 128 ++++++++++++++++++------------------- test/cctest/test-compiler.cc | 4 +- test/cctest/test-debug.cc | 40 ++++++------ test/cctest/test-deoptimization.cc | 2 +- test/cctest/test-heap.cc | 21 +++--- test/cctest/test-parsing.cc | 13 ++-- 7 files changed, 106 insertions(+), 114 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 08b944a..f2e23f4 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -11218,18 +11218,14 @@ class ScopeIterator { // Global code CompilationInfo info(script); info.MarkAsGlobal(); - bool result = ParserApi::Parse(&info); - ASSERT(result); - result = Scope::Analyze(&info); - ASSERT(result); + CHECK(ParserApi::Parse(&info)); + CHECK(Scope::Analyze(&info)); scope = info.function()->scope(); } else { // Function code CompilationInfo info(shared_info); - bool result = ParserApi::Parse(&info); - ASSERT(result); - result = Scope::Analyze(&info); - ASSERT(result); + CHECK(ParserApi::Parse(&info)); + CHECK(Scope::Analyze(&info)); scope = info.function()->scope(); } diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index f91299d..b394e95 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -1189,9 +1189,9 @@ THREADED_TEST(GlobalPrototype) { templ->Set("x", v8_num(200)); templ->SetAccessor(v8_str("m"), GetM); LocalContext env(0, templ); - v8::Handle obj = env->Global(); - v8::Handle