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

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

Issue 19483003: Revert "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
33 #include "v8.h" 32 #include "v8.h"
34 33
35 #include "api.h" 34 #include "api.h"
36 #include "cctest.h" 35 #include "cctest.h"
37 #include "compilation-cache.h" 36 #include "compilation-cache.h"
38 #include "debug.h" 37 #include "debug.h"
39 #include "deoptimizer.h" 38 #include "deoptimizer.h"
40 #include "platform.h" 39 #include "platform.h"
41 #include "stub-cache.h" 40 #include "stub-cache.h"
42 #include "utils.h" 41 #include "utils.h"
43 #undef V8_DISABLE_DEPRECATIONS
44 42
45 43
46 using ::v8::internal::EmbeddedVector; 44 using ::v8::internal::EmbeddedVector;
47 using ::v8::internal::Object; 45 using ::v8::internal::Object;
48 using ::v8::internal::OS; 46 using ::v8::internal::OS;
49 using ::v8::internal::Handle; 47 using ::v8::internal::Handle;
50 using ::v8::internal::Heap; 48 using ::v8::internal::Heap;
51 using ::v8::internal::JSGlobalProxy; 49 using ::v8::internal::JSGlobalProxy;
52 using ::v8::internal::Code; 50 using ::v8::internal::Code;
53 using ::v8::internal::Debug; 51 using ::v8::internal::Debug;
(...skipping 7543 matching lines...) Expand 10 before | Expand all | Expand 10 after
7597 TEST(LiveEditDisabled) { 7595 TEST(LiveEditDisabled) {
7598 v8::internal::FLAG_allow_natives_syntax = true; 7596 v8::internal::FLAG_allow_natives_syntax = true;
7599 LocalContext env; 7597 LocalContext env;
7600 v8::HandleScope scope(env->GetIsolate()); 7598 v8::HandleScope scope(env->GetIsolate());
7601 v8::Debug::SetLiveEditEnabled(false); 7599 v8::Debug::SetLiveEditEnabled(false);
7602 CompileRun("%LiveEditCompareStrings('', '')"); 7600 CompileRun("%LiveEditCompareStrings('', '')");
7603 } 7601 }
7604 7602
7605 7603
7606 #endif // ENABLE_DEBUGGER_SUPPORT 7604 #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