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

Issue 1843613002: Add initial code-stub version of Object.prototype.hasOwnProperty (Closed)

Created:
4 years, 8 months ago by Toon Verwaest
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add initial code-stub version of Object.prototype.hasOwnProperty It for now only deals with fast-mode smi and object arrays with smi keys and internalized strings; and fast-mode named properties with an internalized key or symbol. BUG=v8:2472 LOG=n Committed: https://crrev.com/bc8f9a78f05c7a9dce0a112835d797d8082749eb Cr-Commit-Position: refs/heads/master@{#35152}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : Addressed comment #

Patch Set 8 : Use SmiToWord32 instead of SmiUntag #

Patch Set 9 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -74 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 8 1 chunk +168 lines, -63 lines 1 comment Download
M src/compiler/code-stub-assembler.h View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -1 line 0 comments Download
M src/compiler/code-stub-assembler.cc View 1 2 3 4 5 6 7 8 2 chunks +36 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -7 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
Toon Verwaest
ptal
4 years, 8 months ago (2016-03-30 09:19:40 UTC) #2
Benedikt Meurer
LGTM with comment. https://codereview.chromium.org/1843613002/diff/100001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1843613002/diff/100001/src/builtins.cc#newcode348 src/builtins.cc:348: RUNTIME_FUNCTION(Runtime_ObjectHasOwnProperty) { Please move this to ...
4 years, 8 months ago (2016-03-30 09:28:31 UTC) #4
Toon Verwaest
Addressed comment.
4 years, 8 months ago (2016-03-30 09:50:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843613002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843613002/120001
4 years, 8 months ago (2016-03-30 09:50:40 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/17546)
4 years, 8 months ago (2016-03-30 10:25:13 UTC) #10
Toon Verwaest
@jacob.bramley: It seems like the ARM64 intruction selector has a bug. See the failing tests. ...
4 years, 8 months ago (2016-03-30 11:31:26 UTC) #12
Rodolph Perfetta
@Toon: I am not sure it is an instruction selector issue, in the code-stub-assembler the ...
4 years, 8 months ago (2016-03-30 16:31:15 UTC) #13
Toon Verwaest
Even if it returns a full word, shouldn't the untag operation have made the bit-pattern ...
4 years, 8 months ago (2016-03-30 17:14:28 UTC) #14
Rodolph Perfetta
On 2016/03/30 17:14:28, Toon Verwaest wrote: > Even if it returns a full word, shouldn't ...
4 years, 8 months ago (2016-03-30 17:38:31 UTC) #15
Benedikt Meurer
Ah indeed. SmiUntag yields a Word, but you need a Word32. So Rodolph is right, ...
4 years, 8 months ago (2016-03-30 17:40:21 UTC) #16
Toon Verwaest
Understood, thanks for the explanation; I had no clue ;-)
4 years, 8 months ago (2016-03-30 20:16:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843613002/140001
4 years, 8 months ago (2016-03-31 07:24:22 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/15947) v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, ...
4 years, 8 months ago (2016-03-31 07:25:39 UTC) #22
Toon Verwaest
Yes indeed, the absence of any shift is odd; and is what I was referring ...
4 years, 8 months ago (2016-03-31 07:27:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843613002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843613002/160001
4 years, 8 months ago (2016-03-31 07:29:32 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-03-31 07:53:17 UTC) #28
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bc8f9a78f05c7a9dce0a112835d797d8082749eb Cr-Commit-Position: refs/heads/master@{#35152}
4 years, 8 months ago (2016-03-31 07:55:41 UTC) #30
Rodolph Perfetta (ARM)
4 years, 8 months ago (2016-03-31 08:06:23 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/1843613002/diff/160001/src/builtins.cc
File src/builtins.cc (right):

https://codereview.chromium.org/1843613002/diff/160001/src/builtins.cc#newcod...
src/builtins.cc:382: var_index.Bind(assembler->SmiUntag(key));
This should be a SmiToWord32 too as var_index is declared as a Word32.

Powered by Google App Engine
This is Rietveld 408576698