cfc6a5c2c6
There is no good reason to have the meat of most objects' initialization
logic in heap.cc, all wrapped by the CALL_HEAP_FUNCTION macro. Instead,
this CL changes the protocol between Heap and Factory to be AllocateRaw,
and all object initialization work after (possibly retried) successful
raw allocation happens in the Factory.
This saves about 20KB of binary size on x64.
Original review: https://chromium-review.googlesource.com/c/v8/v8/+/959533
Originally landed as r52416 / f9a2e24bbc
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Id072cbe6b3ed30afd339c7e502844b99ca12a647
Reviewed-on: https://chromium-review.googlesource.com/1000540
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52492}
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
include_rules = [
|
|
"+base/trace_event/common/trace_event_common.h",
|
|
"+src",
|
|
"-src/asmjs",
|
|
"+src/asmjs/asm-js.h",
|
|
"-src/compiler",
|
|
"+src/compiler/pipeline.h",
|
|
"+src/compiler/code-assembler.h",
|
|
"+src/compiler/wasm-compiler.h",
|
|
"-src/heap",
|
|
"+src/heap/factory.h",
|
|
"+src/heap/factory-inl.h",
|
|
"+src/heap/heap.h",
|
|
"+src/heap/heap-inl.h",
|
|
"-src/inspector",
|
|
"-src/interpreter",
|
|
"+src/interpreter/bytecode-array-accessor.h",
|
|
"+src/interpreter/bytecode-array-iterator.h",
|
|
"+src/interpreter/bytecode-array-random-iterator.h",
|
|
"+src/interpreter/bytecode-decoder.h",
|
|
"+src/interpreter/bytecode-flags.h",
|
|
"+src/interpreter/bytecode-register.h",
|
|
"+src/interpreter/bytecodes.h",
|
|
"+src/interpreter/interpreter.h",
|
|
"+src/interpreter/setup-interpreter.h",
|
|
"-src/trap-handler",
|
|
"+src/trap-handler/trap-handler.h",
|
|
"+testing/gtest/include/gtest/gtest_prod.h",
|
|
"-src/libplatform",
|
|
"-include/libplatform"
|
|
]
|
|
|
|
specific_include_rules = {
|
|
"d8\.cc": [
|
|
"+include/libplatform/libplatform.h",
|
|
"+include/libplatform/v8-tracing.h",
|
|
],
|
|
}
|