Move JSON files to src/json

R=verwaest@chromium.org

Bug: v8:9247
Change-Id: I747c13cc8517858872c85fc93d0e95af4968e1b2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1617934
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61675}
This commit is contained in:
Yang Guo 2019-05-20 11:58:03 +02:00 committed by Commit Bot
parent e534271e81
commit 93d3b7173f
9 changed files with 20 additions and 17 deletions

View File

@ -2375,10 +2375,10 @@ v8_source_set("v8_base_without_compiler") {
"src/isolate-inl.h",
"src/isolate.cc",
"src/isolate.h",
"src/json-parser.cc",
"src/json-parser.h",
"src/json-stringifier.cc",
"src/json-stringifier.h",
"src/json/json-parser.cc",
"src/json/json-parser.h",
"src/json/json-stringifier.cc",
"src/json/json-stringifier.h",
"src/keys.cc",
"src/keys.h",
"src/label.h",

View File

@ -47,8 +47,8 @@
#include "src/init/icu_util.h"
#include "src/init/startup-data-util.h"
#include "src/isolate-inl.h"
#include "src/json-parser.h"
#include "src/json-stringifier.h"
#include "src/json/json-parser.h"
#include "src/json/json-stringifier.h"
#include "src/logging/counters.h"
#include "src/messages.h"
#include "src/microtask-queue.h"

View File

@ -4,8 +4,8 @@
#include "src/builtins/builtins-utils-inl.h"
#include "src/builtins/builtins.h"
#include "src/json-parser.h"
#include "src/json-stringifier.h"
#include "src/json/json-parser.h"
#include "src/json/json-stringifier.h"
#include "src/logging/counters.h"
#include "src/objects-inl.h"

View File

@ -6,7 +6,7 @@
#include "src/builtins/builtins-utils-inl.h"
#include "src/builtins/builtins.h"
#include "src/heap/heap-inl.h" // For ToBoolean. TODO(jkummerow): Drop.
#include "src/json-stringifier.h"
#include "src/json/json-stringifier.h"
#include "src/logging/counters.h"
#include "src/objects-inl.h"

3
src/json/OWNERS Normal file
View File

@ -0,0 +1,3 @@
ishell@chromium.org
verwaest@chromium.org
yangguo@chromium.org

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/json-parser.h"
#include "src/json/json-parser.h"
#include "src/char-predicates-inl.h"
#include "src/debug/debug.h"

View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_JSON_PARSER_H_
#define V8_JSON_PARSER_H_
#ifndef V8_JSON_JSON_PARSER_H_
#define V8_JSON_JSON_PARSER_H_
#include "src/heap/factory.h"
#include "src/isolate.h"
@ -356,4 +356,4 @@ extern template class JsonParser<uint16_t>;
} // namespace internal
} // namespace v8
#endif // V8_JSON_PARSER_H_
#endif // V8_JSON_JSON_PARSER_H_

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/json-stringifier.h"
#include "src/json/json-stringifier.h"
#include "src/message-template.h"
#include "src/numbers/conversions.h"

View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_JSON_STRINGIFIER_H_
#define V8_JSON_STRINGIFIER_H_
#ifndef V8_JSON_JSON_STRINGIFIER_H_
#define V8_JSON_JSON_STRINGIFIER_H_
#include "src/objects.h"
@ -17,4 +17,4 @@ V8_WARN_UNUSED_RESULT MaybeHandle<Object> JsonStringify(Isolate* isolate,
} // namespace internal
} // namespace v8
#endif // V8_JSON_STRINGIFIER_H_
#endif // V8_JSON_JSON_STRINGIFIER_H_