| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 v8::internal::Debug* debug = isolate->debug(); | 162 v8::internal::Debug* debug = isolate->debug(); |
| 163 // Expose the debug context global object in the global object for testing. | 163 // Expose the debug context global object in the global object for testing. |
| 164 debug->Load(); | 164 debug->Load(); |
| 165 debug->debug_context()->set_security_token( | 165 debug->debug_context()->set_security_token( |
| 166 v8::Utils::OpenHandle(*context_)->security_token()); | 166 v8::Utils::OpenHandle(*context_)->security_token()); |
| 167 | 167 |
| 168 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( | 168 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( |
| 169 v8::Utils::OpenHandle(*context_->Global()))); | 169 v8::Utils::OpenHandle(*context_->Global()))); |
| 170 Handle<v8::internal::String> debug_string = | 170 Handle<v8::internal::String> debug_string = |
| 171 factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("debug")); | 171 factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("debug")); |
| 172 SetProperty(isolate, global, debug_string, | 172 v8::internal::Runtime::SetObjectProperty(isolate, global, debug_string, |
| 173 Handle<Object>(debug->debug_context()->global_proxy(), isolate), | 173 Handle<Object>(debug->debug_context()->global_proxy(), isolate), |
| 174 DONT_ENUM, | 174 DONT_ENUM, |
| 175 ::v8::internal::kNonStrictMode); | 175 ::v8::internal::kNonStrictMode); |
| 176 } | 176 } |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 v8::HandleScope scope_; | 179 v8::HandleScope scope_; |
| 180 v8::Local<v8::Context> context_; | 180 v8::Local<v8::Context> context_; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 | 183 |
| 184 // --- H e l p e r F u n c t i o n s | 184 // --- H e l p e r F u n c t i o n s |
| 185 | 185 |
| (...skipping 7369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7555 TEST(LiveEditDisabled) { | 7555 TEST(LiveEditDisabled) { |
| 7556 v8::internal::FLAG_allow_natives_syntax = true; | 7556 v8::internal::FLAG_allow_natives_syntax = true; |
| 7557 LocalContext env; | 7557 LocalContext env; |
| 7558 v8::HandleScope scope(env->GetIsolate()); | 7558 v8::HandleScope scope(env->GetIsolate()); |
| 7559 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate(); | 7559 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate(); |
| 7560 CompileRun("%LiveEditCompareStrings('', '')"); | 7560 CompileRun("%LiveEditCompareStrings('', '')"); |
| 7561 } | 7561 } |
| 7562 | 7562 |
| 7563 | 7563 |
| 7564 #endif // ENABLE_DEBUGGER_SUPPORT | 7564 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |