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

Issue 2080243003: Use instance type in Object.prototype.toString(). (Closed)

Created:
4 years, 6 months ago by Franzi
Modified:
4 years, 6 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

Refactor Object.prototype.toString() to use the instance type instead of class_name(). Now we can turn it into a turbofan stub. Create new instance types JS_ARGUMENTS_TYPE and JS_ERROR_TYPE. Committed: https://crrev.com/e9a93a9c2b9de0b05ea4dd53757c306d66cb00d3 Cr-Commit-Position: refs/heads/master@{#37219}

Patch Set 1 #

Patch Set 2 : Make test pass #

Patch Set 3 : Remove default case from switch over instance types #

Patch Set 4 : Add GetHeaderSize() for JS_ARGUMENT_TYPE #

Patch Set 5 : Reorder cases in switch statement #

Patch Set 6 : Change upstream to the issue that this patch depends on #

Patch Set 7 : New instance type for errors #

Patch Set 8 : Delete empty line #

Patch Set 9 : Add JS_ERROR_TYPE to list of clonable objects #

Patch Set 10 : Simplify switch statement #

Patch Set 11 : Fix expected instance type in test #

Patch Set 12 : Rebase #

Patch Set 13 : Delete empty line #

Total comments: 2

Patch Set 14 : Add TODO comment about checking IsArray() before reading toStringTag. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -78 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 9 chunks +9 lines, -9 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M src/heap-symbols.h View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 5 chunks +4 lines, -4 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +60 lines, -53 lines 0 comments Download
M src/objects-body-descriptors-inl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/types.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/test-inobject-slack-tracking.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -8 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (12 generated)
Franzi
Hi Toon, Here's ObjectProtoToString() that uses class_name() only for JS_API_OBJECT_TYPE. Can you have a look? ...
4 years, 6 months ago (2016-06-23 11:54:59 UTC) #6
Toon Verwaest
nice, lgtm. Can you upload an additional CL that changes IsNativeError in api.cc as well ...
4 years, 6 months ago (2016-06-23 12:03:33 UTC) #7
Franzi
On 2016/06/23 12:03:33, Toon Verwaest wrote: > nice, lgtm. Can you upload an additional CL ...
4 years, 6 months ago (2016-06-23 14:07:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2080243003/150011
4 years, 6 months ago (2016-06-23 14:07:36 UTC) #11
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/17869)
4 years, 6 months ago (2016-06-23 14:11:08 UTC) #13
Franzi
Hi Jochen, can I get an owner's lgtm for heap.cc and objects-visiting.cc? Thanks, Franzi https://codereview.chromium.org/2080243003/diff/260001/src/objects.cc ...
4 years, 6 months ago (2016-06-23 14:18:00 UTC) #15
jochen (gone - plz use gerrit)
lgtm can you use the JS_ERROR_TYPE to speed up v8::Value::IsError() or whatever it's called?
4 years, 6 months ago (2016-06-23 14:30:14 UTC) #16
Toon Verwaest
Already done ;)
4 years, 6 months ago (2016-06-23 14:34:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2080243003/150011
4 years, 6 months ago (2016-06-23 14:37:33 UTC) #19
commit-bot: I haz the power
Committed patchset #14 (id:150011)
4 years, 6 months ago (2016-06-23 14:39:40 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 14:41:00 UTC) #23
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/e9a93a9c2b9de0b05ea4dd53757c306d66cb00d3
Cr-Commit-Position: refs/heads/master@{#37219}

Powered by Google App Engine
This is Rietveld 408576698