OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |