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

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

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 Condition EmitIsObject(Register input, 341 Condition EmitIsObject(Register input,
342 Register temp1, 342 Register temp1,
343 Label* is_not_object, 343 Label* is_not_object,
344 Label* is_object); 344 Label* is_object);
345 345
346 // Emits optimized code for %_IsString(x). Preserves input register. 346 // Emits optimized code for %_IsString(x). Preserves input register.
347 // Returns the condition on which a final split to 347 // Returns the condition on which a final split to
348 // true and false label should be made, to optimize fallthrough. 348 // true and false label should be made, to optimize fallthrough.
349 Condition EmitIsString(Register input, 349 Condition EmitIsString(Register input,
350 Register temp1, 350 Register temp1,
351 Label* is_not_string); 351 Label* is_not_string,
352 SmiCheck check_needed);
352 353
353 // Emits optimized code for %_IsConstructCall(). 354 // Emits optimized code for %_IsConstructCall().
354 // Caller should branch on equal condition. 355 // Caller should branch on equal condition.
355 void EmitIsConstructCall(Register temp1, Register temp2); 356 void EmitIsConstructCall(Register temp1, Register temp2);
356 357
357 void EmitLoadFieldOrConstantFunction(Register result, 358 void EmitLoadFieldOrConstantFunction(Register result,
358 Register object, 359 Register object,
359 Handle<Map> type, 360 Handle<Map> type,
360 Handle<String> name, 361 Handle<String> name,
361 LEnvironment* env); 362 LEnvironment* env);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 LCodeGen* codegen_; 491 LCodeGen* codegen_;
491 Label entry_; 492 Label entry_;
492 Label exit_; 493 Label exit_;
493 Label* external_exit_; 494 Label* external_exit_;
494 int instruction_index_; 495 int instruction_index_;
495 }; 496 };
496 497
497 } } // namespace v8::internal 498 } } // namespace v8::internal
498 499
499 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 500 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698