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

Side by Side Diff: src/hydrogen.h

Issue 10802038: Add dependency to HLoadKeyed* instructions to prevent invalid hoisting (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs Created 8 years, 5 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
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/regress/regress-137768.js » ('J')
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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 Handle<Map> type, 1092 Handle<Map> type,
1093 LookupResult* result, 1093 LookupResult* result,
1094 bool smi_and_map_check); 1094 bool smi_and_map_check);
1095 HInstruction* BuildLoadNamedGeneric(HValue* object, Property* expr); 1095 HInstruction* BuildLoadNamedGeneric(HValue* object, Property* expr);
1096 HInstruction* BuildLoadKeyedGeneric(HValue* object, 1096 HInstruction* BuildLoadKeyedGeneric(HValue* object,
1097 HValue* key); 1097 HValue* key);
1098 HInstruction* BuildExternalArrayElementAccess( 1098 HInstruction* BuildExternalArrayElementAccess(
1099 HValue* external_elements, 1099 HValue* external_elements,
1100 HValue* checked_key, 1100 HValue* checked_key,
1101 HValue* val, 1101 HValue* val,
1102 HValue* dependency,
1102 ElementsKind elements_kind, 1103 ElementsKind elements_kind,
1103 bool is_store); 1104 bool is_store);
1104 HInstruction* BuildFastElementAccess(HValue* elements, 1105 HInstruction* BuildFastElementAccess(HValue* elements,
1105 HValue* checked_key, 1106 HValue* checked_key,
1106 HValue* val, 1107 HValue* val,
1108 HValue* dependency,
1107 ElementsKind elements_kind, 1109 ElementsKind elements_kind,
1108 bool is_store); 1110 bool is_store);
1109 1111
1110 HInstruction* TryBuildConsolidatedElementLoad(HValue* object, 1112 HInstruction* TryBuildConsolidatedElementLoad(HValue* object,
1111 HValue* key, 1113 HValue* key,
1112 HValue* val, 1114 HValue* val,
1113 SmallMapList* maps); 1115 SmallMapList* maps);
1114 1116
1115 HInstruction* BuildUncheckedMonomorphicElementAccess(HValue* object, 1117 HInstruction* BuildUncheckedMonomorphicElementAccess(HValue* object,
1116 HValue* key, 1118 HValue* key,
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 const char* filename_; 1457 const char* filename_;
1456 HeapStringAllocator string_allocator_; 1458 HeapStringAllocator string_allocator_;
1457 StringStream trace_; 1459 StringStream trace_;
1458 int indent_; 1460 int indent_;
1459 }; 1461 };
1460 1462
1461 1463
1462 } } // namespace v8::internal 1464 } } // namespace v8::internal
1463 1465
1464 #endif // V8_HYDROGEN_H_ 1466 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/regress/regress-137768.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698