diff --git a/test/cctest/compiler/test-code-stub-assembler.cc b/test/cctest/compiler/test-code-stub-assembler.cc index d7a7a8198a..4395c7a0d0 100644 --- a/test/cctest/compiler/test-code-stub-assembler.cc +++ b/test/cctest/compiler/test-code-stub-assembler.cc @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// TODO(jochen): Remove this after the setting is turned on globally. +#define V8_IMMINENT_DEPRECATION_WARNINGS + #include "src/interface-descriptors.h" #include "src/isolate.h" #include "test/cctest/compiler/function-tester.h" diff --git a/test/cctest/test-decls.cc b/test/cctest/test-decls.cc index 347ca9a6bc..4165e1b8c1 100644 --- a/test/cctest/test-decls.cc +++ b/test/cctest/test-decls.cc @@ -25,6 +25,9 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// TODO(jochen): Remove this after the setting is turned on globally. +#define V8_IMMINENT_DEPRECATION_WARNINGS + #include #include "src/v8.h" @@ -60,25 +63,24 @@ class DeclarationContext { } } - void Check(const char* source, - int get, int set, int has, + void Check(const char* source, int get, int set, int has, Expectations expectations, - v8::Handle value = Local()); + v8::Local value = Local()); int get_count() const { return get_count_; } int set_count() const { return set_count_; } int query_count() const { return query_count_; } protected: - virtual v8::Handle Get(Local key); - virtual v8::Handle Set(Local key, Local value); - virtual v8::Handle Query(Local key); + virtual v8::Local Get(Local key); + virtual v8::Local Set(Local key, Local value); + virtual v8::Local Query(Local key); void InitializeIfNeeded(); // Perform optional initialization steps on the context after it has // been created. Defaults to none but may be overwritten. - virtual void PostInitializeContext(Handle context) {} + virtual void PostInitializeContext(Local context) {} // Get the holder for the interceptor. Default to the instance template // but may be overwritten. @@ -138,10 +140,9 @@ void DeclarationContext::InitializeIfNeeded() { } -void DeclarationContext::Check(const char* source, - int get, int set, int query, +void DeclarationContext::Check(const char* source, int get, int set, int query, Expectations expectations, - v8::Handle value) { + v8::Local value) { InitializeIfNeeded(); // A retry after a GC may pollute the counts, so perform gc now // to avoid that. @@ -149,27 +150,30 @@ void DeclarationContext::Check(const char* source, HandleScope scope(CcTest::isolate()); TryCatch catcher(CcTest::isolate()); catcher.SetVerbose(true); - Local