| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/inspector/v8-debugger-script.h" | 5 #include "src/inspector/v8-debugger-script.h" |
| 6 | 6 |
| 7 #include "src/inspector/string-util.h" | 7 #include "src/inspector/string-util.h" |
| 8 | 8 |
| 9 namespace v8_inspector { | 9 namespace v8_inspector { |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 m_sourceMappingURL = sourceMappingURL; | 166 m_sourceMappingURL = sourceMappingURL; |
| 167 } | 167 } |
| 168 | 168 |
| 169 void V8DebuggerScript::setSource(v8::Local<v8::String> source) { | 169 void V8DebuggerScript::setSource(v8::Local<v8::String> source) { |
| 170 m_source = String16(); | 170 m_source = String16(); |
| 171 m_sourceObj.Reset(m_isolate, source); | 171 m_sourceObj.Reset(m_isolate, source); |
| 172 m_hash = String16(); | 172 m_hash = String16(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 bool V8DebuggerScript::getPossibleBreakpoints( | 175 bool V8DebuggerScript::getPossibleBreakpoints( |
| 176 const v8::DebugInterface::Location& start, | 176 const v8::debug::Location& start, const v8::debug::Location& end, |
| 177 const v8::DebugInterface::Location& end, | 177 std::vector<v8::debug::Location>* locations) { |
| 178 std::vector<v8::DebugInterface::Location>* locations) { | |
| 179 v8::HandleScope scope(m_isolate); | 178 v8::HandleScope scope(m_isolate); |
| 180 v8::Local<v8::DebugInterface::Script> script = m_script.Get(m_isolate); | 179 v8::Local<v8::DebugInterface::Script> script = m_script.Get(m_isolate); |
| 181 return script->GetPossibleBreakpoints(start, end, locations); | 180 return script->GetPossibleBreakpoints(start, end, locations); |
| 182 } | 181 } |
| 183 | 182 |
| 184 } // namespace v8_inspector | 183 } // namespace v8_inspector |
| OLD | NEW |