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

Side by Side Diff: src/hydrogen.h

Issue 155513008: Unify BuildLoad/StoreNamedGeneric (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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') | 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 KeyedAccessStoreMode store_mode, 2473 KeyedAccessStoreMode store_mode,
2474 bool* has_side_effects); 2474 bool* has_side_effects);
2475 2475
2476 HValue* HandleKeyedElementAccess(HValue* obj, 2476 HValue* HandleKeyedElementAccess(HValue* obj,
2477 HValue* key, 2477 HValue* key,
2478 HValue* val, 2478 HValue* val,
2479 Expression* expr, 2479 Expression* expr,
2480 bool is_store, 2480 bool is_store,
2481 bool* has_side_effects); 2481 bool* has_side_effects);
2482 2482
2483 HInstruction* BuildLoadNamedGeneric(HValue* object, 2483 HInstruction* BuildNamedGeneric(PropertyAccessType access,
2484 Handle<String> name, 2484 HValue* object,
2485 bool is_uninitialized = false); 2485 Handle<String> name,
2486 HValue* value,
2487 bool is_uninitialized = false);
2486 2488
2487 HCheckMaps* AddCheckMap(HValue* object, Handle<Map> map); 2489 HCheckMaps* AddCheckMap(HValue* object, Handle<Map> map);
2488 2490
2489 void BuildLoad(Property* property, 2491 void BuildLoad(Property* property,
2490 BailoutId ast_id); 2492 BailoutId ast_id);
2491 void PushLoad(Property* property, 2493 void PushLoad(Property* property,
2492 HValue* object, 2494 HValue* object,
2493 HValue* key); 2495 HValue* key);
2494 2496
2495 void BuildStoreForEffect(Expression* expression, 2497 void BuildStoreForEffect(Expression* expression,
2496 Property* prop, 2498 Property* prop,
2497 BailoutId ast_id, 2499 BailoutId ast_id,
2498 BailoutId return_id, 2500 BailoutId return_id,
2499 HValue* object, 2501 HValue* object,
2500 HValue* key, 2502 HValue* key,
2501 HValue* value); 2503 HValue* value);
2502 2504
2503 void BuildStore(Expression* expression, 2505 void BuildStore(Expression* expression,
2504 Property* prop, 2506 Property* prop,
2505 BailoutId ast_id, 2507 BailoutId ast_id,
2506 BailoutId return_id, 2508 BailoutId return_id,
2507 bool is_uninitialized = false); 2509 bool is_uninitialized = false);
2508 2510
2509 HInstruction* BuildStoreNamedField(PropertyAccessInfo* info, 2511 HInstruction* BuildStoreNamedField(PropertyAccessInfo* info,
2510 HValue* checked_object, 2512 HValue* checked_object,
2511 HValue* value); 2513 HValue* value);
2512 HInstruction* BuildStoreNamedGeneric(HValue* object,
2513 Handle<String> name,
2514 HValue* value,
2515 bool is_uninitialized = false);
2516 HInstruction* BuildStoreKeyedGeneric(HValue* object, 2514 HInstruction* BuildStoreKeyedGeneric(HValue* object,
2517 HValue* key, 2515 HValue* key,
2518 HValue* value); 2516 HValue* value);
2519 2517
2520 HValue* BuildContextChainWalk(Variable* var); 2518 HValue* BuildContextChainWalk(Variable* var);
2521 2519
2522 HInstruction* BuildThisFunction(); 2520 HInstruction* BuildThisFunction();
2523 2521
2524 HInstruction* BuildFastLiteral(Handle<JSObject> boilerplate_object, 2522 HInstruction* BuildFastLiteral(Handle<JSObject> boilerplate_object,
2525 AllocationSiteUsageContext* site_context); 2523 AllocationSiteUsageContext* site_context);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2748 } 2746 }
2749 2747
2750 private: 2748 private:
2751 HGraphBuilder* builder_; 2749 HGraphBuilder* builder_;
2752 }; 2750 };
2753 2751
2754 2752
2755 } } // namespace v8::internal 2753 } } // namespace v8::internal
2756 2754
2757 #endif // V8_HYDROGEN_H_ 2755 #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