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

Side by Side Diff: src/hydrogen.h

Issue 146623007: Merge BuildLoadKeyedGeneric and BuildStoreKeyedGeneric, switch on AccessType (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') | src/hydrogen.cc » ('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 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 PUSH_BEFORE_SIMULATE, 2432 PUSH_BEFORE_SIMULATE,
2433 NO_PUSH_BEFORE_SIMULATE 2433 NO_PUSH_BEFORE_SIMULATE
2434 }; 2434 };
2435 HValue* BuildBinaryOperation( 2435 HValue* BuildBinaryOperation(
2436 BinaryOperation* expr, 2436 BinaryOperation* expr,
2437 HValue* left, 2437 HValue* left,
2438 HValue* right, 2438 HValue* right,
2439 PushBeforeSimulateBehavior push_sim_result); 2439 PushBeforeSimulateBehavior push_sim_result);
2440 HInstruction* BuildIncrement(bool returns_original_input, 2440 HInstruction* BuildIncrement(bool returns_original_input,
2441 CountOperation* expr); 2441 CountOperation* expr);
2442 HInstruction* BuildLoadKeyedGeneric(HValue* object, 2442 HInstruction* BuildKeyedGeneric(PropertyAccessType access_type,
2443 HValue* key); 2443 HValue* object,
2444 HValue* key,
2445 HValue* value);
2444 2446
2445 HInstruction* TryBuildConsolidatedElementLoad(HValue* object, 2447 HInstruction* TryBuildConsolidatedElementLoad(HValue* object,
2446 HValue* key, 2448 HValue* key,
2447 HValue* val, 2449 HValue* val,
2448 SmallMapList* maps); 2450 SmallMapList* maps);
2449 2451
2450 LoadKeyedHoleMode BuildKeyedHoleMode(Handle<Map> map); 2452 LoadKeyedHoleMode BuildKeyedHoleMode(Handle<Map> map);
2451 2453
2452 HInstruction* BuildMonomorphicElementAccess(HValue* object, 2454 HInstruction* BuildMonomorphicElementAccess(HValue* object,
2453 HValue* key, 2455 HValue* key,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2496 2498
2497 void BuildStore(Expression* expression, 2499 void BuildStore(Expression* expression,
2498 Property* prop, 2500 Property* prop,
2499 BailoutId ast_id, 2501 BailoutId ast_id,
2500 BailoutId return_id, 2502 BailoutId return_id,
2501 bool is_uninitialized = false); 2503 bool is_uninitialized = false);
2502 2504
2503 HInstruction* BuildStoreNamedField(PropertyAccessInfo* info, 2505 HInstruction* BuildStoreNamedField(PropertyAccessInfo* info,
2504 HValue* checked_object, 2506 HValue* checked_object,
2505 HValue* value); 2507 HValue* value);
2506 HInstruction* BuildStoreKeyedGeneric(HValue* object,
2507 HValue* key,
2508 HValue* value);
2509 2508
2510 HValue* BuildContextChainWalk(Variable* var); 2509 HValue* BuildContextChainWalk(Variable* var);
2511 2510
2512 HInstruction* BuildThisFunction(); 2511 HInstruction* BuildThisFunction();
2513 2512
2514 HInstruction* BuildFastLiteral(Handle<JSObject> boilerplate_object, 2513 HInstruction* BuildFastLiteral(Handle<JSObject> boilerplate_object,
2515 AllocationSiteUsageContext* site_context); 2514 AllocationSiteUsageContext* site_context);
2516 2515
2517 void BuildEmitObjectHeader(Handle<JSObject> boilerplate_object, 2516 void BuildEmitObjectHeader(Handle<JSObject> boilerplate_object,
2518 HInstruction* object); 2517 HInstruction* object);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2738 } 2737 }
2739 2738
2740 private: 2739 private:
2741 HGraphBuilder* builder_; 2740 HGraphBuilder* builder_;
2742 }; 2741 };
2743 2742
2744 2743
2745 } } // namespace v8::internal 2744 } } // namespace v8::internal
2746 2745
2747 #endif // V8_HYDROGEN_H_ 2746 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698