Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index 58925cd1cf4c1398e0e96e866723961c2b176d9c..ef9807fe69256978a2755802ff522d01e2d9d4a0 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -884,41 +884,9 @@ void LCodeGen::WriteTranslation(LEnvironment* environment, |
// The translation includes one command per value in the environment. |
int translation_size = environment->translation_size(); |
- // The output frame height does not include the parameters. |
- int height = translation_size - environment->parameter_count(); |
WriteTranslation(environment->outer(), translation); |
- bool has_closure_id = !info()->closure().is_null() && |
- !info()->closure().is_identical_to(environment->closure()); |
- int closure_id = has_closure_id |
- ? DefineDeoptimizationLiteral(environment->closure()) |
- : Translation::kSelfLiteralId; |
- switch (environment->frame_type()) { |
- case JS_FUNCTION: |
- translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
- break; |
- case JS_CONSTRUCT: |
- translation->BeginConstructStubFrame(closure_id, translation_size); |
- break; |
- case JS_GETTER: |
- DCHECK(translation_size == 1); |
- DCHECK(height == 0); |
- translation->BeginGetterStubFrame(closure_id); |
- break; |
- case JS_SETTER: |
- DCHECK(translation_size == 2); |
- DCHECK(height == 0); |
- translation->BeginSetterStubFrame(closure_id); |
- break; |
- case ARGUMENTS_ADAPTOR: |
- translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
- break; |
- case STUB: |
- translation->BeginCompiledStubFrame(translation_size); |
- break; |
- default: |
- UNREACHABLE(); |
- } |
+ WriteTranslationFrame(environment, translation); |
int object_index = 0; |
int dematerialized_index = 0; |
@@ -1251,16 +1219,6 @@ void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
} |
-int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) { |
- int result = deoptimization_literals_.length(); |
- for (int i = 0; i < deoptimization_literals_.length(); ++i) { |
- if (deoptimization_literals_[i].is_identical_to(literal)) return i; |
- } |
- deoptimization_literals_.Add(literal, zone()); |
- return result; |
-} |
- |
- |
void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() { |
DCHECK_EQ(0, deoptimization_literals_.length()); |
for (auto function : chunk()->inlined_functions()) { |