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

Side by Side Diff: src/assembler.h

Issue 2843933002: [cleanup] Minor cleanups concerning assemblers and code generation. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | src/codegen.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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 static const int kMinRelocCommentSize = 2 + kPointerSize; 318 static const int kMinRelocCommentSize = 2 + kPointerSize;
319 319
320 // The maximum size for a call instruction including pc-jump. 320 // The maximum size for a call instruction including pc-jump.
321 static const int kMaxCallSize = 6; 321 static const int kMaxCallSize = 6;
322 322
323 // The maximum pc delta that will use the short encoding. 323 // The maximum pc delta that will use the short encoding.
324 static const int kMaxSmallPCDelta; 324 static const int kMaxSmallPCDelta;
325 325
326 enum Mode { 326 enum Mode {
327 // Please note the order is important (see IsCodeTarget, IsGCRelocMode). 327 // Please note the order is important (see IsCodeTarget, IsGCRelocMode).
328 CODE_TARGET, // Code target which is not any of the above. 328 CODE_TARGET,
329 CODE_TARGET_WITH_ID, 329 CODE_TARGET_WITH_ID,
330 EMBEDDED_OBJECT, 330 EMBEDDED_OBJECT,
331 // To relocate pointers into the wasm memory embedded in wasm code 331 // To relocate pointers into the wasm memory embedded in wasm code
332 WASM_MEMORY_REFERENCE, 332 WASM_MEMORY_REFERENCE,
333 WASM_GLOBAL_REFERENCE, 333 WASM_GLOBAL_REFERENCE,
334 WASM_MEMORY_SIZE_REFERENCE, 334 WASM_MEMORY_SIZE_REFERENCE,
335 WASM_FUNCTION_TABLE_SIZE_REFERENCE, 335 WASM_FUNCTION_TABLE_SIZE_REFERENCE,
336 WASM_PROTECTED_INSTRUCTION_LANDING, 336 WASM_PROTECTED_INSTRUCTION_LANDING,
337 CELL, 337 CELL,
338 338
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 std::vector<ConstantPoolEntry> shared_entries; 1256 std::vector<ConstantPoolEntry> shared_entries;
1257 }; 1257 };
1258 1258
1259 Label emitted_label_; // Records pc_offset of emitted pool 1259 Label emitted_label_; // Records pc_offset of emitted pool
1260 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1260 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1261 }; 1261 };
1262 1262
1263 } // namespace internal 1263 } // namespace internal
1264 } // namespace v8 1264 } // namespace v8
1265 #endif // V8_ASSEMBLER_H_ 1265 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698