Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2046)

Side by Side Diff: test/cctest/test-decls.cc

Issue 23707009: Deprecate Persistent functions which were marked to be deprecated. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review (svenpanne) Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-declarative-accessors.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class DeclarationContext { 49 class DeclarationContext {
50 public: 50 public:
51 DeclarationContext(); 51 DeclarationContext();
52 52
53 virtual ~DeclarationContext() { 53 virtual ~DeclarationContext() {
54 if (is_initialized_) { 54 if (is_initialized_) {
55 Isolate* isolate = Isolate::GetCurrent(); 55 Isolate* isolate = Isolate::GetCurrent();
56 HandleScope scope(isolate); 56 HandleScope scope(isolate);
57 Local<Context> context = Local<Context>::New(isolate, context_); 57 Local<Context> context = Local<Context>::New(isolate, context_);
58 context->Exit(); 58 context->Exit();
59 context_.Dispose(isolate); 59 context_.Dispose();
60 } 60 }
61 } 61 }
62 62
63 void Check(const char* source, 63 void Check(const char* source,
64 int get, int set, int has, 64 int get, int set, int has,
65 Expectations expectations, 65 Expectations expectations,
66 v8::Handle<Value> value = Local<Value>()); 66 v8::Handle<Value> value = Local<Value>());
67 67
68 int get_count() const { return get_count_; } 68 int get_count() const { return get_count_; }
69 int set_count() const { return set_count_; } 69 int set_count() const { return set_count_; }
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 SimpleContext context; 846 SimpleContext context;
847 context.Check(firsts[i], EXPECT_RESULT, Number::New(1)); 847 context.Check(firsts[i], EXPECT_RESULT, Number::New(1));
848 // TODO(rossberg): All tests should actually be errors in Harmony, 848 // TODO(rossberg): All tests should actually be errors in Harmony,
849 // but we currently do not detect the cases where the first declaration 849 // but we currently do not detect the cases where the first declaration
850 // is not lexical. 850 // is not lexical.
851 context.Check(seconds[j], 851 context.Check(seconds[j],
852 i < 2 ? EXPECT_RESULT : EXPECT_ERROR, Number::New(2)); 852 i < 2 ? EXPECT_RESULT : EXPECT_ERROR, Number::New(2));
853 } 853 }
854 } 854 }
855 } 855 }
OLDNEW
« no previous file with comments | « test/cctest/test-declarative-accessors.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698