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

Issue 11415031: [MIPS] Forbid $sp update at the end of the last bundle. (Closed)

Created:
8 years, 1 month ago by petarj
Modified:
8 years, 1 month ago
Reviewers:
Mark Seaborn, JF
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

[MIPS] Forbid $sp update at the end of the last bundle. Validator should not allow change of $sp at the end of the last bundle, since someone could place a code right after it. This change mimics fix on ARM from https://codereview.chromium.org/11361222 BUG= https://code.google.com/p/nativeclient/issues/detail?id=3138 TEST= ./scons run_mips_validator_tests Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=10318

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments addressed. #

Patch Set 3 : Presubmit errors have been fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -26 lines) Patch
M src/trusted/validator_mips/model.h View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M src/trusted/validator_mips/ncval.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/trusted/validator_mips/ncvalidate.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M src/trusted/validator_mips/validator.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/validator_mips/validator.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M src/trusted/validator_mips/validator_tests.cc View 1 2 7 chunks +39 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
petarj
8 years, 1 month ago (2012-11-16 19:22:39 UTC) #1
Mark Seaborn
LGTM, thanks http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator_tests.cc File src/trusted/validator_mips/validator_tests.cc (right): http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator_tests.cc#newcode370 src/trusted/validator_mips/validator_tests.cc:370: vector<mips_inst> code(_validator.bytes_per_bundle()/kInstrSize, kNop); Nit: please put spaces ...
8 years, 1 month ago (2012-11-16 20:08:08 UTC) #2
JF
http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator.cc File src/trusted/validator_mips/validator.cc (right): http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator.cc#newcode361 src/trusted/validator_mips/validator.cc:361: DecodedInstruction one_past_end(segment.EndAddr(), nop, initial_decoder); Why initial_decoder here? The ARM ...
8 years, 1 month ago (2012-11-16 21:03:27 UTC) #3
petarj
http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator.cc File src/trusted/validator_mips/validator.cc (right): http://codereview.chromium.org/11415031/diff/1/src/trusted/validator_mips/validator.cc#newcode361 src/trusted/validator_mips/validator.cc:361: DecodedInstruction one_past_end(segment.EndAddr(), nop, initial_decoder); On 2012/11/16 21:03:27, JF wrote: ...
8 years, 1 month ago (2012-11-19 18:46:10 UTC) #4
JF
lgtm
8 years, 1 month ago (2012-11-19 18:49:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/11415031/6001
8 years, 1 month ago (2012-11-19 19:17:43 UTC) #6
commit-bot: I haz the power
Presubmit check for 11415031-6001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-19 19:17:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/petarj@mips.com/11415031/3004
8 years, 1 month ago (2012-11-21 00:21:46 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-11-21 03:19:03 UTC) #9
Change committed as 10318

Powered by Google App Engine
This is Rietveld 408576698