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 8133020: Simplify calling generated code from the runtime. (Closed)

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

Description

Simplify calling generated code from the runtime. Instead of expecting Object** arrays at the outermost level, expect Handle<Object> arrays and reinterpret_cast them only just before invoking the generated code. R=rossberg@chromium.org,fschneider@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=9537

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -182 lines) Patch
M src/api.cc View 8 chunks +12 lines, -10 lines 0 comments Download
M src/builtins.cc View 1 chunk +8 lines, -10 lines 0 comments Download
M src/debug.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug.cc View 11 chunks +50 lines, -46 lines 0 comments Download
M src/execution.h View 4 chunks +4 lines, -4 lines 0 comments Download
M src/execution.cc View 14 chunks +71 lines, -66 lines 2 comments Download
M src/factory.cc View 2 chunks +10 lines, -5 lines 0 comments Download
M src/ic.cc View 1 chunk +1 line, -1 line 1 comment Download
M src/jsregexp.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/messages.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M src/objects.cc View 5 chunks +8 lines, -10 lines 0 comments Download
M src/runtime.cc View 7 chunks +21 lines, -17 lines 0 comments Download
M test/cctest/test-compiler.cc View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
9 years, 2 months ago (2011-10-05 11:48:22 UTC) #1
rossberg
LGTM Glad you did this! http://codereview.chromium.org/8133020/diff/1/src/execution.cc File src/execution.cc (right): http://codereview.chromium.org/8133020/diff/1/src/execution.cc#newcode582 src/execution.cc:582: ARRAY_SIZE(argv), argv, \ I ...
9 years, 2 months ago (2011-10-05 13:10:17 UTC) #2
Kevin Millikin (Chromium)
9 years, 2 months ago (2011-10-05 13:47:26 UTC) #3
http://codereview.chromium.org/8133020/diff/1/src/execution.cc
File src/execution.cc (right):

http://codereview.chromium.org/8133020/diff/1/src/execution.cc#newcode582
src/execution.cc:582: ARRAY_SIZE(argv), argv,                                 \
Yeah, it's a bit dangerous and the programmer has to be careful.

It was also a bit dangerous to have the named constants and magic numbers that
had to agree with the arg count before, though.

Powered by Google App Engine
This is Rietveld 408576698