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

Issue 2610683003: [ignition] Only initialize [[HomeObject]] for class constructors if needed (Closed)

Created:
3 years, 11 months ago by adamk
Modified:
3 years, 11 months ago
CC:
Benedikt Meurer, rmcilroy, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ignition] Only initialize [[HomeObject]] for class constructors if needed This moves the initialization of [[HomeObject]] for constructors from the %DefineClass runtime function into the bytecode generator, and makes it conditional (resolving an old TODO). As part of this refactor, avoid a load of "prototype" by returning the class prototype from %DefineClass. This is one of many steps in moving more of class definition into bytecode. R=rmcilroy@chromium.org Review-Url: https://codereview.chromium.org/2610683003 Cr-Commit-Position: refs/heads/master@{#42072} Committed: https://chromium.googlesource.com/v8/v8/+/3e20d381eddec3198ef0de790f099bd0c08bbb33

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments #

Patch Set 3 : Fix bytecode expectations #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -116 lines) Patch
M src/ast/ast.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ast/ast.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 3 chunks +27 lines, -29 lines 0 comments Download
M src/runtime/runtime-classes.cc View 2 chunks +2 lines, -8 lines 1 comment Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 2 12 chunks +53 lines, -63 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 1 2 3 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
adamk
3 years, 11 months ago (2017-01-04 02:25:44 UTC) #1
rmcilroy
Awesome, LGTM, thanks! https://codereview.chromium.org/2610683003/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2610683003/diff/1/src/interpreter/bytecode-generator.cc#newcode1415 src/interpreter/bytecode-generator.cc:1415: VisitForRegisterValue(expr->constructor(), constructor); nit - you can ...
3 years, 11 months ago (2017-01-04 09:55:59 UTC) #6
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/2610683003/20001
3 years, 11 months ago (2017-01-04 17:57:01 UTC) #9
adamk
https://codereview.chromium.org/2610683003/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2610683003/diff/1/src/interpreter/bytecode-generator.cc#newcode1415 src/interpreter/bytecode-generator.cc:1415: VisitForRegisterValue(expr->constructor(), constructor); On 2017/01/04 09:55:59, rmcilroy wrote: > nit ...
3 years, 11 months ago (2017-01-04 17:57:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/10534) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-04 18:10:50 UTC) #12
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/2610683003/40001
3 years, 11 months ago (2017-01-04 18:51:47 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/3e20d381eddec3198ef0de790f099bd0c08bbb33
3 years, 11 months ago (2017-01-04 19:15:31 UTC) #18
arv (Not doing code reviews)
3 years, 11 months ago (2017-01-05 05:18:43 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2610683003/diff/40001/src/runtime/runtime-cla...
File src/runtime/runtime-classes.cc (left):

https://codereview.chromium.org/2610683003/diff/40001/src/runtime/runtime-cla...
src/runtime/runtime-classes.cc:170: // TODO(arv): Only do this conditionally.
Thanks

Powered by Google App Engine
This is Rietveld 408576698