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

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: mips: CompareGenericAndBranch 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
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_object,
312 Label* is_object);
313
306 // Emits optimized code for %_IsConstructCall(). 314 // Emits optimized code for %_IsConstructCall().
307 // Caller should branch on equal condition. 315 // Caller should branch on equal condition.
308 void EmitIsConstructCall(Register temp1, Register temp2); 316 void EmitIsConstructCall(Register temp1, Register temp2);
309 317
310 void EmitLoadFieldOrConstantFunction(Register result, 318 void EmitLoadFieldOrConstantFunction(Register result,
311 Register object, 319 Register object,
312 Handle<Map> type, 320 Handle<Map> type,
313 Handle<String> name); 321 Handle<String> name);
314 322
315 struct JumpTableEntry { 323 struct JumpTableEntry {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 LCodeGen* codegen_; 427 LCodeGen* codegen_;
420 Label entry_; 428 Label entry_;
421 Label exit_; 429 Label exit_;
422 Label* external_exit_; 430 Label* external_exit_;
423 int instruction_index_; 431 int instruction_index_;
424 }; 432 };
425 433
426 } } // namespace v8::internal 434 } } // namespace v8::internal
427 435
428 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 436 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698