OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 | 881 |
882 template<> | 882 template<> |
883 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() { | 883 HValue* CodeStubGraphBuilder<ElementsTransitionAndStoreStub>::BuildCodeStub() { |
884 HValue* value = GetParameter(0); | 884 HValue* value = GetParameter(0); |
885 HValue* map = GetParameter(1); | 885 HValue* map = GetParameter(1); |
886 HValue* key = GetParameter(2); | 886 HValue* key = GetParameter(2); |
887 HValue* object = GetParameter(3); | 887 HValue* object = GetParameter(3); |
888 | 888 |
889 if (FLAG_trace_elements_transitions) { | 889 if (FLAG_trace_elements_transitions) { |
890 // Tracing elements transitions is the job of the runtime. | 890 // Tracing elements transitions is the job of the runtime. |
891 Add<HDeoptimize>("Deopt due to --trace-elements-transitions", | 891 Add<HDeoptimize>("Tracing elements transitions", Deoptimizer::EAGER); |
892 Deoptimizer::EAGER); | |
893 } else { | 892 } else { |
894 info()->MarkAsSavesCallerDoubles(); | 893 info()->MarkAsSavesCallerDoubles(); |
895 | 894 |
896 BuildTransitionElementsKind(object, map, | 895 BuildTransitionElementsKind(object, map, |
897 casted_stub()->from_kind(), | 896 casted_stub()->from_kind(), |
898 casted_stub()->to_kind(), | 897 casted_stub()->to_kind(), |
899 casted_stub()->is_jsarray()); | 898 casted_stub()->is_jsarray()); |
900 | 899 |
901 BuildUncheckedMonomorphicElementAccess(object, key, value, | 900 BuildUncheckedMonomorphicElementAccess(object, key, value, |
902 casted_stub()->is_jsarray(), | 901 casted_stub()->is_jsarray(), |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 return js_function; | 1097 return js_function; |
1099 } | 1098 } |
1100 | 1099 |
1101 | 1100 |
1102 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) { | 1101 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) { |
1103 return DoGenerateCode(isolate, this); | 1102 return DoGenerateCode(isolate, this); |
1104 } | 1103 } |
1105 | 1104 |
1106 | 1105 |
1107 } } // namespace v8::internal | 1106 } } // namespace v8::internal |
OLD | NEW |