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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 1146963002: Add %GetCallerJSFunction intrinsic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 7 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/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 050d6ce0873211d55f179b50b1f4c1e88ef39b67..af99cf1853c4f981d58b1e205f3e590b86883975 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -344,6 +344,8 @@ class RepresentationSelector {
} else if (upper->Is(Type::Number())) {
// multiple uses => pick kRepFloat64.
return kRepFloat64;
+ } else if (upper->Is(Type::Internal())) {
+ return kMachPtr;
}
return kRepTagged;
}
@@ -1041,6 +1043,7 @@ class RepresentationSelector {
case IrOpcode::kFloat64InsertHighWord32:
return VisitBinop(node, kMachFloat64, kMachInt32, kMachFloat64);
case IrOpcode::kLoadStackPointer:
+ case IrOpcode::kLoadFramePointer:
return VisitLeaf(node, kMachPtr);
case IrOpcode::kStateValues:
VisitStateValues(node);

Powered by Google App Engine
This is Rietveld 408576698