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

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

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 Condition EmitIsObject(Register input, 350 Condition EmitIsObject(Register input,
351 Register temp1, 351 Register temp1,
352 Label* is_not_object, 352 Label* is_not_object,
353 Label* is_object); 353 Label* is_object);
354 354
355 // Emits optimized code for %_IsString(x). Preserves input register. 355 // Emits optimized code for %_IsString(x). Preserves input register.
356 // Returns the condition on which a final split to 356 // Returns the condition on which a final split to
357 // true and false label should be made, to optimize fallthrough. 357 // true and false label should be made, to optimize fallthrough.
358 Condition EmitIsString(Register input, 358 Condition EmitIsString(Register input,
359 Register temp1, 359 Register temp1,
360 Label* is_not_string); 360 Label* is_not_string,
361 SmiCheck check_needed);
361 362
362 // Emits optimized code for %_IsConstructCall(). 363 // Emits optimized code for %_IsConstructCall().
363 // Caller should branch on equal condition. 364 // Caller should branch on equal condition.
364 void EmitIsConstructCall(Register temp); 365 void EmitIsConstructCall(Register temp);
365 366
366 void EmitLoadFieldOrConstantFunction(Register result, 367 void EmitLoadFieldOrConstantFunction(Register result,
367 Register object, 368 Register object,
368 Handle<Map> type, 369 Handle<Map> type,
369 Handle<String> name, 370 Handle<String> name,
370 LEnvironment* env); 371 LEnvironment* env);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 LCodeGen* codegen_; 477 LCodeGen* codegen_;
477 Label entry_; 478 Label entry_;
478 Label exit_; 479 Label exit_;
479 Label* external_exit_; 480 Label* external_exit_;
480 int instruction_index_; 481 int instruction_index_;
481 }; 482 };
482 483
483 } } // namespace v8::internal 484 } } // namespace v8::internal
484 485
485 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 486 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698