v8/test/cctest
ofrobots f583661784 [heap] make inline allocation step size dynamic
Presently the inline allocation step is a static value defined to be the minimum
of the step sizes over all the observers. The step occur every (approx.) step
byte. This is unfair to observers whose steps are not evenly divisible by the
min step size. For example, consider two observers with steps sizes of 512 and
576 bytes. Across 16kb allocated, you would expect the first observer to be hit
approximately 32 times, and the second observer to be hit approximately 28
times.

In reality, the observers get notified 30 and 15 times respectively. The reason
is that each step is 512 bytes, and since 576 is not evenly divisible by 512,
it gets notified much less frequently.

This CL fixes the problem by making the next step size be the minimum (over all
observers) of the remaining bytes to get to the step, making the steps fair.

BUG=
R=hpayer@chromium.org,ulan@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#31948}
2015-11-11 20:55:48 +00:00
..
compiler Implemented the RoundUint64ToFloat64 TurboFan operator for x64 and arm64. 2015-11-11 19:12:37 +00:00
interpreter [Interpreter] Add support for new.target 2015-11-06 15:46:10 +00:00
cctest.cc [cctest] adding --help option to output basic information about cctest 2015-09-29 08:41:43 +00:00
cctest.gyp Revert changes introduced in http://crrev.com/1367953002. 2015-11-10 21:00:18 +00:00
cctest.h [heap] inline allocation steps refactor 2015-11-05 04:45:33 +00:00
cctest.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
cctest.status X87: Change the test case for X87 float operations 2015-11-05 00:15:30 +00:00
DEPS Add DEPS files and run checkdeps in presubmit check 2014-06-03 13:39:42 +00:00
expression-type-collector-macros.h Refactor type collector testing macros. 2015-08-31 19:17:09 +00:00
expression-type-collector.cc Remove unused Zone argument from InitializeAstVisitor 2015-10-15 10:34:28 +00:00
expression-type-collector.h Remove unused Zone argument from InitializeAstVisitor 2015-10-15 10:34:28 +00:00
gay-fixed.cc Cosmetic changes to tests to make it easier to concatenate them. 2015-06-01 22:47:08 +00:00
gay-fixed.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
gay-precision.cc Cosmetic changes to tests to make it easier to concatenate them. 2015-06-01 22:47:08 +00:00
gay-precision.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
gay-shortest.cc Cosmetic changes to tests to make it easier to concatenate them. 2015-06-01 22:47:08 +00:00
gay-shortest.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
heap-tester.h Add the rate of js invocations from the api as a signal of idleness 2015-10-29 14:00:04 +00:00
log-eq-of-logging-and-traversal.js Fix test-log/EquivalenceOfLoggingAndTraversal 2013-08-26 14:56:23 +00:00
OWNERS Add per-file OWNERS for x87-specific cctests. 2015-08-14 16:02:32 +00:00
print-extension.cc Cosmetic changes to tests to make it easier to concatenate them. 2015-06-01 22:47:08 +00:00
print-extension.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
profiler-extension.cc Cosmetic changes to tests to make it easier to concatenate them. 2015-06-01 22:47:08 +00:00
profiler-extension.h Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-accessors.cc Mark GetCallingContext as soon-to-be deprecated 2015-11-02 19:23:13 +00:00
test-alloc.cc [test] Move away from deprecated API for heap-related tests. 2015-11-09 19:48:44 +00:00
test-api-accessors.cc Allow JavaScript accessors on API objects. 2015-09-29 11:16:14 +00:00
test-api-interceptors.cc Reland v8::Private and related APIs 2015-10-29 14:17:33 +00:00
test-api.cc Re-ship @@toStringTag 2015-11-05 23:47:12 +00:00
test-api.h Move heap and CPU profilers into a dedicated directory. 2015-09-28 19:34:18 +00:00
test-array-list.cc [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
test-asm-validator.cc Allow constant heap accesses in asm typer. 2015-11-10 02:00:03 +00:00
test-assembler-arm64.cc [arm64] Fix some signed/unsigned type inconsistencies. 2015-10-08 11:32:48 +00:00
test-assembler-arm.cc Enable ARMv8 32-bit build. 2015-10-30 14:10:55 +00:00
test-assembler-ia32.cc Removed src/{isolate,property-details,utils}-inl.h 2015-04-21 10:21:37 +00:00
test-assembler-mips64.cc MIPS: Fix movz_movn test failure with Clang. 2015-10-13 22:16:16 +00:00
test-assembler-mips.cc MIPS: Fix movz_movn test failure with Clang. 2015-10-13 22:16:16 +00:00
test-assembler-ppc.cc Replace OFFSET_OF with offsetof as far as possible. 2015-06-17 09:06:56 +00:00
test-assembler-x64.cc [x64] Implement vcvtsd2si AVX instruction. 2015-10-24 18:55:57 +00:00
test-assembler-x87.cc Removed src/{isolate,property-details,utils}-inl.h 2015-04-21 10:21:37 +00:00
test-ast-expression-visitor.cc Remove unused Zone argument from InitializeAstVisitor 2015-10-15 10:34:28 +00:00
test-ast.cc Remove the dependency of Zone on Isolate 2015-01-23 15:20:00 +00:00
test-atomicops.cc Reland: Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again. 2015-10-08 19:03:24 +00:00
test-bignum-dtoa.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-bignum.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-bit-vector.cc Remove the dependency of Zone on Isolate 2015-01-23 15:20:00 +00:00
test-circular-queue.cc Move heap and CPU profilers into a dedicated directory. 2015-09-28 19:34:18 +00:00
test-code-stubs-arm64.cc Re-reland: Remove register index/code indirection 2015-10-02 16:55:22 +00:00
test-code-stubs-arm.cc Re-reland: Remove register index/code indirection 2015-10-02 16:55:22 +00:00
test-code-stubs-ia32.cc Re-reland: Remove register index/code indirection 2015-10-02 16:55:22 +00:00
test-code-stubs-mips64.cc For some platform such as X87, Crankshaft and Turbofan needs to use different 2015-10-22 13:24:49 +00:00
test-code-stubs-mips.cc Re-reland: Remove register index/code indirection 2015-10-02 16:55:22 +00:00
test-code-stubs-x64.cc For some platform such as X87, Crankshaft and Turbofan needs to use different 2015-10-22 13:24:49 +00:00
test-code-stubs-x87.cc X87: Re-reland: Remove register index/code indirection. 2015-10-23 07:58:47 +00:00
test-code-stubs.cc Fix the test-code-stubs tests. 2015-01-30 13:36:13 +00:00
test-code-stubs.h Introduce x87 port 2014-05-23 16:37:27 +00:00
test-compiler.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-constantpool.cc Add support for Embedded Constant Pools for PPC and Arm 2015-06-04 14:44:15 +00:00
test-conversions.cc fix special index parsing 2015-03-30 11:41:15 +00:00
test-cpu-profiler.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-date.cc Start removing deprecated APIs from cctest 2015-09-07 14:44:56 +00:00
test-debug.cc [debugger] Re-enable --always-opt in one debugger test. 2015-11-03 14:15:32 +00:00
test-decls.cc Minor performance improvements to the LookupIterator 2015-07-01 12:20:10 +00:00
test-deoptimization.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-dictionary.cc Reland v8::Private and related APIs 2015-10-29 14:17:33 +00:00
test-disasm-arm64.cc [assembler] Introduce proper AssemblerBase::Print() for improved debuggability. 2015-11-09 05:39:38 +00:00
test-disasm-arm.cc Debugger: move implementation to a separate folder. 2015-07-31 11:08:15 +00:00
test-disasm-ia32.cc Realize IWYU pattern for frames-inl.h header. 2015-08-12 10:28:47 +00:00
test-disasm-mips64.cc Debugger: move implementation to a separate folder. 2015-07-31 11:08:15 +00:00
test-disasm-mips.cc MIPS: Fix 'MIPS:r6 compact branch optimization.' 2015-11-10 17:16:09 +00:00
test-disasm-ppc.cc PPC: Remove register index/code indirection 2015-10-05 19:45:44 +00:00
test-disasm-x64.cc [x64] Implement vcvtsd2si AVX instruction. 2015-10-24 18:55:57 +00:00
test-disasm-x87.cc X87: Realize IWYU pattern for frames-inl.h header. 2015-08-17 00:40:41 +00:00
test-diy-fp.cc Move platform abstraction to base library 2014-06-30 13:25:46 +00:00
test-double.cc Remove deprecated v8::base::OS::nan_value(). 2015-01-21 14:38:58 +00:00
test-dtoa.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-elements-kind.cc [cctest] adding tests for elements kind map migrations 2015-10-02 15:14:27 +00:00
test-experimental-extra.js Add experimental, non-snapshotted V8 extras 2015-08-20 00:01:14 +00:00
test-extra.js Add methods to extras' InternalPackedArray 2015-10-14 17:40:54 +00:00
test-fast-dtoa.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-feedback-vector.cc Remove deprecated APIs from cctest/test-feedback-vector 2015-10-26 13:10:29 +00:00
test-feedback-vector.h The metadata part of TypeFeedbackVector is extracted to TypeFeedbackMetadata array. 2015-10-07 10:33:32 +00:00
test-field-type-tracking.cc [cctest] adding tests for elements kind map migrations 2015-10-02 15:14:27 +00:00
test-fixed-dtoa.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-flags.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-func-name-inference.cc Debugger: move implementation to a separate folder. 2015-07-31 11:08:15 +00:00
test-fuzz-arm64.cc [assembler] Introduce proper AssemblerBase::Print() for improved debuggability. 2015-11-09 05:39:38 +00:00
test-gc-tracer.cc [heap] Hide GCTracer inside the heap component. 2015-08-20 15:48:12 +00:00
test-global-handles.cc Using override keyword in ObjectVisitor class hierarchy. 2015-11-05 09:32:38 +00:00
test-global-object.cc [runtime-object]: part fix element key list on global object 2015-10-05 14:23:26 +00:00
test-hashing.cc Move hash code from hidden string to a private symbol 2015-05-26 11:26:36 +00:00
test-hashmap.cc Add basic API support for Map & Set 2015-05-26 17:37:01 +00:00
test-heap-profiler.cc Remove JSBuiltinsObject. 2015-11-02 13:04:34 +00:00
test-heap.cc [test] Move away from deprecated API for heap-related tests. 2015-11-09 19:48:44 +00:00
test-hydrogen-types.cc Move Hydrogen and Lithium to src/crankshaft/ 2015-10-20 13:25:55 +00:00
test-identity-map.cc Canonicalize handles for optimized compilation. 2015-10-26 15:33:20 +00:00
test-incremental-marking.cc [test] Move away from deprecated API for heap-related tests. 2015-11-09 19:48:44 +00:00
test-javascript-arm64.cc Serializer: move to a subfolder and clean up includes. 2015-03-27 15:29:07 +00:00
test-js-arm64-variables.cc Serializer: move to a subfolder and clean up includes. 2015-03-27 15:29:07 +00:00
test-list.cc Use full include paths everywhere 2014-06-03 08:12:43 +00:00
test-liveedit.cc Debugger: move implementation to a separate folder. 2015-07-31 11:08:15 +00:00
test-lockers.cc Move SmartPointer to base. 2015-07-13 12:38:17 +00:00
test-log-stack-tracer.cc [turbofan] Fix various issues with --turbo-inlining enabled. 2015-10-15 12:02:06 +00:00
test-log.cc Reland improve perf_basic_prof filename reporting 2015-10-13 12:45:31 +00:00
test-macro-assembler-arm.cc Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". 2015-01-30 09:29:41 +00:00
test-macro-assembler-ia32.cc Serializer: move to a subfolder and clean up includes. 2015-03-27 15:29:07 +00:00
test-macro-assembler-mips64.cc MIPS64: Fix BlockTrampolinePoolFor() to emit trampoline before blocking, if needed. 2015-07-13 18:26:33 +00:00
test-macro-assembler-mips.cc MIPS: Fix BlockTrampolinePoolFor() to emit trampoline before blocking, if needed. 2015-07-13 07:28:38 +00:00
test-macro-assembler-x64.cc Remove more uses of the deprecated EnumSet template class. 2015-07-10 09:35:11 +00:00
test-macro-assembler-x87.cc Serializer: move to a subfolder and clean up includes. 2015-03-27 15:29:07 +00:00
test-mark-compact.cc Merge GlobalObject with JSGlobalObject. 2015-11-02 14:58:19 +00:00
test-mementos.cc Remove --pretenure-call-new 2015-09-16 15:12:43 +00:00
test-microtask-delivery.cc [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
test-object-observe.cc Remove JSBuiltinsObject. 2015-11-02 13:04:34 +00:00
test-parsing.cc Re-re-land "[es6] Implement destructuring binding in try/catch" 2015-11-05 20:21:50 +00:00
test-platform-linux.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-platform-win32.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-platform.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-profile-generator.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-random-number-generator.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-regexp.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-reloc-info.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-representation.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-sampler-api.cc [turbofan] Fix various issues with --turbo-inlining enabled. 2015-10-15 12:02:06 +00:00
test-serialize.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-simd.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-slots-buffer.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-spaces.cc [heap] make inline allocation step size dynamic 2015-11-11 20:55:48 +00:00
test-strings.cc [heap] Reland Remove retry space from AllocateRaw. 2015-09-29 09:08:22 +00:00
test-strtod.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-symbols.cc Continuing removing deprecated function from cctest 2015-10-08 09:48:20 +00:00
test-thread-termination.cc Map v8::Function to JSReceiver + IsCallable 2015-10-23 12:27:06 +00:00
test-threads.cc Continuing removing deprecated function from cctest 2015-09-21 10:34:59 +00:00
test-transitions.cc Continuing removing deprecated function from cctest 2015-09-21 10:34:59 +00:00
test-typedarrays.cc Continuing removing deprecated function from cctest 2015-09-21 10:34:59 +00:00
test-types.cc Move Hydrogen and Lithium to src/crankshaft/ 2015-10-20 13:25:55 +00:00
test-typing-reset.cc Remove unused Zone argument from InitializeAstVisitor 2015-10-15 10:34:28 +00:00
test-unbound-queue.cc Move heap and CPU profilers into a dedicated directory. 2015-09-28 19:34:18 +00:00
test-unboxed-doubles.cc [heap] Reland Remove retry space from AllocateRaw. 2015-09-29 09:08:22 +00:00
test-unique.cc Move Hydrogen and Lithium to src/crankshaft/ 2015-10-20 13:25:55 +00:00
test-unscopables-hidden-prototype.cc [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
test-utils-arm64.cc Continuing removing deprecated functions from cctests 2015-09-10 13:10:01 +00:00
test-utils-arm64.h ARM64: Enable shorten-64-to-32 warning 2015-05-15 05:13:11 +00:00
test-utils.cc Continuing removing deprecated functions from cctests 2015-09-10 13:10:01 +00:00
test-version.cc Continuing removing deprecated functions from cctests 2015-09-10 13:10:01 +00:00
test-weakmaps.cc [heap] Reland prepare code for smaller large object allocation limit than max allocatable memory. 2015-10-07 09:14:13 +00:00
test-weaksets.cc [heap] Reland prepare code for smaller large object allocation limit than max allocatable memory. 2015-10-07 09:14:13 +00:00
testcfg.py Fix test serialization path for windows. 2014-03-26 07:40:32 +00:00
trace-extension.cc Move heap and CPU profilers into a dedicated directory. 2015-09-28 19:34:18 +00:00
trace-extension.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00
types-fuzz.h [presubmit] Enable readability/namespace linter checking. 2015-09-30 13:47:11 +00:00