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

Side by Side Diff: src/hydrogen.h

Issue 14556020: Remove HLoadElements instruction and replace with use of more general HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 HCheckMaps* mapcheck, 1018 HCheckMaps* mapcheck,
1019 bool is_js_array, 1019 bool is_js_array,
1020 ElementsKind elements_kind, 1020 ElementsKind elements_kind,
1021 bool is_store, 1021 bool is_store,
1022 KeyedAccessStoreMode store_mode, 1022 KeyedAccessStoreMode store_mode,
1023 Representation checked_index_representation = Representation::None()); 1023 Representation checked_index_representation = Representation::None());
1024 1024
1025 HInstruction* BuildStoreMap(HValue* object, HValue* map); 1025 HInstruction* BuildStoreMap(HValue* object, HValue* map);
1026 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map); 1026 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map);
1027 1027
1028 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1029
1028 class IfBuilder { 1030 class IfBuilder {
1029 public: 1031 public:
1030 explicit IfBuilder(HGraphBuilder* builder, 1032 explicit IfBuilder(HGraphBuilder* builder,
1031 int position = RelocInfo::kNoPosition); 1033 int position = RelocInfo::kNoPosition);
1032 IfBuilder(HGraphBuilder* builder, 1034 IfBuilder(HGraphBuilder* builder,
1033 HIfContinuation* continuation); 1035 HIfContinuation* continuation);
1034 1036
1035 ~IfBuilder() { 1037 ~IfBuilder() {
1036 if (!finished_) End(); 1038 if (!finished_) End();
1037 } 1039 }
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 EmbeddedVector<char, 64> filename_; 2005 EmbeddedVector<char, 64> filename_;
2004 HeapStringAllocator string_allocator_; 2006 HeapStringAllocator string_allocator_;
2005 StringStream trace_; 2007 StringStream trace_;
2006 int indent_; 2008 int indent_;
2007 }; 2009 };
2008 2010
2009 2011
2010 } } // namespace v8::internal 2012 } } // namespace v8::internal
2011 2013
2012 #endif // V8_HYDROGEN_H_ 2014 #endif // V8_HYDROGEN_H_
OLDNEW
« .gitignore ('K') | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698