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

Unified Diff: src/parsing/parser.cc

Issue 2116753002: [builtins] Unify most of the remaining Math builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2102223005
Patch Set: Created 4 years, 6 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/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 24df10cb9d7a4021d1541c90c77e09caee97ed6a..0f947ac5e60bba11cb5b9cfbfe2ea6e9ab40e36a 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -5782,7 +5782,7 @@ Expression* Parser::RewriteExponentiation(Expression* left, Expression* right,
ZoneList<Expression*>* args = new (zone()) ZoneList<Expression*>(2, zone());
args->Add(left, zone());
args->Add(right, zone());
- return factory()->NewCallRuntime(Context::MATH_POW_METHOD_INDEX, args, pos);
+ return factory()->NewCallRuntime(Context::MATH_POW_INDEX, args, pos);
}
Expression* Parser::RewriteAssignExponentiation(Expression* left,
@@ -5799,7 +5799,7 @@ Expression* Parser::RewriteAssignExponentiation(Expression* left,
args->Add(left, zone());
args->Add(right, zone());
Expression* call =
- factory()->NewCallRuntime(Context::MATH_POW_METHOD_INDEX, args, pos);
+ factory()->NewCallRuntime(Context::MATH_POW_INDEX, args, pos);
return factory()->NewAssignment(Token::ASSIGN, result, call, pos);
} else if (left->IsProperty()) {
Property* prop = left->AsProperty();
@@ -5817,7 +5817,7 @@ Expression* Parser::RewriteAssignExponentiation(Expression* left,
zone());
args->Add(right, zone());
Expression* call =
- factory()->NewCallRuntime(Context::MATH_POW_METHOD_INDEX, args, pos);
+ factory()->NewCallRuntime(Context::MATH_POW_INDEX, args, pos);
Expression* target = factory()->NewProperty(
factory()->NewVariableProxy(temp_obj),
factory()->NewVariableProxy(temp_key), kNoSourcePosition);
« src/compiler/js-builtin-reducer.cc ('K') | « src/objects.h ('k') | src/type-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698