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

Issue 10915062: Add checks to runtime functions. (Closed)

Created:
8 years, 3 months ago by Yang
Modified:
8 years, 3 months ago
Reviewers:
Erik Corry
Visibility:
Public.

Description

Add checks to runtime functions. BUG= Committed: https://code.google.com/p/v8/source/detail?r=12471

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -173 lines) Patch
M src/arm/full-codegen-arm.cc View 1 3 chunks +11 lines, -9 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M src/date.js View 1 23 chunks +0 lines, -41 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 3 chunks +10 lines, -9 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/liveedit.cc View 4 chunks +12 lines, -5 lines 0 comments Download
M src/messages.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 3 chunks +9 lines, -10 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
M src/runtime.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M src/runtime.cc View 1 10 chunks +37 lines, -39 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 3 chunks +10 lines, -9 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 2 chunks +5 lines, -8 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/date.js View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M test/mjsunit/string-charcodeat.js View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
PTAL.
8 years, 3 months ago (2012-09-04 14:41:06 UTC) #1
Yang
Please take another look.
8 years, 3 months ago (2012-09-05 14:32:25 UTC) #2
Erik Corry
It seems to me that in lithium-ia32.cc in DoDateField the MarkAsCall call should have a ...
8 years, 3 months ago (2012-09-07 09:22:33 UTC) #3
Yang
8 years, 3 months ago (2012-09-07 13:02:56 UTC) #4
On 2012/09/07 09:22:33, Erik Corry wrote:
> It seems to me that in lithium-ia32.cc in DoDateField the MarkAsCall call
should
> have a third argument CAN_DEOPTIMIZE_EAGERLY since now the instruction can
> deopt.  But if your test is working then apparently that is not needed for
some
> reason.
> 
> LGTM
> 
> http://codereview.chromium.org/10915062/diff/3001/src/messages.js
> File src/messages.js (right):
> 
> http://codereview.chromium.org/10915062/diff/3001/src/messages.js#newcode205
> src/messages.js:205: "not_date_object",              ["this is not a Date
> object."],
> We normally use the word "Receiver", rather than 'this'.  That would also let
> you capitalize it correctly.
> 
> http://codereview.chromium.org/10915062/diff/3001/src/runtime.cc
> File src/runtime.cc (right):
> 
> http://codereview.chromium.org/10915062/diff/3001/src/runtime.cc#newcode2070
> src/runtime.cc:2070: f->RemovePrototype();
> I wonder why RemovePrototype does not return void?
> 
> http://codereview.chromium.org/10915062/diff/3001/test/mjsunit/date.js
> File test/mjsunit/date.js (right):
> 
>
http://codereview.chromium.org/10915062/diff/3001/test/mjsunit/date.js#newcod...
> test/mjsunit/date.js:335: assertThrows(function() {
> Date.prototype.getTime.call(""); }, TypeError);
> Are you sure you are getting a deopt here?  There's an OptimizationState
> predicate for testing this.

I guess it works without CAN_DEOPTIMIZE_EAGERLY since there are no side effects
here. Nevertheless I added this option.

I also changed RemovePrototype to void and added a check for optimization state
in the test case.

Powered by Google App Engine
This is Rietveld 408576698