Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2483)

Issue 2381843002: Add Smi::Zero and replace all Smi::FromInt(0) calls (Closed)

Created:
4 years, 2 months ago by jgruber
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, Yang, v8-mips-ports_googlegroups.com, rmcilroy, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add Smi::Zero and replace all Smi::FromInt(0) calls BUG= Committed: https://crrev.com/7db0ecdec3cf330766575cb7973b983f3f1e3020 Committed: https://crrev.com/9ef4c3af2502d2f6757ffc0c0ff67242d49f7521 Cr-Original-Commit-Position: refs/heads/master@{#40080} Cr-Commit-Position: refs/heads/master@{#40087}

Patch Set 1 #

Patch Set 2 : Change to kZero constant #

Patch Set 3 : Rebase #

Patch Set 4 : Mark Smi::kZero as V8_EXPORT_PRIVATE #

Patch Set 5 : Mark Smi::kZero as V8_EXPORT_PRIVATE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -482 lines) Patch
M src/accessors.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/api.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/api.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ast/ast.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/ast/scopeinfo.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/builtins/arm/builtins-arm.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/builtins/builtins-array.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-conversion.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-dataview.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-function.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-math.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-string.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M src/builtins/ppc/builtins-ppc.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M src/builtins/s390/builtins-s390.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/builtins/x87/builtins-x87.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 6 chunks +6 lines, -9 lines 0 comments Download
M src/code-stubs.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M src/compiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/code-generator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/lithium-codegen.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/ppc/lithium-codegen-ppc.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/s390/lithium-codegen-s390.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/crankshaft/x87/lithium-codegen-x87.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/date.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/debug/liveedit.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/deoptimizer.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/elements.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 9 chunks +9 lines, -9 lines 0 comments Download
M src/field-type.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 6 chunks +6 lines, -10 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/full-codegen/s390/full-codegen-s390.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M src/heap/heap.cc View 1 2 18 chunks +26 lines, -27 lines 0 comments Download
M src/heap/heap-inl.h View 1 2 3 chunks +8 lines, -10 lines 0 comments Download
M src/heap/incremental-marking.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 10 chunks +16 lines, -16 lines 0 comments Download
M src/heap/spaces.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 6 chunks +6 lines, -7 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/ic/arm64/ic-arm64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ic/x64/ic-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/keys.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/layout-descriptor-inl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 15 chunks +24 lines, -27 lines 0 comments Download
M src/objects-debug.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 2 11 chunks +14 lines, -16 lines 0 comments Download
M src/ppc/code-stubs-ppc.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/ppc/macro-assembler-ppc.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/property.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/regexp/jsregexp.cc View 1 6 chunks +11 lines, -11 lines 0 comments Download
M src/runtime/runtime-array.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-collections.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-literals.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-strings.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/s390/code-stubs-s390.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/s390/macro-assembler-s390.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/snapshot/deserializer.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/snapshot/serializer-common.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/transitions.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/transitions-inl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/type-feedback-vector.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/x87/code-stubs-x87.cc View 1 2 6 chunks +6 lines, -7 lines 0 comments Download
M src/x87/macro-assembler-x87.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 15 chunks +27 lines, -31 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/test-code-stub-assembler.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-dictionary.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-field-type-tracking.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-macro-assembler-x64.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-iterator-unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (28 generated)
jgruber
Just an idea to improve readability. I know I get annoyed every time I have ...
4 years, 2 months ago (2016-09-29 10:09:58 UTC) #4
Benedikt Meurer
I don't really care, I guess this is something that you'd want to bring up ...
4 years, 2 months ago (2016-09-29 11:19:47 UTC) #7
Michael Starzinger
+1 from my end. I like it.
4 years, 2 months ago (2016-09-29 11:35:07 UTC) #8
Yang
src/{debug,regexp,snapshot}/* lgtm.
4 years, 2 months ago (2016-10-04 11:34:25 UTC) #14
Michael Starzinger
LGTM (reviewed objects files, rubber-stamped the rest).
4 years, 2 months ago (2016-10-07 09:32:56 UTC) #15
ahaas
On 2016/10/07 at 09:32:56, mstarzinger wrote: > LGTM (reviewed objects files, rubber-stamped the rest). wasm ...
4 years, 2 months ago (2016-10-07 09:36:58 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381843002/40001
4 years, 2 months ago (2016-10-07 10:32:21 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/25919)
4 years, 2 months ago (2016-10-07 10:39:31 UTC) #21
Benedikt Meurer
LGTM (rubber-stamped)
4 years, 2 months ago (2016-10-07 10:46:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381843002/40001
4 years, 2 months ago (2016-10-07 10:47:21 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-07 11:03:32 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/7db0ecdec3cf330766575cb7973b983f3f1e3020 Cr-Commit-Position: refs/heads/master@{#40080}
4 years, 2 months ago (2016-10-07 11:03:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381843002/80001
4 years, 2 months ago (2016-10-07 13:01:22 UTC) #39
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-07 13:05:17 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 13:05:38 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9ef4c3af2502d2f6757ffc0c0ff67242d49f7521
Cr-Commit-Position: refs/heads/master@{#40087}

Powered by Google App Engine
This is Rietveld 408576698