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

Unified Diff: src/full-codegen.cc

Issue 953563002: Implement experimental exponentiation operator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more tests and fix some bugs Created 5 years, 10 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
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 6f43497a799ed73d0d6b1c6845d6bfcb400fb36f..c6eb2cc6fa33022bf085cc96f3d6f0151bd2c1b3 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -496,7 +496,7 @@ void FullCodeGenerator::RecordBackEdge(BailoutId ast_id) {
bool FullCodeGenerator::ShouldInlineSmiCase(Token::Value op) {
// Inline smi case inside loops, but not division and modulo which
// are too complicated and take up too much space.
- if (op == Token::DIV ||op == Token::MOD) return false;
+ if (op == Token::DIV ||op == Token::MOD || op == Token::EXP) return false;
if (FLAG_always_inline_smi_code) return true;
return loop_depth_ > 0;
}
« src/compiler/typer.cc ('K') | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698