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

Issue 7736018: Make functions on the built-in object non-writable. (Closed)

Created:
9 years, 3 months ago by Lasse Reichstein
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Make functions on the built-in object non-writable. Committed: http://code.google.com/p/v8/source/detail?r=9096

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -51 lines) Patch
M src/arm/full-codegen-arm.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M src/bootstrapper.cc View 1 2 chunks +8 lines, -2 lines 0 comments Download
M src/full-codegen.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/macros.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/messages.js View 1 2 chunks +1 line, -14 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M src/runtime.h View 2 chunks +11 lines, -1 line 0 comments Download
M src/runtime.cc View 1 6 chunks +24 lines, -18 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
9 years, 3 months ago (2011-08-29 13:43:21 UTC) #1
Kevin Millikin (Chromium)
LGTM if the comments below are addressed. http://codereview.chromium.org/7736018/diff/1/src/arm/full-codegen-arm.cc File src/arm/full-codegen-arm.cc (right): http://codereview.chromium.org/7736018/diff/1/src/arm/full-codegen-arm.cc#newcode777 src/arm/full-codegen-arm.cc:777: __ mov(r1, ...
9 years, 3 months ago (2011-09-01 07:58:23 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/7736018/diff/1/src/arm/full-codegen-arm.cc File src/arm/full-codegen-arm.cc (right): http://codereview.chromium.org/7736018/diff/1/src/arm/full-codegen-arm.cc#newcode777 src/arm/full-codegen-arm.cc:777: __ mov(r1, Operand(Smi::FromInt(is_eval() ? 1 : 0))); Absolutely. I'm ...
9 years, 3 months ago (2011-09-01 09:26:58 UTC) #3
Kevin Millikin (Chromium)
9 years, 3 months ago (2011-09-01 09:53:14 UTC) #4
http://codereview.chromium.org/7736018/diff/1/src/messages.js
File src/messages.js (right):

http://codereview.chromium.org/7736018/diff/1/src/messages.js#newcode32
src/messages.js:32: const TYPE_NATIVE = 0;
I think something like that, even if you have to implement a custom function,
might be better.

If we match Safari's behavior, we'll have surprising stuff like consts whose
value can change (a global const declaration overrides a pre-existing one).

Powered by Google App Engine
This is Rietveld 408576698