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

Side by Side Diff: src/hydrogen.h

Issue 14284010: Introduce HObjectAccess, which is used by LoadNamedField and StoreNamedField to denote what parts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Split apart ForOffset into ForJSObjectOffset, ForJSArrayOffset, and ForFixedArrayOffset 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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 HValue* object, 1015 HValue* object,
1016 HValue* key, 1016 HValue* key,
1017 HValue* val, 1017 HValue* val,
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 HLoadNamedField * AddLoad(
1026 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map); 1026 HValue *object,
1027 HObjectAccess access,
1028 HValue *typecheck = NULL,
1029 Representation representation = Representation::Tagged());
1030
1031 HStoreNamedField* AddStore(
1032 HValue *object,
1033 HObjectAccess access,
1034 HValue *val,
1035 Representation representation = Representation::Tagged());
1036
1037 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
1027 1038
1028 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); 1039 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1029 1040
1030 class IfBuilder { 1041 class IfBuilder {
1031 public: 1042 public:
1032 explicit IfBuilder(HGraphBuilder* builder, 1043 explicit IfBuilder(HGraphBuilder* builder,
1033 int position = RelocInfo::kNoPosition); 1044 int position = RelocInfo::kNoPosition);
1034 IfBuilder(HGraphBuilder* builder, 1045 IfBuilder(HGraphBuilder* builder,
1035 HIfContinuation* continuation); 1046 HIfContinuation* continuation);
1036 1047
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 EmbeddedVector<char, 64> filename_; 2016 EmbeddedVector<char, 64> filename_;
2006 HeapStringAllocator string_allocator_; 2017 HeapStringAllocator string_allocator_;
2007 StringStream trace_; 2018 StringStream trace_;
2008 int indent_; 2019 int indent_;
2009 }; 2020 };
2010 2021
2011 2022
2012 } } // namespace v8::internal 2023 } } // namespace v8::internal
2013 2024
2014 #endif // V8_HYDROGEN_H_ 2025 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698