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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-ia32.cc ('k') | src/mips/lithium-codegen-mips.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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 Operand& cmp2); 296 Operand& cmp2);
297 297
298 // Emits optimized code for %_IsObject(x). Preserves input register. 298 // Emits optimized code for %_IsObject(x). Preserves input register.
299 // Returns the condition on which a final split to 299 // Returns the condition on which a final split to
300 // true and false label should be made, to optimize fallthrough. 300 // true and false label should be made, to optimize fallthrough.
301 Condition EmitIsObject(Register input, 301 Condition EmitIsObject(Register input,
302 Register temp1, 302 Register temp1,
303 Label* is_not_object, 303 Label* is_not_object,
304 Label* is_object); 304 Label* is_object);
305 305
306 // Emits optimized code for %_IsString(x). Preserves input register.
307 // Returns the condition on which a final split to
308 // true and false label should be made, to optimize fallthrough.
309 Condition EmitIsString(Register input,
310 Register temp1,
311 Label* is_not_string);
312
306 // Emits optimized code for %_IsConstructCall(). 313 // Emits optimized code for %_IsConstructCall().
307 // Caller should branch on equal condition. 314 // Caller should branch on equal condition.
308 void EmitIsConstructCall(Register temp1, Register temp2); 315 void EmitIsConstructCall(Register temp1, Register temp2);
309 316
310 void EmitLoadFieldOrConstantFunction(Register result, 317 void EmitLoadFieldOrConstantFunction(Register result,
311 Register object, 318 Register object,
312 Handle<Map> type, 319 Handle<Map> type,
313 Handle<String> name); 320 Handle<String> name);
314 321
315 struct JumpTableEntry { 322 struct JumpTableEntry {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 LCodeGen* codegen_; 426 LCodeGen* codegen_;
420 Label entry_; 427 Label entry_;
421 Label exit_; 428 Label exit_;
422 Label* external_exit_; 429 Label* external_exit_;
423 int instruction_index_; 430 int instruction_index_;
424 }; 431 };
425 432
426 } } // namespace v8::internal 433 } } // namespace v8::internal
427 434
428 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 435 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698