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

Side by Side Diff: src/hydrogen.h

Issue 12700006: Replace ICStub for array.length with hydrogen stub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New patch Created 7 years, 9 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
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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 HInstruction* BuildUncheckedMonomorphicElementAccess( 914 HInstruction* BuildUncheckedMonomorphicElementAccess(
915 HValue* object, 915 HValue* object,
916 HValue* key, 916 HValue* key,
917 HValue* val, 917 HValue* val,
918 HCheckMaps* mapcheck, 918 HCheckMaps* mapcheck,
919 bool is_js_array, 919 bool is_js_array,
920 ElementsKind elements_kind, 920 ElementsKind elements_kind,
921 bool is_store, 921 bool is_store,
922 Representation checked_index_representation = Representation::None()); 922 Representation checked_index_representation = Representation::None());
923 923
924 HInstruction* BuildFastArrayLengthLoad(
925 HValue* object);
926
924 HInstruction* BuildStoreMap(HValue* object, HValue* map, BailoutId id); 927 HInstruction* BuildStoreMap(HValue* object, HValue* map, BailoutId id);
925 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map, BailoutId id); 928 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map, BailoutId id);
926 929
927 class CheckBuilder { 930 class CheckBuilder {
928 public: 931 public:
929 CheckBuilder(HGraphBuilder* builder, BailoutId id); 932 CheckBuilder(HGraphBuilder* builder, BailoutId id);
930 ~CheckBuilder() { 933 ~CheckBuilder() {
931 if (!finished_) End(); 934 if (!finished_) End();
932 } 935 }
933 936
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 EmbeddedVector<char, 64> filename_; 1682 EmbeddedVector<char, 64> filename_;
1680 HeapStringAllocator string_allocator_; 1683 HeapStringAllocator string_allocator_;
1681 StringStream trace_; 1684 StringStream trace_;
1682 int indent_; 1685 int indent_;
1683 }; 1686 };
1684 1687
1685 1688
1686 } } // namespace v8::internal 1689 } } // namespace v8::internal
1687 1690
1688 #endif // V8_HYDROGEN_H_ 1691 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698