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

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

Issue 1248973002: Eliminate redundant descriptor ElementTransitionAndStoreDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 5 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/code-stubs.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('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 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 } 1822 }
1823 1823
1824 1824
1825 Handle<Code> StoreGlobalViaContextStub::GenerateCode() { 1825 Handle<Code> StoreGlobalViaContextStub::GenerateCode() {
1826 return DoGenerateCode(this); 1826 return DoGenerateCode(this);
1827 } 1827 }
1828 1828
1829 1829
1830 template <> 1830 template <>
1831 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() { 1831 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() {
1832 HValue* value = GetParameter(ElementsTransitionAndStoreStub::kValueIndex); 1832 HValue* object = GetParameter(StoreTransitionDescriptor::kReceiverIndex);
1833 HValue* map = GetParameter(ElementsTransitionAndStoreStub::kMapIndex); 1833 HValue* key = GetParameter(StoreTransitionDescriptor::kNameIndex);
1834 HValue* key = GetParameter(ElementsTransitionAndStoreStub::kKeyIndex); 1834 HValue* value = GetParameter(StoreTransitionDescriptor::kValueIndex);
1835 HValue* object = GetParameter(ElementsTransitionAndStoreStub::kObjectIndex); 1835 HValue* map = GetParameter(StoreTransitionDescriptor::kMapIndex);
1836 1836
1837 if (FLAG_trace_elements_transitions) { 1837 if (FLAG_trace_elements_transitions) {
1838 // Tracing elements transitions is the job of the runtime. 1838 // Tracing elements transitions is the job of the runtime.
1839 Add<HDeoptimize>(Deoptimizer::kTracingElementsTransitions, 1839 Add<HDeoptimize>(Deoptimizer::kTracingElementsTransitions,
1840 Deoptimizer::EAGER); 1840 Deoptimizer::EAGER);
1841 } else { 1841 } else {
1842 info()->MarkAsSavesCallerDoubles(); 1842 info()->MarkAsSavesCallerDoubles();
1843 1843
1844 BuildTransitionElementsKind(object, map, 1844 BuildTransitionElementsKind(object, map,
1845 casted_stub()->from_kind(), 1845 casted_stub()->from_kind(),
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 return Pop(); 2487 return Pop();
2488 } 2488 }
2489 2489
2490 2490
2491 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2491 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2492 return DoGenerateCode(this); 2492 return DoGenerateCode(this);
2493 } 2493 }
2494 2494
2495 } // namespace internal 2495 } // namespace internal
2496 } // namespace v8 2496 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698