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

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: use Number() instead of OrderedNumber() to include NaN 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698