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

Unified Diff: src/compiler/js-intrinsic-lowering.cc

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build Created 5 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/compiler/js-intrinsic-lowering.h ('k') | src/compiler/linkage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-intrinsic-lowering.cc
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc
index d969ca78c52a4e6d99e00cbe29890ef3885f71a1..37bb11562d8d0ee769ecb082680b279f32bab00e 100644
--- a/src/compiler/js-intrinsic-lowering.cc
+++ b/src/compiler/js-intrinsic-lowering.cc
@@ -83,10 +83,6 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) {
return ReduceFixedArrayGet(node);
case Runtime::kInlineFixedArraySet:
return ReduceFixedArraySet(node);
- case Runtime::kInlineGetTypeFeedbackVector:
- return ReduceGetTypeFeedbackVector(node);
- case Runtime::kInlineGetCallerJSFunction:
- return ReduceGetCallerJSFunction(node);
case Runtime::kInlineToInteger:
return ReduceToInteger(node);
case Runtime::kInlineToLength:
@@ -459,43 +455,6 @@ Reduction JSIntrinsicLowering::ReduceFixedArraySet(Node* node) {
}
-Reduction JSIntrinsicLowering::ReduceGetTypeFeedbackVector(Node* node) {
- Node* func = node->InputAt(0);
- Node* effect = NodeProperties::GetEffectInput(node);
- Node* control = NodeProperties::GetControlInput(node);
- FieldAccess access = AccessBuilder::ForJSFunctionSharedFunctionInfo();
- Node* load =
- graph()->NewNode(simplified()->LoadField(access), func, effect, control);
- access = AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector();
- return Change(node, simplified()->LoadField(access), load, load, control);
-}
-
-
-Reduction JSIntrinsicLowering::ReduceGetCallerJSFunction(Node* node) {
- Node* effect = NodeProperties::GetEffectInput(node);
- Node* control = NodeProperties::GetControlInput(node);
-
- Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0);
- Node* outer_frame = frame_state->InputAt(kFrameStateOuterStateInput);
- if (outer_frame->opcode() == IrOpcode::kFrameState) {
- // Use the runtime implementation to throw the appropriate error if the
- // containing function is inlined.
- return NoChange();
- }
-
- // TODO(danno): This implementation forces intrinsic lowering to happen after
- // inlining, which is fine for now, but eventually the frame-querying logic
- // probably should go later, e.g. in instruction selection, so that there is
- // no phase-ordering dependency.
- FieldAccess access = AccessBuilder::ForFrameCallerFramePtr();
- Node* fp = graph()->NewNode(machine()->LoadFramePointer());
- Node* next_fp =
- graph()->NewNode(simplified()->LoadField(access), fp, effect, control);
- return Change(node, simplified()->LoadField(AccessBuilder::ForFrameMarker()),
- next_fp, effect, control);
-}
-
-
Reduction JSIntrinsicLowering::ReduceThrowNotDateError(Node* node) {
if (mode() != kDeoptimizationEnabled) return NoChange();
Node* const frame_state = NodeProperties::GetFrameStateInput(node, 1);
« no previous file with comments | « src/compiler/js-intrinsic-lowering.h ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698