| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 "platform/v8_inspector/V8DebuggerScript.h" | 5 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 6 | 6 |
| 7 #include "platform/inspector_protocol/Collections.h" | 7 #include "platform/inspector_protocol/Collections.h" |
| 8 #include "platform/inspector_protocol/Platform.h" |
| 8 #include "platform/v8_inspector/V8StringUtil.h" | 9 #include "platform/v8_inspector/V8StringUtil.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 static const LChar hexDigits[17] = "0123456789ABCDEF"; | 13 static const LChar hexDigits[17] = "0123456789ABCDEF"; |
| 13 | 14 |
| 14 static void appendUnsignedAsHex(unsigned number, String16Builder* destination) | 15 static void appendUnsignedAsHex(unsigned number, String16Builder* destination) |
| 15 { | 16 { |
| 16 for (size_t i = 0; i < 8; ++i) { | 17 for (size_t i = 0; i < 8; ++i) { |
| 17 destination->append(hexDigits[number & 0xF]); | 18 destination->append(hexDigits[number & 0xF]); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 m_sourceMappingURL = sourceMappingURL; | 112 m_sourceMappingURL = sourceMappingURL; |
| 112 } | 113 } |
| 113 | 114 |
| 114 void V8DebuggerScript::setSource(v8::Isolate* isolate, v8::Local<v8::String> sou
rce) | 115 void V8DebuggerScript::setSource(v8::Isolate* isolate, v8::Local<v8::String> sou
rce) |
| 115 { | 116 { |
| 116 m_source.Reset(isolate, source); | 117 m_source.Reset(isolate, source); |
| 117 m_hash = calculateHash(toProtocolString(source)); | 118 m_hash = calculateHash(toProtocolString(source)); |
| 118 } | 119 } |
| 119 | 120 |
| 120 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |