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

Issue 7152002: Change the representation of catch contexts. (Closed)

Created:
9 years, 6 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change the representation of catch contexts. Before, they had no extra slots and an extension object with one named property. Now, they use the extension slot for the property name and have an extra slot for the thrown object. This increases the size of the context itself, but removes overall allocation and eliminates a level of indirection. R=ager@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=8277

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -100 lines) Patch
M src/contexts.h View 3 chunks +9 lines, -4 lines 0 comments Download
M src/contexts.cc View 1 chunk +30 lines, -16 lines 1 comment Download
M src/factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/heap.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.h View 2 chunks +1 line, -4 lines 0 comments Download
M src/runtime.cc View 10 chunks +46 lines, -65 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
Kevin Millikin (Chromium)
9 years, 6 months ago (2011-06-14 11:38:52 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/7152002/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7152002/diff/1/src/runtime.cc#newcode10188 src/runtime.cc:10188: isolate->factory()->NewJSObject(isolate->object_function()); Do we really want this to be ...
9 years, 6 months ago (2011-06-14 11:54:17 UTC) #2
Kevin Millikin (Chromium)
http://codereview.chromium.org/7152002/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7152002/diff/1/src/runtime.cc#newcode10188 src/runtime.cc:10188: isolate->factory()->NewJSObject(isolate->object_function()); On 2011/06/14 11:54:17, Mads Ager wrote: > Do ...
9 years, 6 months ago (2011-06-14 12:06:35 UTC) #3
Søren Thygesen Gjesse
http://codereview.chromium.org/7152002/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7152002/diff/1/src/runtime.cc#newcode10188 src/runtime.cc:10188: isolate->factory()->NewJSObject(isolate->object_function()); On 2011/06/14 11:54:17, Mads Ager wrote: > Do ...
9 years, 6 months ago (2011-06-14 12:18:32 UTC) #4
Søren Thygesen Gjesse
http://codereview.chromium.org/7152002/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7152002/diff/1/src/runtime.cc#newcode10188 src/runtime.cc:10188: isolate->factory()->NewJSObject(isolate->object_function()); On 2011/06/14 11:54:17, Mads Ager wrote: > Do ...
9 years, 6 months ago (2011-06-14 12:18:32 UTC) #5
Søren Thygesen Gjesse
9 years, 6 months ago (2011-06-14 12:23:31 UTC) #6
http://codereview.chromium.org/7152002/diff/1/src/contexts.cc
File src/contexts.cc (right):

http://codereview.chromium.org/7152002/diff/1/src/contexts.cc#newcode103
src/contexts.cc:103: if (name->Equals(String::cast(context->extension()))) {
Dbc. Should context perhaps have a method GetCatchVariableName?

Powered by Google App Engine
This is Rietveld 408576698