Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: src/debug-agent.cc

Issue 4070003: [Isolates] Convert more static data either to read-only or to per-isolate. (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug-agent.h ('k') | src/frames.h » ('j') | src/frames.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 DebuggerAgentUtil::SendMessage(client_, message); 199 DebuggerAgentUtil::SendMessage(client_, message);
200 } 200 }
201 201
202 202
203 void DebuggerAgentSession::Shutdown() { 203 void DebuggerAgentSession::Shutdown() {
204 // Shutdown the socket to end the blocking receive. 204 // Shutdown the socket to end the blocking receive.
205 client_->Shutdown(); 205 client_->Shutdown();
206 } 206 }
207 207
208 208
209 const char* DebuggerAgentUtil::kContentLength = "Content-Length"; 209 const char* const DebuggerAgentUtil::kContentLength = "Content-Length";
210 int DebuggerAgentUtil::kContentLengthSize = 210 const int DebuggerAgentUtil::kContentLengthSize =
211 StrLength(kContentLength); 211 StrLength(kContentLength);
212 212
213 213
214 SmartPointer<char> DebuggerAgentUtil::ReceiveMessage(const Socket* conn) { 214 SmartPointer<char> DebuggerAgentUtil::ReceiveMessage(const Socket* conn) {
215 int received; 215 int received;
216 216
217 // Read header. 217 // Read header.
218 int content_length = 0; 218 int content_length = 0;
219 while (true) { 219 while (true) {
220 const int kHeaderBufferSize = 80; 220 const int kHeaderBufferSize = 80;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 return total_received; 419 return total_received;
420 } 420 }
421 total_received += received; 421 total_received += received;
422 } 422 }
423 return total_received; 423 return total_received;
424 } 424 }
425 425
426 } } // namespace v8::internal 426 } } // namespace v8::internal
427 427
428 #endif // ENABLE_DEBUGGER_SUPPORT 428 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « src/debug-agent.h ('k') | src/frames.h » ('j') | src/frames.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698