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

Side by Side Diff: src/hydrogen.h

Issue 15993014: hydrogen: split switch optimization code into multiple functions (Closed) Base URL: gh:v8/v8.git@master
Patch Set: Created 7 years, 6 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 | « no previous file | src/hydrogen.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 // 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 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 Property* expr); 1684 Property* expr);
1685 HInstruction* BuildCallGetter(HValue* object, 1685 HInstruction* BuildCallGetter(HValue* object,
1686 Handle<Map> map, 1686 Handle<Map> map,
1687 Handle<JSFunction> getter, 1687 Handle<JSFunction> getter,
1688 Handle<JSObject> holder); 1688 Handle<JSObject> holder);
1689 HInstruction* BuildLoadNamedMonomorphic(HValue* object, 1689 HInstruction* BuildLoadNamedMonomorphic(HValue* object,
1690 Handle<String> name, 1690 Handle<String> name,
1691 Property* expr, 1691 Property* expr,
1692 Handle<Map> map); 1692 Handle<Map> map);
1693 1693
1694 // Emit clause bodies and glue them together
1695 void GlueSwitchClauses(SwitchStatement* stmt, ZoneList<HBasicBlock*>* bodies);
1696
1694 void AddCheckMap(HValue* object, Handle<Map> map); 1697 void AddCheckMap(HValue* object, Handle<Map> map);
1695 1698
1696 void AddCheckMapsWithTransitions(HValue* object, 1699 void AddCheckMapsWithTransitions(HValue* object,
1697 Handle<Map> map); 1700 Handle<Map> map);
1698 1701
1699 HInstruction* BuildStoreNamedField(HValue* object, 1702 HInstruction* BuildStoreNamedField(HValue* object,
1700 Handle<String> name, 1703 Handle<String> name,
1701 HValue* value, 1704 HValue* value,
1702 Handle<Map> map, 1705 Handle<Map> map,
1703 LookupResult* lookup); 1706 LookupResult* lookup);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 EmbeddedVector<char, 64> filename_; 1952 EmbeddedVector<char, 64> filename_;
1950 HeapStringAllocator string_allocator_; 1953 HeapStringAllocator string_allocator_;
1951 StringStream trace_; 1954 StringStream trace_;
1952 int indent_; 1955 int indent_;
1953 }; 1956 };
1954 1957
1955 1958
1956 } } // namespace v8::internal 1959 } } // namespace v8::internal
1957 1960
1958 #endif // V8_HYDROGEN_H_ 1961 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698