OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 v8::Utils::OpenHandle(*context_)->security_token()); | 150 v8::Utils::OpenHandle(*context_)->security_token()); |
151 | 151 |
152 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( | 152 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( |
153 v8::Utils::OpenHandle(*context_->Global()))); | 153 v8::Utils::OpenHandle(*context_->Global()))); |
154 Handle<v8::internal::String> debug_string = | 154 Handle<v8::internal::String> debug_string = |
155 FACTORY->LookupAsciiSymbol("debug"); | 155 FACTORY->LookupAsciiSymbol("debug"); |
156 SetProperty(global, debug_string, | 156 SetProperty(global, debug_string, |
157 Handle<Object>(debug->debug_context()->global_proxy()), DONT_ENUM, | 157 Handle<Object>(debug->debug_context()->global_proxy()), DONT_ENUM, |
158 ::v8::internal::kNonStrictMode); | 158 ::v8::internal::kNonStrictMode); |
159 } | 159 } |
| 160 |
160 private: | 161 private: |
161 v8::Persistent<v8::Context> context_; | 162 v8::Persistent<v8::Context> context_; |
162 }; | 163 }; |
163 | 164 |
164 | 165 |
165 // --- H e l p e r F u n c t i o n s | 166 // --- H e l p e r F u n c t i o n s |
166 | 167 |
167 | 168 |
168 // Compile and run the supplied source and return the fequested function. | 169 // Compile and run the supplied source and return the fequested function. |
169 static v8::Local<v8::Function> CompileFunction(DebugLocalContext* env, | 170 static v8::Local<v8::Function> CompileFunction(DebugLocalContext* env, |
(...skipping 7125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7295 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); | 7296 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); |
7296 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); | 7297 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); |
7297 | 7298 |
7298 // Get rid of the debug event listener. | 7299 // Get rid of the debug event listener. |
7299 v8::Debug::SetDebugEventListener(NULL); | 7300 v8::Debug::SetDebugEventListener(NULL); |
7300 CheckDebuggerUnloaded(); | 7301 CheckDebuggerUnloaded(); |
7301 } | 7302 } |
7302 | 7303 |
7303 | 7304 |
7304 #endif // ENABLE_DEBUGGER_SUPPORT | 7305 #endif // ENABLE_DEBUGGER_SUPPORT |
OLD | NEW |