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

Side by Side Diff: src/mips/assembler-mips.h

Issue 1419793014: MIPS: JALR to JAL optimization removal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | src/mips/assembler-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 ICacheFlushMode icache_flush_mode = 470 ICacheFlushMode icache_flush_mode =
471 FLUSH_ICACHE_IF_NEEDED)) { 471 FLUSH_ICACHE_IF_NEEDED)) {
472 Address constant_pool = code ? code->constant_pool() : NULL; 472 Address constant_pool = code ? code->constant_pool() : NULL;
473 set_target_address_at(pc, constant_pool, target, icache_flush_mode); 473 set_target_address_at(pc, constant_pool, target, icache_flush_mode);
474 } 474 }
475 475
476 // Return the code target address at a call site from the return address 476 // Return the code target address at a call site from the return address
477 // of that call in the instruction stream. 477 // of that call in the instruction stream.
478 inline static Address target_address_from_return_address(Address pc); 478 inline static Address target_address_from_return_address(Address pc);
479 479
480 static void JumpToJumpRegister(Address pc);
481
482 static void QuietNaN(HeapObject* nan); 480 static void QuietNaN(HeapObject* nan);
483 481
484 // This sets the branch destination (which gets loaded at the call address). 482 // This sets the branch destination (which gets loaded at the call address).
485 // This is for calls and branches within generated code. The serializer 483 // This is for calls and branches within generated code. The serializer
486 // has already deserialized the lui/ori instructions etc. 484 // has already deserialized the lui/ori instructions etc.
487 inline static void deserialization_set_special_target_at( 485 inline static void deserialization_set_special_target_at(
488 Address instruction_payload, Code* code, Address target) { 486 Address instruction_payload, Code* code, Address target) {
489 set_target_address_at( 487 set_target_address_at(
490 instruction_payload - kInstructionsFor32BitConstant * kInstrSize, 488 instruction_payload - kInstructionsFor32BitConstant * kInstrSize,
491 code, 489 code,
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 public: 1418 public:
1421 explicit EnsureSpace(Assembler* assembler) { 1419 explicit EnsureSpace(Assembler* assembler) {
1422 assembler->CheckBuffer(); 1420 assembler->CheckBuffer();
1423 } 1421 }
1424 }; 1422 };
1425 1423
1426 } // namespace internal 1424 } // namespace internal
1427 } // namespace v8 1425 } // namespace v8
1428 1426
1429 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1427 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698