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

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

Issue 11821013: MIPS: Optimise Math.floor(x/y) to use integer division for MIPS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed mjsunit test. Created 7 years, 7 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/mips/lithium-codegen-mips.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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 Handle<String> name, 370 Handle<String> name,
371 LEnvironment* env); 371 LEnvironment* env);
372 372
373 // Emits optimized code to deep-copy the contents of statically known 373 // Emits optimized code to deep-copy the contents of statically known
374 // object graphs (e.g. object literal boilerplate). 374 // object graphs (e.g. object literal boilerplate).
375 void EmitDeepCopy(Handle<JSObject> object, 375 void EmitDeepCopy(Handle<JSObject> object,
376 Register result, 376 Register result,
377 Register source, 377 Register source,
378 int* offset); 378 int* offset);
379 379
380 // Emit optimized code for integer division.
381 // Inputs are signed.
382 // All registers are clobbered.
383 // If 'remainder' is no_reg, it is not computed.
384 void EmitSignedIntegerDivisionByConstant(Register result,
385 Register dividend,
386 int32_t divisor,
387 Register remainder,
388 Register scratch,
389 LEnvironment* environment);
390
380 struct JumpTableEntry { 391 struct JumpTableEntry {
381 inline JumpTableEntry(Address entry, bool frame, bool is_lazy) 392 inline JumpTableEntry(Address entry, bool frame, bool is_lazy)
382 : label(), 393 : label(),
383 address(entry), 394 address(entry),
384 needs_frame(frame), 395 needs_frame(frame),
385 is_lazy_deopt(is_lazy) { } 396 is_lazy_deopt(is_lazy) { }
386 Label label; 397 Label label;
387 Address address; 398 Address address;
388 bool needs_frame; 399 bool needs_frame;
389 bool is_lazy_deopt; 400 bool is_lazy_deopt;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 LCodeGen* codegen_; 511 LCodeGen* codegen_;
501 Label entry_; 512 Label entry_;
502 Label exit_; 513 Label exit_;
503 Label* external_exit_; 514 Label* external_exit_;
504 int instruction_index_; 515 int instruction_index_;
505 }; 516 };
506 517
507 } } // namespace v8::internal 518 } } // namespace v8::internal
508 519
509 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 520 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698