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

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

Issue 19542003: Deprecate some debugger methods (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « src/d8-debug.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifdef ENABLE_DEBUGGER_SUPPORT 28 #ifdef ENABLE_DEBUGGER_SUPPORT
29 29
30 #include <stdlib.h> 30 #include <stdlib.h>
31 31
32 #define V8_DISABLE_DEPRECATIONS 1
32 #include "v8.h" 33 #include "v8.h"
33 34
34 #include "api.h" 35 #include "api.h"
35 #include "cctest.h" 36 #include "cctest.h"
36 #include "compilation-cache.h" 37 #include "compilation-cache.h"
37 #include "debug.h" 38 #include "debug.h"
38 #include "deoptimizer.h" 39 #include "deoptimizer.h"
39 #include "platform.h" 40 #include "platform.h"
40 #include "stub-cache.h" 41 #include "stub-cache.h"
41 #include "utils.h" 42 #include "utils.h"
43 #undef V8_DISABLE_DEPRECATIONS
42 44
43 45
44 using ::v8::internal::EmbeddedVector; 46 using ::v8::internal::EmbeddedVector;
45 using ::v8::internal::Object; 47 using ::v8::internal::Object;
46 using ::v8::internal::OS; 48 using ::v8::internal::OS;
47 using ::v8::internal::Handle; 49 using ::v8::internal::Handle;
48 using ::v8::internal::Heap; 50 using ::v8::internal::Heap;
49 using ::v8::internal::JSGlobalProxy; 51 using ::v8::internal::JSGlobalProxy;
50 using ::v8::internal::Code; 52 using ::v8::internal::Code;
51 using ::v8::internal::Debug; 53 using ::v8::internal::Debug;
(...skipping 7543 matching lines...) Expand 10 before | Expand all | Expand 10 after
7595 TEST(LiveEditDisabled) { 7597 TEST(LiveEditDisabled) {
7596 v8::internal::FLAG_allow_natives_syntax = true; 7598 v8::internal::FLAG_allow_natives_syntax = true;
7597 LocalContext env; 7599 LocalContext env;
7598 v8::HandleScope scope(env->GetIsolate()); 7600 v8::HandleScope scope(env->GetIsolate());
7599 v8::Debug::SetLiveEditEnabled(false); 7601 v8::Debug::SetLiveEditEnabled(false);
7600 CompileRun("%LiveEditCompareStrings('', '')"); 7602 CompileRun("%LiveEditCompareStrings('', '')");
7601 } 7603 }
7602 7604
7603 7605
7604 #endif // ENABLE_DEBUGGER_SUPPORT 7606 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « src/d8-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698