Commit 90e658dd authored by avi's avatar avi Committed by Commit bot

Switch to standard integer types in gin/.

BUG=138542
TBR=aa@chromium.org
Switch to standard integer types in gin/.

BUG=138542
TBR=aa@chromium.org

Review URL: https://codereview.chromium.org/1541743002

Cr-Commit-Position: refs/heads/master@{#366345}
parent e0012b17
......@@ -5,7 +5,6 @@
#ifndef GIN_ARGUMENTS_H_
#define GIN_ARGUMENTS_H_
#include "base/basictypes.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
......
......@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdlib.h>
#include "base/logging.h"
......
......@@ -5,8 +5,11 @@
#ifndef GIN_ARRAY_BUFFER_H_
#define GIN_ARRAY_BUFFER_H_
#include "base/basictypes.h"
#include <stddef.h>
#include <stdint.h>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
......
......@@ -4,6 +4,8 @@
#include "gin/converter.h"
#include <stdint.h>
#include "v8/include/v8.h"
using v8::ArrayBuffer;
......
......@@ -5,6 +5,8 @@
#ifndef GIN_CONVERTER_H_
#define GIN_CONVERTER_H_
#include <stdint.h>
#include <string>
#include <vector>
......
......@@ -5,8 +5,9 @@
#include "gin/converter.h"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "gin/public/isolate_holder.h"
......
......@@ -5,8 +5,11 @@
#ifndef GIN_FUNCTION_TEMPLATE_H_
#define GIN_FUNCTION_TEMPLATE_H_
#include <stddef.h>
#include "base/callback.h"
#include "base/logging.h"
#include "base/macros.h"
#include "gin/arguments.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
......
......@@ -4,6 +4,8 @@
#include "gin/interceptor.h"
#include <stdint.h>
#include <map>
#include "gin/per_isolate_data.h"
......
......@@ -5,10 +5,12 @@
#ifndef GIN_INTERCEPTOR_H_
#define GIN_INTERCEPTOR_H_
#include <stdint.h>
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/macros.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
......
......@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include "base/logging.h"
#include "base/macros.h"
#include "gin/arguments.h"
#include "gin/handle.h"
#include "gin/interceptor.h"
......
......@@ -4,6 +4,7 @@
#include "gin/public/isolate_holder.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -4,6 +4,8 @@
#include "gin/modules/file_module_provider.h"
#include <stddef.h>
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
......
......@@ -10,6 +10,7 @@
#include <vector>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "gin/gin_export.h"
#include "gin/runner.h"
......
......@@ -4,6 +4,9 @@
#include "gin/modules/module_registry.h"
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
......
......@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
......
......@@ -4,7 +4,10 @@
#include "gin/modules/module_registry.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/macros.h"
#include "gin/modules/module_registry_observer.h"
#include "gin/modules/module_runner_delegate.h"
#include "gin/public/context_holder.h"
......
......@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "gin/gin_export.h"
#include "gin/modules/file_module_provider.h"
#include "gin/shell_runner.h"
......
......@@ -5,6 +5,7 @@
#ifndef GIN_MODULES_TIMER_H_
#define GIN_MODULES_TIMER_H_
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
#include "gin/gin_export.h"
......
......@@ -4,6 +4,8 @@
#include "gin/object_template_builder.h"
#include <stdint.h>
#include "gin/interceptor.h"
#include "gin/per_isolate_data.h"
#include "gin/public/wrapper_info.h"
......
......@@ -5,7 +5,7 @@
#ifndef GIN_PER_CONTEXT_DATA_H_
#define GIN_PER_CONTEXT_DATA_H_
#include "base/basictypes.h"
#include "base/macros.h"
#include "base/supports_user_data.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
......
......@@ -7,7 +7,7 @@
#include <map>
#include "base/basictypes.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
......
......@@ -7,7 +7,7 @@
#include <list>
#include "base/basictypes.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
......
......@@ -5,6 +5,8 @@
#ifndef GIN_PUBLIC_DEBUG_H_
#define GIN_PUBLIC_DEBUG_H_
#include <stddef.h>
#include "build/build_config.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
......
......@@ -5,7 +5,7 @@
#ifndef GIN_PUBLIC_ISOLATE_HOLDER_H_
#define GIN_PUBLIC_ISOLATE_HOLDER_H_
#include "base/basictypes.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
#include "gin/public/v8_idle_task_runner.h"
......
......@@ -5,7 +5,6 @@
#ifndef GIN_PUBLIC_V8_IDLE_TASK_RUNNER_H_
#define GIN_PUBLIC_V8_IDLE_TASK_RUNNER_H_
#include "base/basictypes.h"
#include "v8/include/v8-platform.h"
namespace gin {
......
......@@ -5,9 +5,9 @@
#ifndef GIN_PUBLIC_V8_PLATFORM_H_
#define GIN_PUBLIC_V8_PLATFORM_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "gin/gin_export.h"
#include "v8/include/v8-platform.h"
......
......@@ -7,6 +7,7 @@
#include <string>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "gin/gin_export.h"
#include "gin/public/context_holder.h"
......
......@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/i18n/icu_util.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "gin/array_buffer.h"
#include "gin/modules/console.h"
......
......@@ -5,6 +5,7 @@
#ifndef GIN_SHELL_RUNNER_H_
#define GIN_SHELL_RUNNER_H_
#include "base/macros.h"
#include "gin/runner.h"
namespace gin {
......
......@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "gin/modules/module_runner_delegate.h"
#include "gin/runner.h"
......
......@@ -5,8 +5,8 @@
#ifndef GIN_TEST_V8_TEST_H_
#define GIN_TEST_V8_TEST_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
......
......@@ -7,7 +7,7 @@
#include <string>
#include "base/basictypes.h"
#include "base/macros.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
......
......@@ -4,7 +4,9 @@
#include "gin/v8_initializer.h"
#include "base/basictypes.h"
#include <stddef.h>
#include <stdint.h>
#include "base/debug/alias.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
......@@ -286,8 +288,8 @@ void V8Initializer::LoadV8Natives() {
// static
void V8Initializer::LoadV8SnapshotFromFD(base::PlatformFile snapshot_pf,
int64 snapshot_offset,
int64 snapshot_size) {
int64_t snapshot_offset,
int64_t snapshot_size) {
if (g_mapped_snapshot)
return;
......@@ -318,8 +320,8 @@ void V8Initializer::LoadV8SnapshotFromFD(base::PlatformFile snapshot_pf,
// static
void V8Initializer::LoadV8NativesFromFD(base::PlatformFile natives_pf,
int64 natives_offset,
int64 natives_size) {
int64_t natives_offset,
int64_t natives_size) {
if (g_mapped_natives)
return;
......
......@@ -5,6 +5,8 @@
#ifndef GIN_V8_INITIALIZER_H_
#define GIN_V8_INITIALIZER_H_
#include <stdint.h>
#include "base/files/file.h"
#include "base/files/memory_mapped_file.h"
#include "gin/array_buffer.h"
......@@ -36,14 +38,14 @@ class GIN_EXPORT V8Initializer {
// of the files to be loaded. Since the VM can boot with or without
// the snapshot, this function does not return a status.
static void LoadV8SnapshotFromFD(base::PlatformFile snapshot_fd,
int64 snapshot_offset,
int64 snapshot_size);
int64_t snapshot_offset,
int64_t snapshot_size);
// Similar to LoadV8SnapshotFromFD, but for the source of the natives.
// Without the natives we cannot continue, so this function contains
// release mode asserts and won't return if it fails.
static void LoadV8NativesFromFD(base::PlatformFile natives_fd,
int64 natives_offset,
int64 natives_size);
int64_t natives_offset,
int64_t natives_size);
// Load V8 snapshot from default resources, if they are available.
static void LoadV8Snapshot();
......
......@@ -4,6 +4,8 @@
#include "gin/v8_isolate_memory_dump_provider.h"
#include <stddef.h>
#include "base/strings/stringprintf.h"
#include "base/thread_task_runner_handle.h"
#include "base/trace_event/memory_dump_manager.h"
......
......@@ -7,6 +7,7 @@
#include <string>
#include "base/macros.h"
#include "base/trace_event/memory_dump_provider.h"
#include "gin/gin_export.h"
......
......@@ -7,6 +7,7 @@
#include <type_traits>
#include "base/macros.h"
#include "base/template_util.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
......
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/logging.h"
#include "base/macros.h"
#include "gin/arguments.h"
#include "gin/handle.h"
#include "gin/object_template_builder.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment