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

Unified Diff: src/interpreter/bytecode-array-builder.h

Issue 1294523002: [Interpreter] Register conversion fix and test. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 70b881596419c1f6e1f850e7e88a7120c75e3648..c4ab816665800393986f0edcc565af3b7a51b0a9 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -84,7 +84,9 @@ class Register {
int index() { return index_; }
uint8_t ToOperand() { return static_cast<uint8_t>(-index_); }
- static Register FromOperand(uint8_t operand) { return Register(-operand); }
+ static Register FromOperand(uint8_t operand) {
+ return Register(-static_cast<int8_t>(operand));
+ }
private:
void* operator new(size_t size);
« no previous file with comments | « no previous file | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698