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

Side by Side Diff: src/mips/assembler-mips.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/ia32/assembler-ia32-inl.h ('k') | src/mips/assembler-mips-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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 ICacheFlushMode icache_flush_mode = 504 ICacheFlushMode icache_flush_mode =
505 FLUSH_ICACHE_IF_NEEDED)) { 505 FLUSH_ICACHE_IF_NEEDED)) {
506 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL; 506 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL;
507 set_target_address_at(pc, constant_pool, target, icache_flush_mode); 507 set_target_address_at(pc, constant_pool, target, icache_flush_mode);
508 } 508 }
509 509
510 // Return the code target address at a call site from the return address 510 // Return the code target address at a call site from the return address
511 // of that call in the instruction stream. 511 // of that call in the instruction stream.
512 inline static Address target_address_from_return_address(Address pc); 512 inline static Address target_address_from_return_address(Address pc);
513 513
514 // Return the code target address of the patch debug break slot
515 inline static Address break_address_from_return_address(Address pc);
516
514 static void JumpLabelToJumpRegister(Address pc); 517 static void JumpLabelToJumpRegister(Address pc);
515 518
516 static void QuietNaN(HeapObject* nan); 519 static void QuietNaN(HeapObject* nan);
517 520
518 // This sets the branch destination (which gets loaded at the call address). 521 // This sets the branch destination (which gets loaded at the call address).
519 // This is for calls and branches within generated code. The serializer 522 // This is for calls and branches within generated code. The serializer
520 // has already deserialized the lui/ori instructions etc. 523 // has already deserialized the lui/ori instructions etc.
521 inline static void deserialization_set_special_target_at( 524 inline static void deserialization_set_special_target_at(
522 Address instruction_payload, Code* code, Address target) { 525 Address instruction_payload, Code* code, Address target) {
523 set_target_address_at( 526 set_target_address_at(
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 class EnsureSpace BASE_EMBEDDED { 1237 class EnsureSpace BASE_EMBEDDED {
1235 public: 1238 public:
1236 explicit EnsureSpace(Assembler* assembler) { 1239 explicit EnsureSpace(Assembler* assembler) {
1237 assembler->CheckBuffer(); 1240 assembler->CheckBuffer();
1238 } 1241 }
1239 }; 1242 };
1240 1243
1241 } } // namespace v8::internal 1244 } } // namespace v8::internal
1242 1245
1243 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1246 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698