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

Side by Side Diff: src/arm/lithium-codegen-arm.h

Issue 10735020: Optimize Smi keys for KeyedLoads (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review feedback 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 | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 125 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
126 Label* map_check); 126 Label* map_check);
127 127
128 void DoCheckMapCommon(Register reg, Register scratch, Handle<Map> map, 128 void DoCheckMapCommon(Register reg, Register scratch, Handle<Map> map,
129 CompareMapMode mode, LEnvironment* env); 129 CompareMapMode mode, LEnvironment* env);
130 130
131 // Parallel move support. 131 // Parallel move support.
132 void DoParallelMove(LParallelMove* move); 132 void DoParallelMove(LParallelMove* move);
133 void DoGap(LGap* instr); 133 void DoGap(LGap* instr);
134 134
135 MemOperand PrepareKeyedOperand(Register key,
136 Register base,
137 bool key_is_constant,
138 int constant_key,
139 int element_size,
140 int shift_size,
141 int additional_index,
142 int additional_offset);
143
135 // Emit frame translation commands for an environment. 144 // Emit frame translation commands for an environment.
136 void WriteTranslation(LEnvironment* environment, Translation* translation); 145 void WriteTranslation(LEnvironment* environment, Translation* translation);
137 146
138 // Declare methods that deal with the individual node types. 147 // Declare methods that deal with the individual node types.
139 #define DECLARE_DO(type) void Do##type(L##type* node); 148 #define DECLARE_DO(type) void Do##type(L##type* node);
140 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 149 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
141 #undef DECLARE_DO 150 #undef DECLARE_DO
142 151
143 private: 152 private:
144 enum Status { 153 enum Status {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 LCodeGen* codegen_; 459 LCodeGen* codegen_;
451 Label entry_; 460 Label entry_;
452 Label exit_; 461 Label exit_;
453 Label* external_exit_; 462 Label* external_exit_;
454 int instruction_index_; 463 int instruction_index_;
455 }; 464 };
456 465
457 } } // namespace v8::internal 466 } } // namespace v8::internal
458 467
459 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 468 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698