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

Unified Diff: src/interpreter/bytecode-generator.cc

Issue 1385623002: [Interpreter]: Add support for strict mode load / store ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix gcc error Created 5 years, 2 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 | « src/interpreter/bytecode-generator.h ('k') | src/interpreter/bytecodes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index df9f21cb8529556672d6f84d50d2ffe69200aeb8..d5805b2c02cf31ea01f5b19fe0b6c6e5a85df91d 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -687,7 +687,7 @@ void BytecodeGenerator::VisitCompareOperation(CompareOperation* expr) {
Visit(left);
builder()->StoreAccumulatorInRegister(temporary);
Visit(right);
- builder()->CompareOperation(op, temporary, language_mode());
+ builder()->CompareOperation(op, temporary, language_mode_strength());
}
@@ -726,7 +726,7 @@ void BytecodeGenerator::VisitArithmeticExpression(BinaryOperation* binop) {
Visit(left);
builder()->StoreAccumulatorInRegister(temporary);
Visit(right);
- builder()->BinaryOperation(op, temporary);
+ builder()->BinaryOperation(op, temporary, language_mode_strength());
}
@@ -735,6 +735,11 @@ LanguageMode BytecodeGenerator::language_mode() const {
}
+Strength BytecodeGenerator::language_mode_strength() const {
+ return strength(language_mode());
+}
+
+
int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const {
return info()->feedback_vector()->GetIndex(slot);
}
« no previous file with comments | « src/interpreter/bytecode-generator.h ('k') | src/interpreter/bytecodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698