From 26178124a4a84d79949ca53b73a5540c6e02681e Mon Sep 17 00:00:00 2001 From: aalexandre Date: Tue, 5 Mar 2013 10:46:44 -0800 Subject: [PATCH] Eliminate int32, uint32, int16, uint16, int8, uint8. This concludes the inttypes replacement. These replacement have been mostly mechanical with the use of cxx_replace. --- hphp/compiler/analysis/alias_manager.cpp | 4 +- hphp/compiler/analysis/analysis_result.h | 8 +- hphp/compiler/analysis/emitter.cpp | 46 ++-- hphp/compiler/analysis/emitter.h | 16 +- hphp/compiler/builtin_symbols.cpp | 8 +- hphp/compiler/compiler.cpp | 2 +- hphp/compiler/construct.cpp | 6 +- .../expression/binary_op_expression.cpp | 4 +- .../expression/class_constant_expression.cpp | 2 +- .../expression/constant_expression.cpp | 2 +- hphp/compiler/expression/expression.cpp | 4 +- .../compiler/expression/scalar_expression.cpp | 12 +- hphp/compiler/expression/scalar_expression.h | 6 +- .../expression/static_member_expression.cpp | 2 +- hphp/compiler/statement/break_statement.cpp | 4 +- hphp/compiler/statement/break_statement.h | 2 +- hphp/compiler/statement/case_statement.cpp | 2 +- hphp/compiler/statement/case_statement.h | 2 +- hphp/compiler/statement/switch_statement.h | 2 +- hphp/runtime/base/array/array_data.cpp | 14 +- hphp/runtime/base/array/array_data.h | 30 +-- hphp/runtime/base/array/array_init.h | 6 +- hphp/runtime/base/array/array_inline.h | 4 +- hphp/runtime/base/array/array_iterator.cpp | 14 +- hphp/runtime/base/array/array_iterator.h | 10 +- hphp/runtime/base/array/array_util.cpp | 24 +- hphp/runtime/base/array/array_util.h | 8 +- hphp/runtime/base/array/hphp_array.cpp | 100 ++++---- hphp/runtime/base/array/hphp_array.h | 86 +++---- hphp/runtime/base/array/hphp_array_sort.cpp | 4 +- hphp/runtime/base/array/sort_helpers.h | 14 +- hphp/runtime/base/binary_operations.h | 10 +- hphp/runtime/base/builtin_functions.cpp | 20 +- hphp/runtime/base/builtin_functions.h | 36 +-- hphp/runtime/base/class_info.cpp | 36 +-- hphp/runtime/base/class_info.h | 2 +- hphp/runtime/base/code_coverage.cpp | 2 +- hphp/runtime/base/comparisons.cpp | 22 +- hphp/runtime/base/comparisons.h | 196 +++++++------- hphp/runtime/base/debuggable.cpp | 6 +- hphp/runtime/base/debuggable.h | 6 +- hphp/runtime/base/execution_context.cpp | 2 +- hphp/runtime/base/execution_context.h | 14 +- hphp/runtime/base/file/bzip2_file.cpp | 6 +- hphp/runtime/base/file/bzip2_file.h | 6 +- hphp/runtime/base/file/file.cpp | 58 ++--- hphp/runtime/base/file/file.h | 32 +-- hphp/runtime/base/file/mem_file.cpp | 14 +- hphp/runtime/base/file/mem_file.h | 14 +- hphp/runtime/base/file/output_file.cpp | 10 +- hphp/runtime/base/file/output_file.h | 10 +- hphp/runtime/base/file/plain_file.cpp | 16 +- hphp/runtime/base/file/plain_file.h | 12 +- hphp/runtime/base/file/socket.cpp | 10 +- hphp/runtime/base/file/socket.h | 8 +- hphp/runtime/base/file/ssl_socket.cpp | 10 +- hphp/runtime/base/file/ssl_socket.h | 6 +- hphp/runtime/base/file/url_file.cpp | 2 +- hphp/runtime/base/file/url_file.h | 2 +- hphp/runtime/base/file/user_file.cpp | 14 +- hphp/runtime/base/file/user_file.h | 8 +- hphp/runtime/base/file/zip_file.cpp | 12 +- hphp/runtime/base/file/zip_file.h | 8 +- hphp/runtime/base/hardware_counter.cpp | 20 +- hphp/runtime/base/hardware_counter.h | 24 +- hphp/runtime/base/hphp_ffi.cpp | 2 +- hphp/runtime/base/hphp_value.h | 2 +- hphp/runtime/base/ini_setting.cpp | 20 +- hphp/runtime/base/md5.h | 8 +- hphp/runtime/base/memory/memory_manager.cpp | 6 +- hphp/runtime/base/memory/memory_manager.h | 18 +- hphp/runtime/base/memory/memory_usage_stats.h | 18 +- hphp/runtime/base/object_data.cpp | 2 +- hphp/runtime/base/object_data.h | 4 +- hphp/runtime/base/program_functions.cpp | 2 +- hphp/runtime/base/resource_data.h | 2 +- hphp/runtime/base/runtime_error.cpp | 4 +- hphp/runtime/base/runtime_option.cpp | 24 +- hphp/runtime/base/runtime_option.h | 48 ++-- hphp/runtime/base/server/access_log.cpp | 2 +- hphp/runtime/base/server/access_log.h | 2 +- .../base/server/admin_request_handler.cpp | 12 +- hphp/runtime/base/server/http_server.cpp | 4 +- hphp/runtime/base/server/libevent_server.cpp | 4 +- .../base/server/libevent_transport.cpp | 2 +- hphp/runtime/base/server/libevent_transport.h | 4 +- hphp/runtime/base/server/pagelet_server.cpp | 8 +- hphp/runtime/base/server/pagelet_server.h | 4 +- hphp/runtime/base/server/replay_transport.cpp | 4 +- hphp/runtime/base/server/replay_transport.h | 2 +- hphp/runtime/base/server/server_stats.cpp | 56 ++-- hphp/runtime/base/server/server_stats.h | 54 ++-- hphp/runtime/base/server/transport.cpp | 4 +- hphp/runtime/base/server/transport.h | 14 +- hphp/runtime/base/server/virtual_host.cpp | 8 +- hphp/runtime/base/server/virtual_host.h | 8 +- hphp/runtime/base/server/xbox_server.cpp | 2 +- .../base/shared/concurrent_shared_store.cpp | 28 +- .../base/shared/concurrent_shared_store.h | 10 +- hphp/runtime/base/shared/immutable_map.cpp | 2 +- hphp/runtime/base/shared/immutable_map.h | 2 +- hphp/runtime/base/shared/immutable_obj.cpp | 4 +- hphp/runtime/base/shared/immutable_obj.h | 2 +- hphp/runtime/base/shared/shared_map.cpp | 18 +- hphp/runtime/base/shared/shared_map.h | 18 +- .../runtime/base/shared/shared_store_base.cpp | 20 +- hphp/runtime/base/shared/shared_store_base.h | 30 +-- .../base/shared/shared_store_stats.cpp | 22 +- hphp/runtime/base/shared/shared_store_stats.h | 28 +- hphp/runtime/base/shared/shared_string.h | 2 +- hphp/runtime/base/shared/shared_variant.cpp | 6 +- hphp/runtime/base/shared/shared_variant.h | 32 +-- hphp/runtime/base/string_data.cpp | 36 +-- hphp/runtime/base/string_data.h | 28 +- hphp/runtime/base/string_util.cpp | 2 +- hphp/runtime/base/string_util.h | 2 +- hphp/runtime/base/time/dateinterval.h | 30 +-- hphp/runtime/base/time/datetime.cpp | 8 +- hphp/runtime/base/time/datetime.h | 10 +- hphp/runtime/base/time/timestamp.cpp | 4 +- hphp/runtime/base/time/timestamp.h | 4 +- hphp/runtime/base/tv_helpers.cpp | 2 +- hphp/runtime/base/type_array.cpp | 28 +- hphp/runtime/base/type_array.h | 72 +++--- hphp/runtime/base/type_conversions.h | 54 ++-- hphp/runtime/base/type_object.cpp | 2 +- hphp/runtime/base/type_object.h | 20 +- hphp/runtime/base/type_string.cpp | 14 +- hphp/runtime/base/type_string.h | 48 ++-- hphp/runtime/base/type_variant.cpp | 190 +++++++------- hphp/runtime/base/type_variant.h | 144 +++++------ hphp/runtime/base/util/string_buffer.cpp | 4 +- hphp/runtime/base/util/string_buffer.h | 2 +- hphp/runtime/base/util/thrift_buffer.cpp | 32 +-- hphp/runtime/base/util/thrift_buffer.h | 30 +-- hphp/runtime/base/variable_serializer.cpp | 4 +- hphp/runtime/base/variable_serializer.h | 8 +- hphp/runtime/base/variable_unserializer.cpp | 4 +- hphp/runtime/base/variable_unserializer.h | 2 +- hphp/runtime/base/zend/zend_collator.cpp | 6 +- hphp/runtime/base/zend/zend_functions.cpp | 14 +- hphp/runtime/base/zend/zend_functions.h | 4 +- hphp/runtime/base/zend/zend_ini.tab.cpp | 2 +- hphp/runtime/base/zend/zend_math.h | 8 +- hphp/runtime/base/zend/zend_pack.cpp | 18 +- hphp/runtime/base/zend/zend_pack.h | 2 +- hphp/runtime/base/zend/zend_printf.cpp | 22 +- hphp/runtime/base/zend/zend_rand.cpp | 38 +-- hphp/runtime/base/zend/zend_string.cpp | 4 +- hphp/runtime/eval/debugger/break_point.cpp | 6 +- hphp/runtime/eval/debugger/break_point.h | 30 +-- hphp/runtime/eval/debugger/cmd/cmd_example.h | 2 +- .../eval/debugger/cmd/cmd_flow_control.h | 2 +- hphp/runtime/eval/debugger/cmd/cmd_info.cpp | 4 +- hphp/runtime/eval/debugger/cmd/cmd_info.h | 2 +- .../eval/debugger/cmd/cmd_instrument.cpp | 2 +- .../eval/debugger/cmd/cmd_instrument.h | 2 +- .../runtime/eval/debugger/cmd/cmd_interrupt.h | 8 +- hphp/runtime/eval/debugger/cmd/cmd_jump.h | 2 +- hphp/runtime/eval/debugger/cmd/cmd_list.cpp | 2 +- hphp/runtime/eval/debugger/cmd/cmd_list.h | 4 +- hphp/runtime/eval/debugger/cmd/cmd_print.cpp | 4 +- hphp/runtime/eval/debugger/cmd/cmd_signal.h | 2 +- hphp/runtime/eval/debugger/cmd/cmd_thread.cpp | 2 +- hphp/runtime/eval/debugger/debugger.cpp | 6 +- hphp/runtime/eval/debugger/debugger.h | 6 +- hphp/runtime/eval/debugger/debugger_base.cpp | 4 +- hphp/runtime/eval/debugger/debugger_base.h | 4 +- .../runtime/eval/debugger/debugger_client.cpp | 12 +- hphp/runtime/eval/debugger/debugger_client.h | 8 +- .../eval/debugger/debugger_command.cpp | 4 +- hphp/runtime/eval/debugger/debugger_proxy.cpp | 12 +- hphp/runtime/eval/debugger/debugger_proxy.h | 6 +- hphp/runtime/eval/debugger/inst_point.cpp | 4 +- hphp/runtime/eval/debugger/inst_point.h | 2 +- hphp/runtime/eval/runtime/file_repository.h | 4 +- hphp/runtime/ext/asio/wait_handle.cpp | 2 +- hphp/runtime/ext/ext_apc.cpp | 86 +++---- hphp/runtime/ext/ext_apc.h | 44 ++-- hphp/runtime/ext/ext_array.cpp | 72 +++--- hphp/runtime/ext/ext_array.h | 52 ++-- hphp/runtime/ext/ext_asio.h | 2 +- hphp/runtime/ext/ext_bcmath.cpp | 20 +- hphp/runtime/ext/ext_bcmath.h | 18 +- hphp/runtime/ext/ext_bzip2.cpp | 4 +- hphp/runtime/ext/ext_bzip2.h | 2 +- hphp/runtime/ext/ext_collection.cpp | 106 ++++---- hphp/runtime/ext/ext_collection.h | 90 +++---- hphp/runtime/ext/ext_continuation.cpp | 16 +- hphp/runtime/ext/ext_continuation.h | 20 +- hphp/runtime/ext/ext_ctype.cpp | 2 +- hphp/runtime/ext/ext_curl.cpp | 18 +- hphp/runtime/ext/ext_curl.h | 6 +- hphp/runtime/ext/ext_datetime.cpp | 44 ++-- hphp/runtime/ext/ext_datetime.h | 80 +++--- hphp/runtime/ext/ext_debugger.cpp | 38 +-- hphp/runtime/ext/ext_debugger.h | 36 +-- hphp/runtime/ext/ext_domdocument.cpp | 56 ++-- hphp/runtime/ext/ext_domdocument.h | 46 ++-- hphp/runtime/ext/ext_error.cpp | 2 +- hphp/runtime/ext/ext_error.h | 2 +- hphp/runtime/ext/ext_fb.cpp | 50 ++-- hphp/runtime/ext/ext_fb.h | 44 ++-- hphp/runtime/ext/ext_file.cpp | 110 ++++---- hphp/runtime/ext/ext_file.h | 28 +- hphp/runtime/ext/ext_function.cpp | 2 +- hphp/runtime/ext/ext_function.h | 2 +- hphp/runtime/ext/ext_hash.cpp | 6 +- hphp/runtime/ext/ext_hash.h | 6 +- hphp/runtime/ext/ext_hotprofiler.cpp | 150 +++++------ hphp/runtime/ext/ext_iconv.cpp | 2 +- hphp/runtime/ext/ext_icu.cpp | 14 +- hphp/runtime/ext/ext_icu.h | 14 +- hphp/runtime/ext/ext_icu_ucnv.cpp | 20 +- hphp/runtime/ext/ext_icu_ucnv.h | 100 ++++---- hphp/runtime/ext/ext_icu_ucsdet.cpp | 2 +- hphp/runtime/ext/ext_icu_ucsdet.h | 2 +- hphp/runtime/ext/ext_icu_uspoof.cpp | 14 +- hphp/runtime/ext/ext_icu_uspoof.h | 14 +- hphp/runtime/ext/ext_image.cpp | 18 +- hphp/runtime/ext/ext_image.h | 6 +- hphp/runtime/ext/ext_imagesprite.cpp | 12 +- hphp/runtime/ext/ext_imap.cpp | 146 +++++------ hphp/runtime/ext/ext_imap.h | 54 ++-- hphp/runtime/ext/ext_intl.cpp | 122 ++++----- hphp/runtime/ext/ext_intl.h | 120 ++++----- hphp/runtime/ext/ext_ipc.cpp | 62 ++--- hphp/runtime/ext/ext_ipc.h | 30 +-- hphp/runtime/ext/ext_iterator.cpp | 20 +- hphp/runtime/ext/ext_iterator.h | 8 +- hphp/runtime/ext/ext_json.cpp | 28 +- hphp/runtime/ext/ext_json.h | 24 +- hphp/runtime/ext/ext_ldap.cpp | 10 +- hphp/runtime/ext/ext_ldap.h | 4 +- hphp/runtime/ext/ext_magick.cpp | 56 ++-- hphp/runtime/ext/ext_magick.h | 56 ++-- hphp/runtime/ext/ext_mailparse.cpp | 2 +- hphp/runtime/ext/ext_mailparse.h | 2 +- hphp/runtime/ext/ext_math.cpp | 26 +- hphp/runtime/ext/ext_math.h | 28 +- hphp/runtime/ext/ext_mb.cpp | 4 +- hphp/runtime/ext/ext_mb.h | 2 +- hphp/runtime/ext/ext_mcrypt.cpp | 22 +- hphp/runtime/ext/ext_mcrypt.h | 16 +- hphp/runtime/ext/ext_memcache.cpp | 18 +- hphp/runtime/ext/ext_memcache.h | 14 +- hphp/runtime/ext/ext_memcached.cpp | 194 +++++++------- hphp/runtime/ext/ext_memcached.h | 120 ++++----- hphp/runtime/ext/ext_misc.cpp | 16 +- hphp/runtime/ext/ext_misc.h | 12 +- hphp/runtime/ext/ext_mysql.cpp | 38 +-- hphp/runtime/ext/ext_mysql.h | 34 +-- hphp/runtime/ext/ext_network.cpp | 10 +- hphp/runtime/ext/ext_network.h | 4 +- hphp/runtime/ext/ext_openssl.cpp | 8 +- hphp/runtime/ext/ext_openssl.h | 6 +- hphp/runtime/ext/ext_options.cpp | 46 ++-- hphp/runtime/ext/ext_options.h | 30 +-- hphp/runtime/ext/ext_output.cpp | 4 +- hphp/runtime/ext/ext_output.h | 10 +- hphp/runtime/ext/ext_pdo.cpp | 242 +++++++++--------- hphp/runtime/ext/ext_pdo.h | 190 +++++++------- hphp/runtime/ext/ext_posix.h | 18 +- hphp/runtime/ext/ext_preg.cpp | 2 +- hphp/runtime/ext/ext_preg.h | 2 +- hphp/runtime/ext/ext_process.cpp | 10 +- hphp/runtime/ext/ext_process.h | 16 +- hphp/runtime/ext/ext_server.cpp | 18 +- hphp/runtime/ext/ext_server.h | 18 +- hphp/runtime/ext/ext_session.cpp | 22 +- hphp/runtime/ext/ext_session.h | 4 +- hphp/runtime/ext/ext_simplexml.cpp | 16 +- hphp/runtime/ext/ext_simplexml.h | 10 +- hphp/runtime/ext/ext_soap.cpp | 20 +- hphp/runtime/ext/ext_soap.h | 8 +- hphp/runtime/ext/ext_socket.cpp | 6 +- hphp/runtime/ext/ext_socket.h | 2 +- hphp/runtime/ext/ext_spl.cpp | 8 +- hphp/runtime/ext/ext_spl.h | 2 +- hphp/runtime/ext/ext_splfile.cpp | 40 +-- hphp/runtime/ext/ext_splfile.h | 40 +-- hphp/runtime/ext/ext_sqlite3.cpp | 62 ++--- hphp/runtime/ext/ext_sqlite3.h | 54 ++-- hphp/runtime/ext/ext_stream.cpp | 4 +- hphp/runtime/ext/ext_stream.h | 4 +- hphp/runtime/ext/ext_string.cpp | 4 +- hphp/runtime/ext/ext_string.h | 32 +-- hphp/runtime/ext/ext_thread.cpp | 4 +- hphp/runtime/ext/ext_thread.h | 4 +- hphp/runtime/ext/ext_thrift.h | 4 +- hphp/runtime/ext/ext_url.cpp | 2 +- hphp/runtime/ext/ext_variable.cpp | 2 +- hphp/runtime/ext/ext_variable.h | 34 +-- hphp/runtime/ext/ext_xml.cpp | 12 +- hphp/runtime/ext/ext_xml.h | 12 +- hphp/runtime/ext/ext_xmlreader.cpp | 56 ++-- hphp/runtime/ext/ext_xmlreader.h | 56 ++-- hphp/runtime/ext/ext_zlib.cpp | 4 +- hphp/runtime/ext/ext_zlib.h | 12 +- hphp/runtime/ext/hash/hash_sha.cpp | 46 ++-- hphp/runtime/ext/hash/hash_tiger.cpp | 22 +- hphp/runtime/ext/hash/hash_whirlpool.cpp | 30 +-- hphp/runtime/ext/hash/php_hash_tiger_tables.h | 2 +- .../ext/hash/php_hash_whirlpool_tables.h | 18 +- hphp/runtime/ext/pdo_driver.cpp | 12 +- hphp/runtime/ext/pdo_driver.h | 16 +- hphp/runtime/ext/pdo_mysql.cpp | 28 +- hphp/runtime/ext/pdo_sqlite.cpp | 20 +- hphp/runtime/ext/soap/encoding.cpp | 20 +- hphp/runtime/ext/soap/soap.h | 4 +- hphp/runtime/ext/thrift/binary.cpp | 10 +- hphp/runtime/ext/thrift/compact.cpp | 2 +- hphp/runtime/ext/thrift/transport.h | 2 +- hphp/runtime/ext_hhvm/ext_hhvm_noinline.cpp | 64 ++--- hphp/runtime/vm/as.cpp | 4 +- hphp/runtime/vm/bytecode.cpp | 46 ++-- hphp/runtime/vm/bytecode.h | 10 +- hphp/runtime/vm/class.cpp | 10 +- hphp/runtime/vm/class.h | 6 +- hphp/runtime/vm/func.cpp | 12 +- hphp/runtime/vm/func.h | 6 +- hphp/runtime/vm/hhbc.cpp | 10 +- hphp/runtime/vm/hhbc.h | 8 +- hphp/runtime/vm/instrumentation.h | 4 +- hphp/runtime/vm/instrumentation_hook.h | 6 +- hphp/runtime/vm/member_operations.h | 36 +-- hphp/runtime/vm/name_value_table_wrapper.cpp | 16 +- hphp/runtime/vm/name_value_table_wrapper.h | 16 +- hphp/runtime/vm/repo_helpers.cpp | 6 +- hphp/runtime/vm/repo_helpers.h | 6 +- hphp/runtime/vm/runtime.cpp | 50 ++-- hphp/runtime/vm/runtime.h | 30 +-- hphp/runtime/vm/stats.cpp | 2 +- hphp/runtime/vm/translator/fixup.h | 4 +- hphp/runtime/vm/translator/hopt/codegen.cpp | 174 ++++++------- hphp/runtime/vm/translator/hopt/codegen.h | 18 +- hphp/runtime/vm/translator/hopt/dce.cpp | 4 +- .../vm/translator/hopt/hhbctranslator.cpp | 158 ++++++------ .../vm/translator/hopt/hhbctranslator.h | 138 +++++----- hphp/runtime/vm/translator/hopt/ir.cpp | 18 +- hphp/runtime/vm/translator/hopt/ir.h | 64 ++--- .../vm/translator/hopt/irtranslator.cpp | 6 +- .../runtime/vm/translator/hopt/linearscan.cpp | 66 ++--- .../runtime/vm/translator/hopt/simplifier.cpp | 20 +- hphp/runtime/vm/translator/hopt/simplifier.h | 2 +- .../vm/translator/hopt/tracebuilder.cpp | 198 +++++++------- .../runtime/vm/translator/hopt/tracebuilder.h | 110 ++++---- .../vm/translator/hopt/vectortranslator.cpp | 2 +- hphp/runtime/vm/translator/regalloc.cpp | 6 +- hphp/runtime/vm/translator/regalloc.h | 19 +- hphp/runtime/vm/translator/runtime-type.cpp | 10 +- hphp/runtime/vm/translator/runtime-type.h | 12 +- hphp/runtime/vm/translator/targetcache.cpp | 14 +- hphp/runtime/vm/translator/targetcache.h | 6 +- hphp/runtime/vm/translator/trans-data.h | 4 +- .../vm/translator/translator-runtime.cpp | 2 +- .../vm/translator/translator-runtime.h | 2 +- .../vm/translator/translator-x64-internal.h | 2 +- .../vm/translator/translator-x64-vector.cpp | 2 +- hphp/runtime/vm/translator/translator-x64.cpp | 138 +++++----- hphp/runtime/vm/translator/translator-x64.h | 4 +- hphp/runtime/vm/translator/translator.cpp | 36 +-- hphp/runtime/vm/translator/translator.h | 44 ++-- hphp/runtime/vm/translator/writelease.cpp | 8 +- hphp/runtime/vm/translator/writelease.h | 10 +- hphp/runtime/vm/type_profile.cpp | 2 +- hphp/runtime/vm/unit.cpp | 44 ++-- hphp/runtime/vm/unit.h | 54 ++-- hphp/runtime/vm/verifier/check_func.cpp | 10 +- hphp/test/test_cpp_base.cpp | 4 +- hphp/test/test_ext_array.cpp | 4 +- hphp/test/test_ext_fb.cpp | 4 +- hphp/test/test_ext_ipc.cpp | 4 +- hphp/test/test_ext_math.cpp | 2 +- hphp/test/test_ext_sqlite3.cpp | 4 +- hphp/test/test_ext_stream.cpp | 2 +- hphp/test/test_server.cpp | 2 +- hphp/test/test_util.cpp | 4 +- hphp/util/asm-x64.h | 2 +- hphp/util/base.h | 14 +- hphp/util/compatibility.cpp | 6 +- hphp/util/compatibility.h | 2 +- hphp/util/disasm.cpp | 6 +- hphp/util/file_cache.cpp | 2 +- hphp/util/file_cache.h | 2 +- hphp/util/hdf.cpp | 50 ++-- hphp/util/hdf.h | 150 +++++------ hphp/util/lfu_table.h | 2 +- hphp/util/light_process.cpp | 26 +- hphp/util/light_process.h | 2 +- hphp/util/lock.cpp | 4 +- hphp/util/lock.h | 2 +- hphp/util/parser/parser.cpp | 4 +- hphp/util/parser/parser.h | 2 +- hphp/util/stack_trace.cpp | 4 +- hphp/util/timer.cpp | 18 +- hphp/util/timer.h | 14 +- hphp/util/vdso.cpp | 6 +- hphp/util/vdso.h | 6 +- hphp/util/zend/zend_html.h | 2 +- 400 files changed, 4507 insertions(+), 4510 deletions(-) diff --git a/hphp/compiler/analysis/alias_manager.cpp b/hphp/compiler/analysis/alias_manager.cpp index 455910e017cb4..7637ea6e5d61f 100644 --- a/hphp/compiler/analysis/alias_manager.cpp +++ b/hphp/compiler/analysis/alias_manager.cpp @@ -4146,9 +4146,9 @@ void AliasManager::stringOptsRecur(StatementPtr s) { case Statement::KindOfBreakStatement: { BreakStatementPtr b = spc(BreakStatement, s); - int64 depth = b->getDepth(); + int64_t depth = b->getDepth(); if (depth != 1) { - int64 s = m_loopInfo.size() - 1; + int64_t s = m_loopInfo.size() - 1; if (s >= 0) { if (!depth || depth > s) depth = s; while (depth--) { diff --git a/hphp/compiler/analysis/analysis_result.h b/hphp/compiler/analysis/analysis_result.h index 6ff5db17f15c9..a2a3f51548d6d 100644 --- a/hphp/compiler/analysis/analysis_result.h +++ b/hphp/compiler/analysis/analysis_result.h @@ -275,8 +275,8 @@ class AnalysisResult : public BlockScope, public FunctionContainer { /** * Literal string to String precomputation */ - std::string getLiteralStringName(int64 hash, int index, bool iproxy = false); - std::string getLitVarStringName(int64 hash, int index, bool iproxy = false); + std::string getLiteralStringName(int64_t hash, int index, bool iproxy = false); + std::string getLitVarStringName(int64_t hash, int index, bool iproxy = false); int getLiteralStringId(const std::string &s, int &index); /** @@ -290,12 +290,12 @@ class AnalysisResult : public BlockScope, public FunctionContainer { int m_arrayLitstrKeyMaxSize; int m_arrayIntegerKeyMaxSize; - std::string getHashedName(int64 hash, int index, const char *prefix, + std::string getHashedName(int64_t hash, int index, const char *prefix, bool longName = false); void addNamedLiteralVarString(const std::string &s); void addNamedScalarVarArray(const std::string &s); StringToClassScopePtrVecMap getExtensionClasses(); - void addInteger(int64 n); + void addInteger(int64_t n); private: Package *m_package; bool m_parseOnDemand; diff --git a/hphp/compiler/analysis/emitter.cpp b/hphp/compiler/analysis/emitter.cpp index 8051621d06e09..590dee68cd38d 100644 --- a/hphp/compiler/analysis/emitter.cpp +++ b/hphp/compiler/analysis/emitter.cpp @@ -296,10 +296,10 @@ static int32_t countStackValues(const std::vector& immVec) { #define DEC_MA std::vector #define DEC_BLA std::vector& #define DEC_SLA std::vector& -#define DEC_IVA int32 -#define DEC_HA int32 -#define DEC_IA int32 -#define DEC_I64A int64 +#define DEC_IVA int32_t +#define DEC_HA int32_t +#define DEC_IA int32_t +#define DEC_I64A int64_t #define DEC_DA double #define DEC_SA const StringData* #define DEC_AA ArrayData* @@ -786,7 +786,7 @@ bool SymbolicStack::getNotRef() const { return se.notRef; } -void SymbolicStack::setInt(int64 v) { +void SymbolicStack::setInt(int64_t v) { assert(m_symStack.size()); m_symStack.back().intval = v; } @@ -932,7 +932,7 @@ int SymbolicStack::getLoc(int index) const { return m_symStack[index].intval; } -int64 SymbolicStack::getInt(int index) const { +int64_t SymbolicStack::getInt(int index) const { assert(m_symStack.size() > size_t(index)); assert(StackSym::GetSymFlavor(m_symStack[index].sym) == StackSym::I); return m_symStack[index].intval; @@ -1094,7 +1094,7 @@ void MetaInfoBuilder::setForUnit(UnitEmitter& target) const { vector index1; vector index2; - vector data; + vector data; index1.push_back(entries); size_t sz1 = (2 + entries) * sizeof(Offset); @@ -1114,8 +1114,8 @@ void MetaInfoBuilder::setForUnit(UnitEmitter& target) const { data.push_back(mi.m_data << 1); } else { union { - uint32 val; - uint8 bytes[4]; + uint32_t val; + uint8_t bytes[4]; } u; u.val = (mi.m_data << 1) | 1; for (int j = 0; j < 4; j++) { @@ -1128,7 +1128,7 @@ void MetaInfoBuilder::setForUnit(UnitEmitter& target) const { index2.push_back(sz1 + sz2 + data.size()); size_t size = sz1 + sz2 + data.size(); - uint8* meta = (uint8*)malloc(size); + uint8_t* meta = (uint8_t*)malloc(size); memcpy(meta, &index1[0], sz1); memcpy(meta + sz1, &index2[0], sz2); memcpy(meta + sz1 + sz2, &data[0], data.size()); @@ -1953,7 +1953,7 @@ bool EmitterVisitor::visitImpl(ConstructPtr node) { case Statement::KindOfContinueStatement: case Statement::KindOfBreakStatement: { BreakStatementPtr bs(static_pointer_cast(s)); - int64 n = bs->getDepth(); + int64_t n = bs->getDepth(); if (n == 1) { // Plain old "break;" or "continue;" if (m_contTargets.empty()) { @@ -1985,7 +1985,7 @@ bool EmitterVisitor::visitImpl(ConstructPtr node) { emitConvertToCell(e); } else { // Dynamic break/continue with statically known depth. - if (n > (int64)m_contTargets.size()) { + if (n > (int64_t)m_contTargets.size()) { std::ostringstream msg; msg << "Cannot break/continue " << n << " levels"; e.String(StringData::GetStaticString(msg.str())); @@ -3684,11 +3684,11 @@ bool EmitterVisitor::visitImpl(ConstructPtr node) { ScalarExpressionPtr sval( static_pointer_cast(key)); const std::string* s; - int64 i; + int64_t i; double d; if (sval->getString(s)) { StringData* sd = StringData::GetStaticString(*s); - int64 n = 0; + int64_t n = 0; if (sd->isStrictlyInteger(n)) { tvKey.m_data.num = n; tvKey.m_type = KindOfInt64; @@ -4101,9 +4101,9 @@ void EmitterVisitor::buildVectorImm(std::vector& vectorImm, encodeIvaToVector(vectorImm, m_evalStack.getLoc(i)); } else if (symFlavor == StackSym::T) { assert(strid != -1); - encodeToVector(vectorImm, strid); + encodeToVector(vectorImm, strid); } else if (symFlavor == StackSym::I) { - encodeToVector(vectorImm, m_evalStack.getInt(i)); + encodeToVector(vectorImm, m_evalStack.getInt(i)); } ++i; @@ -4968,7 +4968,7 @@ DataType EmitterVisitor::analyzeSwitch(SwitchStatementPtr sw, } else { return KindOfInvalid; } - int64 n; + int64_t n; bool isNonZero; if (t == KindOfInt64) { n = cval.asInt64Val(); @@ -5002,8 +5002,8 @@ DataType EmitterVisitor::analyzeSwitch(SwitchStatementPtr sw, } if (t == KindOfInt64) { - int64 base = caseMap.begin()->first; - int64 nTargets = caseMap.rbegin()->first - base + 1; + int64_t base = caseMap.begin()->first; + int64_t nTargets = caseMap.rbegin()->first - base + 1; // Fail if the cases are too sparse if ((float)caseMap.size() / nTargets < 0.5) { return KindOfInvalid; @@ -5021,8 +5021,8 @@ void EmitterVisitor::emitIntegerSwitch(Emitter& e, SwitchStatementPtr sw, std::vector