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

Side by Side Diff: src/x64/lithium-x64.h

Issue 7608020: Use immediates when possible for HBoundsCheck and HLoadKeyedFastElement (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored as suggested Created 9 years, 4 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr, 2128 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
2129 int index); 2129 int index);
2130 template<int I, int T> 2130 template<int I, int T>
2131 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr); 2131 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
2132 template<int I, int T> 2132 template<int I, int T>
2133 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr, 2133 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
2134 Register reg); 2134 Register reg);
2135 template<int I, int T> 2135 template<int I, int T>
2136 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr, 2136 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
2137 XMMRegister reg); 2137 XMMRegister reg);
2138 // Must be called for any instruction that can deoptimize (unless
2139 // |MarkAsCall| is called with CAN_DEOPTIMIZE_EAGERLY, which implies this).
2138 LInstruction* AssignEnvironment(LInstruction* instr); 2140 LInstruction* AssignEnvironment(LInstruction* instr);
2141 // Must be called for any instruction that can trigger a GC (unless
2142 // |MarkAsCall| is called, which implies this).
2139 LInstruction* AssignPointerMap(LInstruction* instr); 2143 LInstruction* AssignPointerMap(LInstruction* instr);
2140 2144
2141 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY }; 2145 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
2142 2146
2143 // By default we assume that instruction sequences generated for calls 2147 // By default we assume that instruction sequences generated for calls
2144 // cannot deoptimize eagerly and we do not attach environment to this 2148 // cannot deoptimize eagerly and we do not attach environment to this
2145 // instruction. 2149 // instruction.
2146 LInstruction* MarkAsCall( 2150 LInstruction* MarkAsCall(
2147 LInstruction* instr, 2151 LInstruction* instr,
2148 HInstruction* hinstr, 2152 HInstruction* hinstr,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 2184
2181 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2185 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2182 }; 2186 };
2183 2187
2184 #undef DECLARE_HYDROGEN_ACCESSOR 2188 #undef DECLARE_HYDROGEN_ACCESSOR
2185 #undef DECLARE_CONCRETE_INSTRUCTION 2189 #undef DECLARE_CONCRETE_INSTRUCTION
2186 2190
2187 } } // namespace v8::int 2191 } } // namespace v8::int
2188 2192
2189 #endif // V8_X64_LITHIUM_X64_H_ 2193 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698