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

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

Issue 427863003: Abstract out fetching of break_address in debug mode (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address formatting comment Created 6 years, 4 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/mips/assembler-mips-inl.h ('k') | src/mips64/assembler-mips64-inl.h » ('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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 ICacheFlushMode icache_flush_mode = 496 ICacheFlushMode icache_flush_mode =
497 FLUSH_ICACHE_IF_NEEDED)) { 497 FLUSH_ICACHE_IF_NEEDED)) {
498 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL; 498 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL;
499 set_target_address_at(pc, constant_pool, target, icache_flush_mode); 499 set_target_address_at(pc, constant_pool, target, icache_flush_mode);
500 } 500 }
501 501
502 // Return the code target address at a call site from the return address 502 // Return the code target address at a call site from the return address
503 // of that call in the instruction stream. 503 // of that call in the instruction stream.
504 inline static Address target_address_from_return_address(Address pc); 504 inline static Address target_address_from_return_address(Address pc);
505 505
506 // Return the code target address of the patch debug break slot
507 inline static Address break_address_from_return_address(Address pc);
508
506 static void JumpLabelToJumpRegister(Address pc); 509 static void JumpLabelToJumpRegister(Address pc);
507 510
508 static void QuietNaN(HeapObject* nan); 511 static void QuietNaN(HeapObject* nan);
509 512
510 // This sets the branch destination (which gets loaded at the call address). 513 // This sets the branch destination (which gets loaded at the call address).
511 // This is for calls and branches within generated code. The serializer 514 // This is for calls and branches within generated code. The serializer
512 // has already deserialized the lui/ori instructions etc. 515 // has already deserialized the lui/ori instructions etc.
513 inline static void deserialization_set_special_target_at( 516 inline static void deserialization_set_special_target_at(
514 Address instruction_payload, Code* code, Address target) { 517 Address instruction_payload, Code* code, Address target) {
515 set_target_address_at( 518 set_target_address_at(
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 class EnsureSpace BASE_EMBEDDED { 1261 class EnsureSpace BASE_EMBEDDED {
1259 public: 1262 public:
1260 explicit EnsureSpace(Assembler* assembler) { 1263 explicit EnsureSpace(Assembler* assembler) {
1261 assembler->CheckBuffer(); 1264 assembler->CheckBuffer();
1262 } 1265 }
1263 }; 1266 };
1264 1267
1265 } } // namespace v8::internal 1268 } } // namespace v8::internal
1266 1269
1267 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1270 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips-inl.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698