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

Side by Side Diff: runtime/vm/json_stream.cc

Issue 2070873002: Bug fixes for hot reload (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix an error message Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/json_stream.h" 9 #include "vm/json_stream.h"
10 #include "vm/message.h" 10 #include "vm/message.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 case kIsolateMustBePaused: 139 case kIsolateMustBePaused:
140 return "Isolate must be paused"; 140 return "Isolate must be paused";
141 case kIsolateIsReloading: 141 case kIsolateIsReloading:
142 return "Isolate is reloading"; 142 return "Isolate is reloading";
143 case kFileSystemAlreadyExists: 143 case kFileSystemAlreadyExists:
144 return "File system already exists"; 144 return "File system already exists";
145 case kFileSystemDoesNotExist: 145 case kFileSystemDoesNotExist:
146 return "File system does not exist"; 146 return "File system does not exist";
147 case kFileDoesNotExist: 147 case kFileDoesNotExist:
148 return "File does not exist"; 148 return "File does not exist";
149 case kIsolateReloadFailed:
150 return "Isolate reload failed";
149 default: 151 default:
150 return "Extension error"; 152 return "Extension error";
151 } 153 }
152 } 154 }
153 155
154 156
155 static void PrintRequest(JSONObject* obj, JSONStream* js) { 157 static void PrintRequest(JSONObject* obj, JSONStream* js) {
156 JSONObject jsobj(obj, "request"); 158 JSONObject jsobj(obj, "request");
157 jsobj.AddProperty("method", js->method()); 159 jsobj.AddProperty("method", js->method());
158 { 160 {
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 ASSERT(len == len2); 945 ASSERT(len == len2);
944 stream_->buffer_.AddChar('"'); 946 stream_->buffer_.AddChar('"');
945 stream_->AddEscapedUTF8String(p); 947 stream_->AddEscapedUTF8String(p);
946 stream_->buffer_.AddChar('"'); 948 stream_->buffer_.AddChar('"');
947 free(p); 949 free(p);
948 } 950 }
949 951
950 #endif // !PRODUCT 952 #endif // !PRODUCT
951 953
952 } // namespace dart 954 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/object_reload.cc » ('j') | runtime/vm/service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698