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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 1081883002: Remove unnecessary options from HTailCallThroughMegamorphicCache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/field-index.h" 9 #include "src/field-index.h"
10 #include "src/hydrogen.h" 10 #include "src/hydrogen.h"
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 2022
2023 template <> 2023 template <>
2024 HValue* CodeStubGraphBuilder<MegamorphicLoadStub>::BuildCodeStub() { 2024 HValue* CodeStubGraphBuilder<MegamorphicLoadStub>::BuildCodeStub() {
2025 HValue* receiver = GetParameter(LoadDescriptor::kReceiverIndex); 2025 HValue* receiver = GetParameter(LoadDescriptor::kReceiverIndex);
2026 HValue* name = GetParameter(LoadDescriptor::kNameIndex); 2026 HValue* name = GetParameter(LoadDescriptor::kNameIndex);
2027 2027
2028 // We shouldn't generate this when FLAG_vector_ics is true because the 2028 // We shouldn't generate this when FLAG_vector_ics is true because the
2029 // megamorphic case is handled as part of the default stub. 2029 // megamorphic case is handled as part of the default stub.
2030 DCHECK(!FLAG_vector_ics); 2030 DCHECK(!FLAG_vector_ics);
2031 2031
2032 // This stub tail calls, and an erected frame presents complications we don't
2033 // need.
2034 info()->MarkMustNotHaveEagerFrame();
2035
2032 // Probe the stub cache. 2036 // Probe the stub cache.
2033 Add<HTailCallThroughMegamorphicCache>(receiver, name); 2037 Add<HTailCallThroughMegamorphicCache>(receiver, name);
2034 2038
2035 // We never continue. 2039 // We never continue.
2036 return graph()->GetConstant0(); 2040 return graph()->GetConstant0();
2037 } 2041 }
2038 } } // namespace v8::internal 2042 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698