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

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

Issue 58923004: Make HTypeofIsAndBranch accept any representation input (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: rebase Created 7 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/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 Register temp, 340 Register temp,
341 X87Register res_reg, 341 X87Register res_reg,
342 bool allow_undefined_as_nan, 342 bool allow_undefined_as_nan,
343 bool deoptimize_on_minus_zero, 343 bool deoptimize_on_minus_zero,
344 LEnvironment* env, 344 LEnvironment* env,
345 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); 345 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED);
346 346
347 // Emits optimized code for typeof x == "y". Modifies input register. 347 // Emits optimized code for typeof x == "y". Modifies input register.
348 // Returns the condition on which a final split to 348 // Returns the condition on which a final split to
349 // true and false label should be made, to optimize fallthrough. 349 // true and false label should be made, to optimize fallthrough.
350 Condition EmitTypeofIs(Label* true_label, 350 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input);
351 Label* false_label,
352 Register input,
353 Handle<String> type_name);
354 351
355 // Emits optimized code for %_IsObject(x). Preserves input register. 352 // Emits optimized code for %_IsObject(x). Preserves input register.
356 // Returns the condition on which a final split to 353 // Returns the condition on which a final split to
357 // true and false label should be made, to optimize fallthrough. 354 // true and false label should be made, to optimize fallthrough.
358 Condition EmitIsObject(Register input, 355 Condition EmitIsObject(Register input,
359 Register temp1, 356 Register temp1,
360 Label* is_not_object, 357 Label* is_not_object,
361 Label* is_object); 358 Label* is_object);
362 359
363 // Emits optimized code for %_IsString(x). Preserves input register. 360 // Emits optimized code for %_IsString(x). Preserves input register.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 Label exit_; 535 Label exit_;
539 Label* external_exit_; 536 Label* external_exit_;
540 Label done_; 537 Label done_;
541 int instruction_index_; 538 int instruction_index_;
542 LCodeGen::X87Stack x87_stack_; 539 LCodeGen::X87Stack x87_stack_;
543 }; 540 };
544 541
545 } } // namespace v8::internal 542 } } // namespace v8::internal
546 543
547 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 544 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698