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

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

Issue 60793002: MIPS: Avoid using dd() in Prologue when --optimize-for-size. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 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') | src/mips/macro-assembler-mips.cc » ('J')
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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 // Use --code-comments to enable. 889 // Use --code-comments to enable.
890 void RecordComment(const char* msg); 890 void RecordComment(const char* msg);
891 891
892 static int RelocateInternalReference(byte* pc, intptr_t pc_delta); 892 static int RelocateInternalReference(byte* pc, intptr_t pc_delta);
893 893
894 // Writes a single byte or word of data in the code stream. Used for 894 // Writes a single byte or word of data in the code stream. Used for
895 // inline tables, e.g., jump-tables. 895 // inline tables, e.g., jump-tables.
896 void db(uint8_t data); 896 void db(uint8_t data);
897 void dd(uint32_t data); 897 void dd(uint32_t data);
898 898
899 // Emits the address of the code stub's first instruction.
900 void emit_code_stub_address(Code* stub);
901
899 PositionsRecorder* positions_recorder() { return &positions_recorder_; } 902 PositionsRecorder* positions_recorder() { return &positions_recorder_; }
900 903
901 // Postpone the generation of the trampoline pool for the specified number of 904 // Postpone the generation of the trampoline pool for the specified number of
902 // instructions. 905 // instructions.
903 void BlockTrampolinePoolFor(int instructions); 906 void BlockTrampolinePoolFor(int instructions);
904 907
905 // Check if there is less than kGap bytes available in the buffer. 908 // Check if there is less than kGap bytes available in the buffer.
906 // If this is the case, we need to grow the buffer before emitting 909 // If this is the case, we need to grow the buffer before emitting
907 // an instruction or relocation information. 910 // an instruction or relocation information.
908 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } 911 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; }
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 class EnsureSpace BASE_EMBEDDED { 1241 class EnsureSpace BASE_EMBEDDED {
1239 public: 1242 public:
1240 explicit EnsureSpace(Assembler* assembler) { 1243 explicit EnsureSpace(Assembler* assembler) {
1241 assembler->CheckBuffer(); 1244 assembler->CheckBuffer();
1242 } 1245 }
1243 }; 1246 };
1244 1247
1245 } } // namespace v8::internal 1248 } } // namespace v8::internal
1246 1249
1247 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1250 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/assembler-mips.cc » ('j') | src/mips/macro-assembler-mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698