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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 } | 222 } |
223 } | 223 } |
224 | 224 |
225 // Convert UTF-8 to UTF-16. | 225 // Convert UTF-8 to UTF-16. |
226 unibrow::Utf8Decoder<128> decoder(msg, StrLength(msg)); | 226 unibrow::Utf8Decoder<128> decoder(msg, StrLength(msg)); |
227 int utf16_length = decoder.Utf16Length(); | 227 int utf16_length = decoder.Utf16Length(); |
228 ScopedVector<uint16_t> temp(utf16_length + 1); | 228 ScopedVector<uint16_t> temp(utf16_length + 1); |
229 decoder.WriteUtf16(temp.start(), utf16_length); | 229 decoder.WriteUtf16(temp.start(), utf16_length); |
230 | 230 |
231 // Send the request received to the debugger. | 231 // Send the request received to the debugger. |
232 v8::Debug::SendCommand(temp.start(), | 232 v8::Debug::SendCommand(reinterpret_cast<v8::Isolate*>(agent_->isolate()), |
| 233 temp.start(), |
233 utf16_length, | 234 utf16_length, |
234 NULL, | 235 NULL); |
235 reinterpret_cast<v8::Isolate*>(agent_->isolate())); | |
236 | 236 |
237 if (is_closing_session) { | 237 if (is_closing_session) { |
238 // Session is closed. | 238 // Session is closed. |
239 agent_->OnSessionClosed(this); | 239 agent_->OnSessionClosed(this); |
240 return; | 240 return; |
241 } | 241 } |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 | 245 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 return total_received; | 499 return total_received; |
500 } | 500 } |
501 total_received += received; | 501 total_received += received; |
502 } | 502 } |
503 return total_received; | 503 return total_received; |
504 } | 504 } |
505 | 505 |
506 } } // namespace v8::internal | 506 } } // namespace v8::internal |
507 | 507 |
508 #endif // ENABLE_DEBUGGER_SUPPORT | 508 #endif // ENABLE_DEBUGGER_SUPPORT |
OLD | NEW |