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

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: merged with master 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 | « no previous file | src/x64/lithium-codegen-x64.cc » ('j') | src/x64/lithium-codegen-x64.cc » ('J')
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 Register input, 264 Register input,
265 Handle<String> type_name); 265 Handle<String> type_name);
266 266
267 // Emits optimized code for %_IsObject(x). Preserves input register. 267 // Emits optimized code for %_IsObject(x). Preserves input register.
268 // Returns the condition on which a final split to 268 // Returns the condition on which a final split to
269 // true and false label should be made, to optimize fallthrough. 269 // true and false label should be made, to optimize fallthrough.
270 Condition EmitIsObject(Register input, 270 Condition EmitIsObject(Register input,
271 Label* is_not_object, 271 Label* is_not_object,
272 Label* is_object); 272 Label* is_object);
273 273
274 // Emits optimized code for %_IsString(x). Preserves input register.
275 // Returns the condition on which a final split to
276 // true and false label should be made, to optimize fallthrough.
277 Condition EmitIsString(Register input,
278 Register temp1,
279 Label* is_not_string,
280 Label* is_string);
281
274 // Emits optimized code for %_IsConstructCall(). 282 // Emits optimized code for %_IsConstructCall().
275 // Caller should branch on equal condition. 283 // Caller should branch on equal condition.
276 void EmitIsConstructCall(Register temp); 284 void EmitIsConstructCall(Register temp);
277 285
278 void EmitLoadFieldOrConstantFunction(Register result, 286 void EmitLoadFieldOrConstantFunction(Register result,
279 Register object, 287 Register object,
280 Handle<Map> type, 288 Handle<Map> type,
281 Handle<String> name); 289 Handle<String> name);
282 290
283 // Emits code for pushing either a tagged constant, a (non-double) 291 // Emits code for pushing either a tagged constant, a (non-double)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 LCodeGen* codegen_; 378 LCodeGen* codegen_;
371 Label entry_; 379 Label entry_;
372 Label exit_; 380 Label exit_;
373 Label* external_exit_; 381 Label* external_exit_;
374 int instruction_index_; 382 int instruction_index_;
375 }; 383 };
376 384
377 } } // namespace v8::internal 385 } } // namespace v8::internal
378 386
379 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 387 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-codegen-x64.cc » ('j') | src/x64/lithium-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698