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

Side by Side Diff: src/assembler.h

Issue 1000373003: Serializer: prepare support for INTERNAL_REFERENCE_ENCODED. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: switch Created 5 years, 9 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/assembler.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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Everything after runtime_entry (inclusive) is not GC'ed. 372 // Everything after runtime_entry (inclusive) is not GC'ed.
373 RUNTIME_ENTRY, 373 RUNTIME_ENTRY,
374 JS_RETURN, // Marks start of the ExitJSFrame code. 374 JS_RETURN, // Marks start of the ExitJSFrame code.
375 COMMENT, 375 COMMENT,
376 POSITION, // See comment for kNoPosition above. 376 POSITION, // See comment for kNoPosition above.
377 STATEMENT_POSITION, // See comment for kNoPosition above. 377 STATEMENT_POSITION, // See comment for kNoPosition above.
378 DEBUG_BREAK_SLOT, // Additional code inserted for debug break slot. 378 DEBUG_BREAK_SLOT, // Additional code inserted for debug break slot.
379 EXTERNAL_REFERENCE, // The address of an external C++ function. 379 EXTERNAL_REFERENCE, // The address of an external C++ function.
380 INTERNAL_REFERENCE, // An address inside the same function. 380 INTERNAL_REFERENCE, // An address inside the same function.
381 381
382 // Encoded internal reference, used only on MIPS, MIPS64 and PPC.
383 INTERNAL_REFERENCE_ENCODED,
384
382 // Marks constant and veneer pools. Only used on ARM and ARM64. 385 // Marks constant and veneer pools. Only used on ARM and ARM64.
383 // They use a custom noncompact encoding. 386 // They use a custom noncompact encoding.
384 CONST_POOL, 387 CONST_POOL,
385 VENEER_POOL, 388 VENEER_POOL,
386 389
387 DEOPT_REASON, // Deoptimization reason index. 390 DEOPT_REASON, // Deoptimization reason index.
388 391
389 // add more as needed 392 // add more as needed
390 // Pseudo-types 393 // Pseudo-types
391 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding. 394 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding.
392 NONE32, // never recorded 32-bit value 395 NONE32, // never recorded 32-bit value
393 NONE64, // never recorded 64-bit value 396 NONE64, // never recorded 64-bit value
394 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by 397 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by
395 // code aging. 398 // code aging.
396 399
397 // Encoded internal reference, used only on MIPS and MIPS64.
398 // Re-uses previous ARM-only encoding, to fit in RealRelocMode space.
399 INTERNAL_REFERENCE_ENCODED = CONST_POOL,
400
401 FIRST_REAL_RELOC_MODE = CODE_TARGET, 400 FIRST_REAL_RELOC_MODE = CODE_TARGET,
402 LAST_REAL_RELOC_MODE = VENEER_POOL, 401 LAST_REAL_RELOC_MODE = VENEER_POOL,
403 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, 402 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE,
404 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, 403 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE,
405 LAST_CODE_ENUM = DEBUG_BREAK, 404 LAST_CODE_ENUM = DEBUG_BREAK,
406 LAST_GCED_ENUM = CELL, 405 LAST_GCED_ENUM = CELL,
407 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. 406 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding.
408 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID, 407 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID,
409 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE 408 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE
410 }; 409 };
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 NullCallWrapper() { } 1165 NullCallWrapper() { }
1167 virtual ~NullCallWrapper() { } 1166 virtual ~NullCallWrapper() { }
1168 virtual void BeforeCall(int call_size) const { } 1167 virtual void BeforeCall(int call_size) const { }
1169 virtual void AfterCall() const { } 1168 virtual void AfterCall() const { }
1170 }; 1169 };
1171 1170
1172 1171
1173 } } // namespace v8::internal 1172 } } // namespace v8::internal
1174 1173
1175 #endif // V8_ASSEMBLER_H_ 1174 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698