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

Issue 7018001: Micro-optimize passing of args to HasLocalProperty. (Closed)

Created:
9 years, 7 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Micro-optimize passing of args to HasLocalProperty. Committed: http://code.google.com/p/v8/source/detail?r=7878

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/macros.py View 1 chunk +1 line, -1 line 2 comments Download
M src/v8natives.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Vitaly Repeshko
9 years, 7 months ago (2011-05-12 15:58:56 UTC) #1
Mads Ager (chromium)
LGTM, modulo one question. http://codereview.chromium.org/7018001/diff/1/src/macros.py File src/macros.py (right): http://codereview.chromium.org/7018001/diff/1/src/macros.py#newcode130 src/macros.py:130: macro TO_OBJECT_INLINE(arg) = ((IS_OBJECT(%IS_VAR(arg)) && ...
9 years, 7 months ago (2011-05-12 16:11:05 UTC) #2
Vitaly Repeshko
9 years, 7 months ago (2011-05-12 16:19:24 UTC) #3
http://codereview.chromium.org/7018001/diff/1/src/macros.py
File src/macros.py (right):

http://codereview.chromium.org/7018001/diff/1/src/macros.py#newcode130
src/macros.py:130: macro TO_OBJECT_INLINE(arg) = ((IS_OBJECT(%IS_VAR(arg)) &&
!IS_NULL_OR_UNDEFINED(arg)) ? arg : ToObject(arg));
On 2011/05/12 16:11:05, Mads Ager wrote:
> I wonder if what we should be using here is %_IsSpecObject?

You're right. It's simpler.

Powered by Google App Engine
This is Rietveld 408576698