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

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

Issue 390013002: Use the same registers for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-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/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/field-index.h" 8 #include "src/field-index.h"
9 #include "src/hydrogen.h" 9 #include "src/hydrogen.h"
10 #include "src/lithium.h" 10 #include "src/lithium.h"
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 } 1070 }
1071 1071
1072 1072
1073 Handle<Code> StoreGlobalStub::GenerateCode() { 1073 Handle<Code> StoreGlobalStub::GenerateCode() {
1074 return DoGenerateCode(this); 1074 return DoGenerateCode(this);
1075 } 1075 }
1076 1076
1077 1077
1078 template<> 1078 template<>
1079 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() { 1079 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() {
1080 HValue* value = GetParameter(0); 1080 HValue* value = GetParameter(ElementsTransitionAndStoreStub::kValueIndex);
1081 HValue* map = GetParameter(1); 1081 HValue* map = GetParameter(ElementsTransitionAndStoreStub::kMapIndex);
1082 HValue* key = GetParameter(2); 1082 HValue* key = GetParameter(ElementsTransitionAndStoreStub::kKeyIndex);
1083 HValue* object = GetParameter(3); 1083 HValue* object = GetParameter(ElementsTransitionAndStoreStub::kObjectIndex);
1084 1084
1085 if (FLAG_trace_elements_transitions) { 1085 if (FLAG_trace_elements_transitions) {
1086 // Tracing elements transitions is the job of the runtime. 1086 // Tracing elements transitions is the job of the runtime.
1087 Add<HDeoptimize>("Tracing elements transitions", Deoptimizer::EAGER); 1087 Add<HDeoptimize>("Tracing elements transitions", Deoptimizer::EAGER);
1088 } else { 1088 } else {
1089 info()->MarkAsSavesCallerDoubles(); 1089 info()->MarkAsSavesCallerDoubles();
1090 1090
1091 BuildTransitionElementsKind(object, map, 1091 BuildTransitionElementsKind(object, map,
1092 casted_stub()->from_kind(), 1092 casted_stub()->from_kind(),
1093 casted_stub()->to_kind(), 1093 casted_stub()->to_kind(),
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 return Pop(); 1725 return Pop();
1726 } 1726 }
1727 1727
1728 1728
1729 Handle<Code> KeyedLoadGenericElementStub::GenerateCode() { 1729 Handle<Code> KeyedLoadGenericElementStub::GenerateCode() {
1730 return DoGenerateCode(this); 1730 return DoGenerateCode(this);
1731 } 1731 }
1732 1732
1733 1733
1734 } } // namespace v8::internal 1734 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698