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

Issue 2043183003: Replace all remaining Oddball checks with new function (Closed)

Created:
4 years, 6 months ago by Camillo Bruni
Modified:
4 years, 6 months ago
CC:
oth, rmcilroy, v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Replace all remaining Oddball checks with new function This CL removes the IsUndefined() and Co. methods from Object and HeapObject. The new method all take the isolate as parameter. BUG= Committed: https://crrev.com/ccefb3ae5fe967288d568013fb04e8761eafebc5 Cr-Commit-Position: refs/heads/master@{#36921}

Patch Set 1 #

Patch Set 2 : simplifying checks #

Total comments: 6

Patch Set 3 : addressing nits #

Patch Set 4 : rebasing #

Patch Set 5 : rebase again #

Patch Set 6 : fixing cctest and unittest #

Patch Set 7 : fixing another test #

Patch Set 8 : rebasing #

Patch Set 9 : fixing wrong early return #

Patch Set 10 : keep em coming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -245 lines) Patch
M src/api.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 12 chunks +31 lines, -15 lines 0 comments Download
M src/api-natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/ast.cc View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -7 lines 0 comments Download
M src/ast/prettyprinter.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 9 chunks +11 lines, -10 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/access-info.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-call-reducer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-create-lowering.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-graph.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/crankshaft/hydrogen-instructions.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen-types.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M src/debug/debug-frames.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/elements.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M src/execution.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/s390/full-codegen-s390.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M src/futex-emulation.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/global-handles.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ic/handler-compiler.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/ic/ic.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M src/isolate-inl.h View 2 chunks +7 lines, -7 lines 0 comments Download
M src/json-parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/json-stringifier.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M src/log.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M src/lookup.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/messages.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 4 chunks +21 lines, -20 lines 0 comments Download
M src/objects.cc View 1 2 3 4 13 chunks +22 lines, -19 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 9 chunks +23 lines, -33 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/prototype.h View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M src/regexp/regexp-macro-assembler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-classes.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 chunks +6 lines, -4 lines 0 comments Download
M src/runtime/runtime-forin.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-literals.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M src/runtime/runtime-strings.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-utils.h View 1 chunk +1 line, -1 line 0 comments Download
M src/string-stream.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-js-context-specialization.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M test/cctest/heap/test-alloc.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M test/cctest/test-api.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-dictionary.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-field-type-tracking.cc View 1 2 3 4 5 6 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/test-strings.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M test/unittests/compiler/instruction-selector-unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 45 (22 generated)
Camillo Bruni
PTAL again... this will be the last one.
4 years, 6 months ago (2016-06-08 11:43:49 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/2043183003/diff/20001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/2043183003/diff/20001/src/objects-inl.h#newcode158 src/objects-inl.h:158: // TODO(cbruni): remove once all the isolate-based versions ...
4 years, 6 months ago (2016-06-08 15:58:22 UTC) #3
Toon Verwaest
lgtm
4 years, 6 months ago (2016-06-09 14:13:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/40001
4 years, 6 months ago (2016-06-09 16:36:54 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/18914) v8_linux64_asan_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 6 months ago (2016-06-09 16:38:25 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/60001
4 years, 6 months ago (2016-06-09 16:43:04 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/2957) v8_linux64_avx2_rel_ng on ...
4 years, 6 months ago (2016-06-09 16:44:35 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/80001
4 years, 6 months ago (2016-06-09 16:55:24 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/2923) v8_linux64_rel_ng on ...
4 years, 6 months ago (2016-06-09 16:59:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/100001
4 years, 6 months ago (2016-06-10 08:39:30 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/16932)
4 years, 6 months ago (2016-06-10 08:46:01 UTC) #22
Camillo Bruni
yangguo@ PTAL regexp/.* https://codereview.chromium.org/2043183003/diff/20001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/2043183003/diff/20001/src/objects-inl.h#newcode2192 src/objects-inl.h:2192: value->IsUninitialized(HeapObject::cast(value)->GetIsolate())) { On 2016/06/08 at 15:58:20, ...
4 years, 6 months ago (2016-06-10 09:28:57 UTC) #24
Yang
On 2016/06/10 09:28:57, Camillo Bruni wrote: > yangguo@ PTAL regexp/.* > > https://codereview.chromium.org/2043183003/diff/20001/src/objects-inl.h > File ...
4 years, 6 months ago (2016-06-10 09:38:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/120001
4 years, 6 months ago (2016-06-10 09:38:42 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/2967) v8_linux64_avx2_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 6 months ago (2016-06-10 09:56:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/160001
4 years, 6 months ago (2016-06-13 09:34:56 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/7190) v8_linux_nodcheck_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 6 months ago (2016-06-13 09:37:28 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043183003/180001
4 years, 6 months ago (2016-06-13 09:41:07 UTC) #38
Camillo Bruni
ahaas@ PTAL again wasm/.* ...
4 years, 6 months ago (2016-06-13 09:53:09 UTC) #40
ahaas
On 2016/06/13 at 09:53:09, cbruni wrote: > ahaas@ PTAL again wasm/.* ... wasm lgtm
4 years, 6 months ago (2016-06-13 09:57:00 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-13 10:19:04 UTC) #42
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/ccefb3ae5fe967288d568013fb04e8761eafebc5 Cr-Commit-Position: refs/heads/master@{#36921}
4 years, 6 months ago (2016-06-13 10:21:10 UTC) #44
Camillo Bruni
4 years, 6 months ago (2016-06-13 11:39:46 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2060213002/ by cbruni@chromium.org.

The reason for reverting is: failing tests.

Powered by Google App Engine
This is Rietveld 408576698