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

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

Issue 8373029: [hydrogen] optimize switch with string clauses (Closed) Base URL: gh:v8/v8@master
Patch Set: fix lint errors, improved test Created 9 years, 1 month 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
« no previous file with comments | « src/type-info.cc ('k') | src/x64/lithium-codegen-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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 Register input, 262 Register input,
263 Handle<String> type_name); 263 Handle<String> type_name);
264 264
265 // Emits optimized code for %_IsObject(x). Preserves input register. 265 // Emits optimized code for %_IsObject(x). Preserves input register.
266 // Returns the condition on which a final split to 266 // Returns the condition on which a final split to
267 // true and false label should be made, to optimize fallthrough. 267 // true and false label should be made, to optimize fallthrough.
268 Condition EmitIsObject(Register input, 268 Condition EmitIsObject(Register input,
269 Label* is_not_object, 269 Label* is_not_object,
270 Label* is_object); 270 Label* is_object);
271 271
272 // Emits optimized code for %_IsString(x). Preserves input register.
273 // Returns the condition on which a final split to
274 // true and false label should be made, to optimize fallthrough.
275 Condition EmitIsString(Register input,
276 Register temp1,
277 Label* is_not_string);
278
272 // Emits optimized code for %_IsConstructCall(). 279 // Emits optimized code for %_IsConstructCall().
273 // Caller should branch on equal condition. 280 // Caller should branch on equal condition.
274 void EmitIsConstructCall(Register temp); 281 void EmitIsConstructCall(Register temp);
275 282
276 void EmitLoadFieldOrConstantFunction(Register result, 283 void EmitLoadFieldOrConstantFunction(Register result,
277 Register object, 284 Register object,
278 Handle<Map> type, 285 Handle<Map> type,
279 Handle<String> name); 286 Handle<String> name);
280 287
281 // Emits code for pushing either a tagged constant, a (non-double) 288 // Emits code for pushing either a tagged constant, a (non-double)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 LCodeGen* codegen_; 378 LCodeGen* codegen_;
372 Label entry_; 379 Label entry_;
373 Label exit_; 380 Label exit_;
374 Label* external_exit_; 381 Label* external_exit_;
375 int instruction_index_; 382 int instruction_index_;
376 }; 383 };
377 384
378 } } // namespace v8::internal 385 } } // namespace v8::internal
379 386
380 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 387 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698