| 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/protocol-platform.h" | |
| 8 #include "src/inspector/string-util.h" | 7 #include "src/inspector/string-util.h" |
| 9 | 8 |
| 10 namespace v8_inspector { | 9 namespace v8_inspector { |
| 11 | 10 |
| 12 static const char hexDigits[17] = "0123456789ABCDEF"; | 11 static const char hexDigits[17] = "0123456789ABCDEF"; |
| 13 | 12 |
| 14 static void appendUnsignedAsHex(uint64_t number, String16Builder* destination) { | 13 static void appendUnsignedAsHex(uint64_t number, String16Builder* destination) { |
| 15 for (size_t i = 0; i < 8; ++i) { | 14 for (size_t i = 0; i < 8; ++i) { |
| 16 UChar c = hexDigits[number & 0xF]; | 15 UChar c = hexDigits[number & 0xF]; |
| 17 destination->append(c); | 16 destination->append(c); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 bool V8DebuggerScript::getPossibleBreakpoints( | 175 bool V8DebuggerScript::getPossibleBreakpoints( |
| 177 const v8::DebugInterface::Location& start, | 176 const v8::DebugInterface::Location& start, |
| 178 const v8::DebugInterface::Location& end, | 177 const v8::DebugInterface::Location& end, |
| 179 std::vector<v8::DebugInterface::Location>* locations) { | 178 std::vector<v8::DebugInterface::Location>* locations) { |
| 180 v8::HandleScope scope(m_isolate); | 179 v8::HandleScope scope(m_isolate); |
| 181 v8::Local<v8::DebugInterface::Script> script = m_script.Get(m_isolate); | 180 v8::Local<v8::DebugInterface::Script> script = m_script.Get(m_isolate); |
| 182 return script->GetPossibleBreakpoints(start, end, locations); | 181 return script->GetPossibleBreakpoints(start, end, locations); |
| 183 } | 182 } |
| 184 | 183 |
| 185 } // namespace v8_inspector | 184 } // namespace v8_inspector |
| OLD | NEW |