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

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

Issue 7274025: Slightly improved register assignment for %_IsObject on IA32 and ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 5 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/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Returns the condition on which a final split to 273 // Returns the condition on which a final split to
274 // true and false label should be made, to optimize fallthrough. 274 // true and false label should be made, to optimize fallthrough.
275 Condition EmitTypeofIs(Label* true_label, Label* false_label, 275 Condition EmitTypeofIs(Label* true_label, Label* false_label,
276 Register input, Handle<String> type_name); 276 Register input, Handle<String> type_name);
277 277
278 // Emits optimized code for %_IsObject(x). Preserves input register. 278 // Emits optimized code for %_IsObject(x). Preserves input register.
279 // Returns the condition on which a final split to 279 // Returns the condition on which a final split to
280 // true and false label should be made, to optimize fallthrough. 280 // true and false label should be made, to optimize fallthrough.
281 Condition EmitIsObject(Register input, 281 Condition EmitIsObject(Register input,
282 Register temp1, 282 Register temp1,
283 Register temp2,
284 Label* is_not_object, 283 Label* is_not_object,
285 Label* is_object); 284 Label* is_object);
286 285
287 // Emits optimized code for %_IsConstructCall(). 286 // Emits optimized code for %_IsConstructCall().
288 // Caller should branch on equal condition. 287 // Caller should branch on equal condition.
289 void EmitIsConstructCall(Register temp1, Register temp2); 288 void EmitIsConstructCall(Register temp1, Register temp2);
290 289
291 void EmitLoadFieldOrConstantFunction(Register result, 290 void EmitLoadFieldOrConstantFunction(Register result,
292 Register object, 291 Register object,
293 Handle<Map> type, 292 Handle<Map> type,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 private: 394 private:
396 LCodeGen* codegen_; 395 LCodeGen* codegen_;
397 Label entry_; 396 Label entry_;
398 Label exit_; 397 Label exit_;
399 Label* external_exit_; 398 Label* external_exit_;
400 }; 399 };
401 400
402 } } // namespace v8::internal 401 } } // namespace v8::internal
403 402
404 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 403 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698