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

Unified Diff: src/code-stubs-hydrogen.cc

Issue 103933002: Use constant types to represent the fixed right arg of a MOD. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/ast.h ('k') | src/hydrogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 96cfc378476943483ab2f6dc862f3cf3389848f9..e9876a4d2d3bcc5039eae9b0ec657853955ee9a1 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -923,14 +923,13 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
Push(BuildBinaryOperation(
state.op(), left, right,
handle(Type::String(), isolate()), right_type,
- result_type, state.fixed_right_arg()));
+ result_type));
}
if_leftisstring.Else();
{
Push(BuildBinaryOperation(
state.op(), left, right,
- left_type, right_type, result_type,
- state.fixed_right_arg()));
+ left_type, right_type, result_type));
}
if_leftisstring.End();
result = Pop();
@@ -942,14 +941,13 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
Push(BuildBinaryOperation(
state.op(), left, right,
left_type, handle(Type::String(), isolate()),
- result_type, state.fixed_right_arg()));
+ result_type));
}
if_rightisstring.Else();
{
Push(BuildBinaryOperation(
state.op(), left, right,
- left_type, right_type, result_type,
- state.fixed_right_arg()));
+ left_type, right_type, result_type));
}
if_rightisstring.End();
result = Pop();
@@ -957,8 +955,7 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
} else {
result = BuildBinaryOperation(
state.op(), left, right,
- left_type, right_type, result_type,
- state.fixed_right_arg());
+ left_type, right_type, result_type);
}
// If we encounter a generic argument, the number conversion is
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698