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

Unified Diff: runtime/vm/json_parser.cc

Issue 2562693003: Save and restore feedback from JIT. (Closed)
Patch Set: . Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/json_parser.cc
diff --git a/runtime/vm/json_parser.cc b/runtime/vm/json_parser.cc
new file mode 100644
index 0000000000000000000000000000000000000000..15b58383ff97b9dcd33bfbc430d200dfc1bdf28c
--- /dev/null
+++ b/runtime/vm/json_parser.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "vm/json_parser.h"
+
+namespace dart {
+
+ParsedJSONArray* ParsedJSONObject::ArrayAt(const char* key) {
Florian Schneider 2016/12/15 19:09:35 Can this be moved into the .h file by using a forw
rmacnak 2016/12/15 21:27:19 Yes, I can mark in inline.
+ ParsedJSONValue* member = At(key);
+ if ((member == NULL) || !member->IsArray()) {
+ return NULL;
+ }
+ return static_cast<ParsedJSONArray*>(member);
+}
+
+} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698