| OLD | NEW |
| 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 Loading... |
| 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 "frames.h" | 39 #include "frames.h" |
| 41 #include "platform.h" | 40 #include "platform.h" |
| 42 #include "platform/condition-variable.h" | 41 #include "platform/condition-variable.h" |
| 43 #include "platform/socket.h" | 42 #include "platform/socket.h" |
| 44 #include "stub-cache.h" | 43 #include "stub-cache.h" |
| 45 #include "utils.h" | 44 #include "utils.h" |
| 46 #undef V8_DISABLE_DEPRECATIONS | |
| 47 | 45 |
| 48 | 46 |
| 49 using ::v8::internal::Mutex; | 47 using ::v8::internal::Mutex; |
| 50 using ::v8::internal::LockGuard; | 48 using ::v8::internal::LockGuard; |
| 51 using ::v8::internal::ConditionVariable; | 49 using ::v8::internal::ConditionVariable; |
| 52 using ::v8::internal::Semaphore; | 50 using ::v8::internal::Semaphore; |
| 53 using ::v8::internal::EmbeddedVector; | 51 using ::v8::internal::EmbeddedVector; |
| 54 using ::v8::internal::Object; | 52 using ::v8::internal::Object; |
| 55 using ::v8::internal::OS; | 53 using ::v8::internal::OS; |
| 56 using ::v8::internal::Handle; | 54 using ::v8::internal::Handle; |
| (...skipping 7500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7557 TEST(LiveEditDisabled) { | 7555 TEST(LiveEditDisabled) { |
| 7558 v8::internal::FLAG_allow_natives_syntax = true; | 7556 v8::internal::FLAG_allow_natives_syntax = true; |
| 7559 LocalContext env; | 7557 LocalContext env; |
| 7560 v8::HandleScope scope(env->GetIsolate()); | 7558 v8::HandleScope scope(env->GetIsolate()); |
| 7561 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate(); | 7559 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate(); |
| 7562 CompileRun("%LiveEditCompareStrings('', '')"); | 7560 CompileRun("%LiveEditCompareStrings('', '')"); |
| 7563 } | 7561 } |
| 7564 | 7562 |
| 7565 | 7563 |
| 7566 #endif // ENABLE_DEBUGGER_SUPPORT | 7564 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |