[cleanup] Remove empty and deprecated BASE_EMBEDDED macro
The macro has been deprecated since 2016, and it keeps confusing me, so let's just remove it completely from the code base. R=leszeks@chromium.org TBR=mstarzinger@chromium.org, verwaest@chromium.org, jgruber@chromium.org Bug: v8:8015 Change-Id: Ibe1122fd9d2624bc94873d9c51dc8499c54a04fd Reviewed-on: https://chromium-review.googlesource.com/1209322 Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#55779}
This commit is contained in:
parent
07cfad7a00
commit
a2139261ca
@ -27,7 +27,7 @@ namespace internal {
|
||||
// Note that length_ (whose value is in the integer range) is defined
|
||||
// as intptr_t to provide endian-neutrality on 64-bit archs.
|
||||
|
||||
class Arguments BASE_EMBEDDED {
|
||||
class Arguments {
|
||||
public:
|
||||
Arguments(int length, Object** arguments)
|
||||
: length_(length), arguments_(arguments) {
|
||||
|
@ -393,7 +393,7 @@ enum Coprocessor {
|
||||
// Machine instruction Operands
|
||||
|
||||
// Class Operand represents a shifter operand in data processing instructions
|
||||
class Operand BASE_EMBEDDED {
|
||||
class Operand {
|
||||
public:
|
||||
// immediate
|
||||
V8_INLINE explicit Operand(int32_t immediate,
|
||||
@ -498,7 +498,7 @@ class Operand BASE_EMBEDDED {
|
||||
|
||||
|
||||
// Class MemOperand represents a memory operand in load and store instructions
|
||||
class MemOperand BASE_EMBEDDED {
|
||||
class MemOperand {
|
||||
public:
|
||||
// [rn +/- offset] Offset/NegOffset
|
||||
// [rn +/- offset]! PreIndex/NegPreIndex
|
||||
@ -557,7 +557,7 @@ class MemOperand BASE_EMBEDDED {
|
||||
|
||||
// Class NeonMemOperand represents a memory operand in load and
|
||||
// store NEON instructions
|
||||
class NeonMemOperand BASE_EMBEDDED {
|
||||
class NeonMemOperand {
|
||||
public:
|
||||
// [rn {:align}] Offset
|
||||
// [rn {:align}]! PostIndex
|
||||
@ -580,7 +580,7 @@ class NeonMemOperand BASE_EMBEDDED {
|
||||
|
||||
|
||||
// Class NeonListOperand represents a list of NEON registers
|
||||
class NeonListOperand BASE_EMBEDDED {
|
||||
class NeonListOperand {
|
||||
public:
|
||||
explicit NeonListOperand(DoubleRegister base, int register_count = 1)
|
||||
: base_(base), register_count_(register_count) {}
|
||||
@ -1693,7 +1693,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
|
||||
friend class UseScratchRegisterScope;
|
||||
};
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
V8_INLINE explicit EnsureSpace(Assembler* assembler);
|
||||
};
|
||||
|
@ -3624,8 +3624,7 @@ class PatchingAssembler : public Assembler {
|
||||
void PatchSubSp(uint32_t immediate);
|
||||
};
|
||||
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit EnsureSpace(Assembler* assembler) {
|
||||
assembler->CheckBufferSpace();
|
||||
|
@ -2025,7 +2025,7 @@ class MacroAssembler : public TurboAssembler {
|
||||
// instructions. This scope prevents the MacroAssembler from being called and
|
||||
// literal pools from being emitted. It also asserts the number of instructions
|
||||
// emitted is what you specified when creating the scope.
|
||||
class InstructionAccurateScope BASE_EMBEDDED {
|
||||
class InstructionAccurateScope {
|
||||
public:
|
||||
explicit InstructionAccurateScope(TurboAssembler* tasm, size_t count = 0)
|
||||
: tasm_(tasm)
|
||||
|
@ -301,7 +301,7 @@ class V8_EXPORT_PRIVATE AssemblerBase : public Malloced {
|
||||
};
|
||||
|
||||
// Avoids emitting debug code during the lifetime of this scope object.
|
||||
class DontEmitDebugCodeScope BASE_EMBEDDED {
|
||||
class DontEmitDebugCodeScope {
|
||||
public:
|
||||
explicit DontEmitDebugCodeScope(AssemblerBase* assembler)
|
||||
: assembler_(assembler), old_value_(assembler->emit_debug_code()) {
|
||||
@ -332,7 +332,7 @@ class PredictableCodeSizeScope {
|
||||
|
||||
|
||||
// Enable a specified feature within a scope.
|
||||
class CpuFeatureScope BASE_EMBEDDED {
|
||||
class CpuFeatureScope {
|
||||
public:
|
||||
enum CheckPolicy {
|
||||
kCheckSupported,
|
||||
@ -493,7 +493,7 @@ class ConstantPoolEntry {
|
||||
// -----------------------------------------------------------------------------
|
||||
// Embedded constant pool support
|
||||
|
||||
class ConstantPoolBuilder BASE_EMBEDDED {
|
||||
class ConstantPoolBuilder {
|
||||
public:
|
||||
ConstantPoolBuilder(int ptr_reach_bits, int double_reach_bits);
|
||||
|
||||
|
@ -2746,7 +2746,7 @@ class TemplateLiteral final : public Expression {
|
||||
// class SpecificVisitor : public AstVisitor<SpecificVisitor> { ... }
|
||||
|
||||
template <class Subclass>
|
||||
class AstVisitor BASE_EMBEDDED {
|
||||
class AstVisitor {
|
||||
public:
|
||||
void Visit(AstNode* node) { impl()->Visit(node); }
|
||||
|
||||
@ -2833,7 +2833,7 @@ class AstVisitor BASE_EMBEDDED {
|
||||
// ----------------------------------------------------------------------------
|
||||
// AstNode factory
|
||||
|
||||
class AstNodeFactory final BASE_EMBEDDED {
|
||||
class AstNodeFactory final {
|
||||
public:
|
||||
AstNodeFactory(AstValueFactory* ast_value_factory, Zone* zone)
|
||||
: zone_(zone), ast_value_factory_(ast_value_factory) {}
|
||||
|
@ -666,7 +666,7 @@ void AstPrinter::PrintLiteral(const AstConsString* value, bool quote) {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class IndentedScope BASE_EMBEDDED {
|
||||
class IndentedScope {
|
||||
public:
|
||||
IndentedScope(AstPrinter* printer, const char* txt)
|
||||
: ast_printer_(printer) {
|
||||
|
@ -113,7 +113,7 @@ class V8_EXPORT_PRIVATE Scope : public NON_EXPORTED_BASE(ZoneObject) {
|
||||
ModuleScope* AsModuleScope();
|
||||
const ModuleScope* AsModuleScope() const;
|
||||
|
||||
class Snapshot final BASE_EMBEDDED {
|
||||
class Snapshot final {
|
||||
public:
|
||||
explicit Snapshot(Scope* scope);
|
||||
~Snapshot();
|
||||
|
@ -21,7 +21,7 @@ class BitVector : public ZoneObject {
|
||||
};
|
||||
|
||||
// Iterator for the elements of this BitVector.
|
||||
class Iterator BASE_EMBEDDED {
|
||||
class Iterator {
|
||||
public:
|
||||
explicit Iterator(BitVector* target)
|
||||
: target_(target),
|
||||
@ -305,10 +305,9 @@ class BitVector : public ZoneObject {
|
||||
DISALLOW_COPY_AND_ASSIGN(BitVector);
|
||||
};
|
||||
|
||||
|
||||
class GrowableBitVector BASE_EMBEDDED {
|
||||
class GrowableBitVector {
|
||||
public:
|
||||
class Iterator BASE_EMBEDDED {
|
||||
class Iterator {
|
||||
public:
|
||||
Iterator(const GrowableBitVector* target, Zone* zone)
|
||||
: it_(target->bits_ == nullptr ? new (zone) BitVector(1, zone)
|
||||
|
@ -150,8 +150,7 @@ void Bootstrapper::TearDown() {
|
||||
extensions_cache_.Initialize(isolate_, false); // Yes, symmetrical
|
||||
}
|
||||
|
||||
|
||||
class Genesis BASE_EMBEDDED {
|
||||
class Genesis {
|
||||
public:
|
||||
Genesis(Isolate* isolate, MaybeHandle<JSGlobalProxy> maybe_global_proxy,
|
||||
v8::Local<v8::ObjectTemplate> global_proxy_template,
|
||||
|
@ -18,7 +18,7 @@ namespace internal {
|
||||
// (array.js, etc.) to precompiled functions. Instead of mapping
|
||||
// names to functions it might make sense to let the JS2C tool
|
||||
// generate an index for each native JS file.
|
||||
class SourceCodeCache final BASE_EMBEDDED {
|
||||
class SourceCodeCache final {
|
||||
public:
|
||||
explicit SourceCodeCache(Script::Type type) : type_(type), cache_(nullptr) {}
|
||||
|
||||
@ -122,8 +122,7 @@ class Bootstrapper final {
|
||||
DISALLOW_COPY_AND_ASSIGN(Bootstrapper);
|
||||
};
|
||||
|
||||
|
||||
class BootstrapperActive final BASE_EMBEDDED {
|
||||
class BootstrapperActive final {
|
||||
public:
|
||||
explicit BootstrapperActive(Bootstrapper* bootstrapper)
|
||||
: bootstrapper_(bootstrapper) {
|
||||
|
@ -14,7 +14,7 @@ namespace internal {
|
||||
class Code;
|
||||
|
||||
// Associates a body of code with an interface descriptor.
|
||||
class Callable final BASE_EMBEDDED {
|
||||
class Callable final {
|
||||
public:
|
||||
Callable(Handle<Code> code, CallInterfaceDescriptor descriptor)
|
||||
: code_(code), descriptor_(descriptor) {}
|
||||
|
@ -92,7 +92,7 @@ struct V8_EXPORT_PRIVATE LoopInfo {
|
||||
ZoneVector<ResumeJumpTarget> resume_jump_targets_;
|
||||
};
|
||||
|
||||
class V8_EXPORT_PRIVATE BytecodeAnalysis BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE BytecodeAnalysis {
|
||||
public:
|
||||
BytecodeAnalysis(Handle<BytecodeArray> bytecode_array, Zone* zone,
|
||||
bool do_liveness_analysis);
|
||||
|
@ -434,7 +434,7 @@ class GraphC1Visualizer {
|
||||
void PrintLiveRange(const LiveRange* range, const char* type, int vreg);
|
||||
void PrintLiveRangeChain(const TopLevelLiveRange* range, const char* type);
|
||||
|
||||
class Tag final BASE_EMBEDDED {
|
||||
class Tag final {
|
||||
public:
|
||||
Tag(GraphC1Visualizer* visualizer, const char* name) {
|
||||
name_ = name;
|
||||
|
@ -401,7 +401,7 @@ class HistogramTimer : public TimedHistogram {
|
||||
// Parser is currently reentrant (when it throws an error, we call back
|
||||
// into JavaScript and all bets are off), but ElapsedTimer is not
|
||||
// reentry-safe. Fix this properly and remove |allow_nesting|.
|
||||
class HistogramTimerScope BASE_EMBEDDED {
|
||||
class HistogramTimerScope {
|
||||
public:
|
||||
explicit HistogramTimerScope(HistogramTimer* timer,
|
||||
bool allow_nesting = false)
|
||||
@ -439,7 +439,7 @@ enum class OptionalHistogramTimerScopeMode { TAKE_TIME, DONT_TAKE_TIME };
|
||||
|
||||
// Helper class for scoping a HistogramTimer.
|
||||
// It will not take time if take_time is set to false.
|
||||
class OptionalHistogramTimerScope BASE_EMBEDDED {
|
||||
class OptionalHistogramTimerScope {
|
||||
public:
|
||||
OptionalHistogramTimerScope(HistogramTimer* timer,
|
||||
OptionalHistogramTimerScopeMode mode)
|
||||
|
@ -47,7 +47,7 @@ class DateParser : public AllStatic {
|
||||
|
||||
// InputReader provides basic string parsing and character classification.
|
||||
template <typename Char>
|
||||
class InputReader BASE_EMBEDDED {
|
||||
class InputReader {
|
||||
public:
|
||||
InputReader(UnicodeCache* unicode_cache, Vector<Char> s)
|
||||
: index_(0),
|
||||
@ -268,7 +268,7 @@ class DateParser : public AllStatic {
|
||||
static const int8_t array[][kEntrySize];
|
||||
};
|
||||
|
||||
class TimeZoneComposer BASE_EMBEDDED {
|
||||
class TimeZoneComposer {
|
||||
public:
|
||||
TimeZoneComposer() : sign_(kNone), hour_(kNone), minute_(kNone) {}
|
||||
void Set(int offset_in_hours) {
|
||||
@ -291,7 +291,7 @@ class DateParser : public AllStatic {
|
||||
int minute_;
|
||||
};
|
||||
|
||||
class TimeComposer BASE_EMBEDDED {
|
||||
class TimeComposer {
|
||||
public:
|
||||
TimeComposer() : index_(0), hour_offset_(kNone) {}
|
||||
bool IsEmpty() const { return index_ == 0; }
|
||||
@ -325,7 +325,7 @@ class DateParser : public AllStatic {
|
||||
int hour_offset_;
|
||||
};
|
||||
|
||||
class DayComposer BASE_EMBEDDED {
|
||||
class DayComposer {
|
||||
public:
|
||||
DayComposer() : index_(0), named_month_(kNone), is_iso_date_(false) {}
|
||||
bool IsEmpty() const { return index_ == 0; }
|
||||
|
@ -555,7 +555,7 @@ class Debug {
|
||||
|
||||
// This scope is used to load and enter the debug context and create a new
|
||||
// break state. Leaving the scope will restore the previous state.
|
||||
class DebugScope BASE_EMBEDDED {
|
||||
class DebugScope {
|
||||
public:
|
||||
explicit DebugScope(Debug* debug);
|
||||
~DebugScope();
|
||||
@ -584,7 +584,7 @@ class ReturnValueScope {
|
||||
};
|
||||
|
||||
// Stack allocated class for disabling break.
|
||||
class DisableBreak BASE_EMBEDDED {
|
||||
class DisableBreak {
|
||||
public:
|
||||
explicit DisableBreak(Debug* debug, bool disable = true)
|
||||
: debug_(debug), previous_break_disabled_(debug->break_disabled_) {
|
||||
@ -600,8 +600,7 @@ class DisableBreak BASE_EMBEDDED {
|
||||
DISALLOW_COPY_AND_ASSIGN(DisableBreak);
|
||||
};
|
||||
|
||||
|
||||
class SuppressDebug BASE_EMBEDDED {
|
||||
class SuppressDebug {
|
||||
public:
|
||||
explicit SuppressDebug(Debug* debug)
|
||||
: debug_(debug), old_state_(debug->is_suppressed_) {
|
||||
|
@ -386,8 +386,7 @@ class TranslatedState {
|
||||
FeedbackSlot feedback_slot_;
|
||||
};
|
||||
|
||||
|
||||
class OptimizedFunctionVisitor BASE_EMBEDDED {
|
||||
class OptimizedFunctionVisitor {
|
||||
public:
|
||||
virtual ~OptimizedFunctionVisitor() {}
|
||||
virtual void VisitFunction(JSFunction* function) = 0;
|
||||
@ -501,7 +500,7 @@ class Deoptimizer : public Malloced {
|
||||
static const int kNotDeoptimizationEntry = -1;
|
||||
|
||||
// Generators for the deoptimization entry code.
|
||||
class TableEntryGenerator BASE_EMBEDDED {
|
||||
class TableEntryGenerator {
|
||||
public:
|
||||
TableEntryGenerator(MacroAssembler* masm, DeoptimizeKind kind, int count)
|
||||
: masm_(masm), deopt_kind_(kind), count_(count) {}
|
||||
@ -864,8 +863,7 @@ class DeoptimizerData {
|
||||
DISALLOW_COPY_AND_ASSIGN(DeoptimizerData);
|
||||
};
|
||||
|
||||
|
||||
class TranslationBuffer BASE_EMBEDDED {
|
||||
class TranslationBuffer {
|
||||
public:
|
||||
explicit TranslationBuffer(Zone* zone) : contents_(zone) {}
|
||||
|
||||
@ -878,8 +876,7 @@ class TranslationBuffer BASE_EMBEDDED {
|
||||
ZoneChunkList<uint8_t> contents_;
|
||||
};
|
||||
|
||||
|
||||
class TranslationIterator BASE_EMBEDDED {
|
||||
class TranslationIterator {
|
||||
public:
|
||||
TranslationIterator(ByteArray* buffer, int index);
|
||||
|
||||
@ -923,7 +920,7 @@ class TranslationIterator BASE_EMBEDDED {
|
||||
V(LITERAL) \
|
||||
V(UPDATE_FEEDBACK)
|
||||
|
||||
class Translation BASE_EMBEDDED {
|
||||
class Translation {
|
||||
public:
|
||||
#define DECLARE_TRANSLATION_OPCODE_ENUM(item) item,
|
||||
enum Opcode {
|
||||
|
@ -201,7 +201,7 @@ class StatsCounter;
|
||||
// in an ExternalReference instance. This is done in order to track the
|
||||
// origin of all external references in the code so that they can be bound
|
||||
// to the correct addresses when deserializing a heap.
|
||||
class ExternalReference BASE_EMBEDDED {
|
||||
class ExternalReference {
|
||||
public:
|
||||
// Used in the simulator to support different native api calls.
|
||||
enum Type {
|
||||
|
@ -29,7 +29,7 @@ ReturnAddressLocationResolver StackFrame::return_address_location_resolver_ =
|
||||
|
||||
// Iterator that supports traversing the stack handlers of a
|
||||
// particular frame. Needs to know the top of the handler chain.
|
||||
class StackHandlerIterator BASE_EMBEDDED {
|
||||
class StackHandlerIterator {
|
||||
public:
|
||||
StackHandlerIterator(const StackFrame* frame, StackHandler* handler)
|
||||
: limit_(frame->fp()), handler_(handler) {
|
||||
|
13
src/frames.h
13
src/frames.h
@ -69,8 +69,7 @@ class StackHandlerConstants : public AllStatic {
|
||||
static const int kSlotCount = kSize >> kPointerSizeLog2;
|
||||
};
|
||||
|
||||
|
||||
class StackHandler BASE_EMBEDDED {
|
||||
class StackHandler {
|
||||
public:
|
||||
// Get the address of this stack handler.
|
||||
inline Address address() const;
|
||||
@ -110,7 +109,7 @@ class StackHandler BASE_EMBEDDED {
|
||||
V(NATIVE, NativeFrame)
|
||||
|
||||
// Abstract base class for all stack frames.
|
||||
class StackFrame BASE_EMBEDDED {
|
||||
class StackFrame {
|
||||
public:
|
||||
#define DECLARE_TYPE(type, ignore) type,
|
||||
enum Type {
|
||||
@ -476,7 +475,7 @@ class BuiltinExitFrame : public ExitFrame {
|
||||
|
||||
class StandardFrame;
|
||||
|
||||
class FrameSummary BASE_EMBEDDED {
|
||||
class FrameSummary {
|
||||
public:
|
||||
// Subclasses for the different summary kinds:
|
||||
#define FRAME_SUMMARY_VARIANTS(F) \
|
||||
@ -1202,7 +1201,7 @@ class JavaScriptBuiltinContinuationWithCatchFrame
|
||||
friend class StackFrameIteratorBase;
|
||||
};
|
||||
|
||||
class StackFrameIteratorBase BASE_EMBEDDED {
|
||||
class StackFrameIteratorBase {
|
||||
public:
|
||||
Isolate* isolate() const { return isolate_; }
|
||||
|
||||
@ -1257,7 +1256,7 @@ class StackFrameIterator: public StackFrameIteratorBase {
|
||||
};
|
||||
|
||||
// Iterator that supports iterating through all JavaScript frames.
|
||||
class JavaScriptFrameIterator BASE_EMBEDDED {
|
||||
class JavaScriptFrameIterator {
|
||||
public:
|
||||
inline explicit JavaScriptFrameIterator(Isolate* isolate);
|
||||
inline JavaScriptFrameIterator(Isolate* isolate, ThreadLocalTop* top);
|
||||
@ -1275,7 +1274,7 @@ class JavaScriptFrameIterator BASE_EMBEDDED {
|
||||
// NOTE: The stack trace frame iterator is an iterator that only traverse proper
|
||||
// JavaScript frames that have proper JavaScript functions and WebAssembly
|
||||
// frames.
|
||||
class StackTraceFrameIterator BASE_EMBEDDED {
|
||||
class StackTraceFrameIterator {
|
||||
public:
|
||||
explicit StackTraceFrameIterator(Isolate* isolate);
|
||||
// Skip frames until the frame with the given id is reached.
|
||||
|
@ -41,7 +41,7 @@ typedef ELF DebugObject;
|
||||
typedef ELFSection DebugSection;
|
||||
#endif
|
||||
|
||||
class Writer BASE_EMBEDDED {
|
||||
class Writer {
|
||||
public:
|
||||
explicit Writer(DebugObject* debug_object)
|
||||
: debug_object_(debug_object),
|
||||
@ -472,7 +472,7 @@ void ELFSection::PopulateHeader(Writer::Slot<ELFSection::Header> header,
|
||||
|
||||
|
||||
#if defined(__MACH_O)
|
||||
class MachO BASE_EMBEDDED {
|
||||
class MachO {
|
||||
public:
|
||||
explicit MachO(Zone* zone) : sections_(zone) {}
|
||||
|
||||
@ -604,7 +604,7 @@ class MachO BASE_EMBEDDED {
|
||||
|
||||
|
||||
#if defined(__ELF)
|
||||
class ELF BASE_EMBEDDED {
|
||||
class ELF {
|
||||
public:
|
||||
explicit ELF(Zone* zone) : sections_(zone) {
|
||||
sections_.push_back(new (zone) ELFSection("", ELFSection::TYPE_NULL, 0));
|
||||
@ -746,8 +746,7 @@ class ELF BASE_EMBEDDED {
|
||||
ZoneChunkList<ELFSection*> sections_;
|
||||
};
|
||||
|
||||
|
||||
class ELFSymbol BASE_EMBEDDED {
|
||||
class ELFSymbol {
|
||||
public:
|
||||
enum Type {
|
||||
TYPE_NOTYPE = 0,
|
||||
@ -946,8 +945,7 @@ class LineInfo : public Malloced {
|
||||
std::vector<PCInfo> pc_info_;
|
||||
};
|
||||
|
||||
|
||||
class CodeDescription BASE_EMBEDDED {
|
||||
class CodeDescription {
|
||||
public:
|
||||
#if V8_TARGET_ARCH_X64
|
||||
enum StackState {
|
||||
|
@ -95,10 +95,6 @@ class AllStatic {
|
||||
#endif
|
||||
};
|
||||
|
||||
// DEPRECATED
|
||||
// TODO(leszeks): Delete this during a quiet period
|
||||
#define BASE_EMBEDDED
|
||||
|
||||
typedef uint8_t byte;
|
||||
typedef uintptr_t Address;
|
||||
static const Address kNullAddress = 0;
|
||||
|
@ -2421,7 +2421,7 @@ class VerifySmisVisitor : public RootVisitor {
|
||||
// Space iterator for iterating over all the paged spaces of the heap: Map
|
||||
// space, old space, code space and optionally read only space. Returns each
|
||||
// space in turn, and null when it is done.
|
||||
class V8_EXPORT_PRIVATE PagedSpaces BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE PagedSpaces {
|
||||
public:
|
||||
enum class SpacesSpecifier { kSweepablePagedSpaces, kAllPagedSpaces };
|
||||
|
||||
@ -2464,7 +2464,7 @@ class SpaceIterator : public Malloced {
|
||||
// nodes filtering uses GC marks, it can't be used during MS/MC GC
|
||||
// phases. Also, it is forbidden to interrupt iteration in this mode,
|
||||
// as this will leave heap objects marked (and thus, unusable).
|
||||
class HeapIterator BASE_EMBEDDED {
|
||||
class HeapIterator {
|
||||
public:
|
||||
enum HeapObjectsFiltering { kNoFiltering, kFilterUnreachable };
|
||||
|
||||
|
@ -1654,7 +1654,7 @@ class LinearAllocationArea {
|
||||
// functions increase or decrease one of the non-capacity stats in conjunction
|
||||
// with capacity, or else they always balance increases and decreases to the
|
||||
// non-capacity stats.
|
||||
class AllocationStats BASE_EMBEDDED {
|
||||
class AllocationStats {
|
||||
public:
|
||||
AllocationStats() { Clear(); }
|
||||
|
||||
@ -3061,7 +3061,7 @@ class LargeObjectIterator : public ObjectIterator {
|
||||
|
||||
// Iterates over the chunks (pages and large object pages) that can contain
|
||||
// pointers to new space or to evacuation candidates.
|
||||
class MemoryChunkIterator BASE_EMBEDDED {
|
||||
class MemoryChunkIterator {
|
||||
public:
|
||||
inline explicit MemoryChunkIterator(Heap* heap);
|
||||
|
||||
|
@ -208,7 +208,7 @@ enum RoundingMode {
|
||||
// -----------------------------------------------------------------------------
|
||||
// Machine instruction Immediates
|
||||
|
||||
class Immediate BASE_EMBEDDED {
|
||||
class Immediate {
|
||||
public:
|
||||
// Calls where x is an Address (uintptr_t) resolve to this overload.
|
||||
inline explicit Immediate(int x, RelocInfo::Mode rmode = RelocInfo::NONE) {
|
||||
@ -417,7 +417,7 @@ static_assert(sizeof(Operand) <= 2 * kPointerSize,
|
||||
// |31.....2|1......0|
|
||||
// [ next | type |
|
||||
|
||||
class Displacement BASE_EMBEDDED {
|
||||
class Displacement {
|
||||
public:
|
||||
enum Type { UNCONDITIONAL_JUMP, CODE_RELATIVE, OTHER, CODE_ABSOLUTE };
|
||||
|
||||
@ -1871,7 +1871,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
|
||||
// instructions and relocation information. The constructor makes
|
||||
// sure that there is enough space and (in debug mode) the destructor
|
||||
// checks that we did not generate too much.
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit EnsureSpace(Assembler* assembler) : assembler_(assembler) {
|
||||
if (assembler_->buffer_overflow()) assembler_->GrowBuffer();
|
||||
|
@ -12,7 +12,7 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
// Holds information about possible function call optimizations.
|
||||
class CallOptimization BASE_EMBEDDED {
|
||||
class CallOptimization {
|
||||
public:
|
||||
CallOptimization(Isolate* isolate, Handle<Object> function);
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace interpreter {
|
||||
// Scoped class tracking context objects created by the visitor. Represents
|
||||
// mutations of the context chain within the function body, allowing pushing and
|
||||
// popping of the current {context_register} during visitation.
|
||||
class BytecodeGenerator::ContextScope BASE_EMBEDDED {
|
||||
class BytecodeGenerator::ContextScope {
|
||||
public:
|
||||
ContextScope(BytecodeGenerator* generator, Scope* scope)
|
||||
: generator_(generator),
|
||||
@ -94,7 +94,7 @@ class BytecodeGenerator::ContextScope BASE_EMBEDDED {
|
||||
|
||||
// Scoped class for tracking control statements entered by the
|
||||
// visitor. The pattern derives AstGraphBuilder::ControlScope.
|
||||
class BytecodeGenerator::ControlScope BASE_EMBEDDED {
|
||||
class BytecodeGenerator::ControlScope {
|
||||
public:
|
||||
explicit ControlScope(BytecodeGenerator* generator)
|
||||
: generator_(generator), outer_(generator->execution_control()),
|
||||
|
@ -36,7 +36,7 @@ namespace interpreter {
|
||||
// interpreter. Each instance of this class is intended to be used to
|
||||
// generate exactly one FixedArray of constants via the ToFixedArray
|
||||
// method.
|
||||
class V8_EXPORT_PRIVATE ConstantArrayBuilder final BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE ConstantArrayBuilder final {
|
||||
public:
|
||||
// Capacity of the 8-bit operand slice.
|
||||
static const size_t k8BitCapacity = 1u << kBitsPerByte;
|
||||
|
@ -16,7 +16,7 @@ namespace v8 {
|
||||
namespace internal {
|
||||
namespace interpreter {
|
||||
|
||||
class V8_EXPORT_PRIVATE ControlFlowBuilder BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE ControlFlowBuilder {
|
||||
public:
|
||||
explicit ControlFlowBuilder(BytecodeArrayBuilder* builder)
|
||||
: builder_(builder) {}
|
||||
|
@ -21,7 +21,7 @@ class Isolate;
|
||||
namespace interpreter {
|
||||
|
||||
// A helper class for constructing exception handler tables for the interpreter.
|
||||
class V8_EXPORT_PRIVATE HandlerTableBuilder final BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE HandlerTableBuilder final {
|
||||
public:
|
||||
explicit HandlerTableBuilder(Zone* zone);
|
||||
|
||||
|
@ -396,8 +396,7 @@ class ThreadId {
|
||||
inline void set_##name(type v) { name##_ = v; } \
|
||||
inline type name() const { return name##_; }
|
||||
|
||||
|
||||
class ThreadLocalTop BASE_EMBEDDED {
|
||||
class ThreadLocalTop {
|
||||
public:
|
||||
// Does early low-level initialization that does not depend on the
|
||||
// isolate being present.
|
||||
@ -1896,7 +1895,7 @@ class PromiseOnStack {
|
||||
// If the GCC version is 4.1.x or 4.2.x an additional field is added to the
|
||||
// class as a work around for a bug in the generated code found with these
|
||||
// versions of GCC. See V8 issue 122 for details.
|
||||
class V8_EXPORT_PRIVATE SaveContext BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE SaveContext {
|
||||
public:
|
||||
explicit SaveContext(Isolate* isolate);
|
||||
~SaveContext();
|
||||
@ -1914,8 +1913,7 @@ class V8_EXPORT_PRIVATE SaveContext BASE_EMBEDDED {
|
||||
Address c_entry_fp_;
|
||||
};
|
||||
|
||||
|
||||
class AssertNoContextChange BASE_EMBEDDED {
|
||||
class AssertNoContextChange {
|
||||
#ifdef DEBUG
|
||||
public:
|
||||
explicit AssertNoContextChange(Isolate* isolate);
|
||||
@ -1932,8 +1930,7 @@ class AssertNoContextChange BASE_EMBEDDED {
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
class ExecutionAccess BASE_EMBEDDED {
|
||||
class ExecutionAccess {
|
||||
public:
|
||||
explicit ExecutionAccess(Isolate* isolate) : isolate_(isolate) {
|
||||
Lock(isolate);
|
||||
@ -1953,7 +1950,7 @@ class ExecutionAccess BASE_EMBEDDED {
|
||||
|
||||
|
||||
// Support for checking for stack-overflows.
|
||||
class StackLimitCheck BASE_EMBEDDED {
|
||||
class StackLimitCheck {
|
||||
public:
|
||||
explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { }
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace internal {
|
||||
|
||||
enum ParseElementResult { kElementFound, kElementNotFound, kNullHandle };
|
||||
|
||||
class JsonParseInternalizer BASE_EMBEDDED {
|
||||
class JsonParseInternalizer {
|
||||
public:
|
||||
static MaybeHandle<Object> Internalize(Isolate* isolate,
|
||||
Handle<Object> object,
|
||||
@ -36,7 +36,7 @@ class JsonParseInternalizer BASE_EMBEDDED {
|
||||
|
||||
// A simple json parser.
|
||||
template <bool seq_one_byte>
|
||||
class JsonParser BASE_EMBEDDED {
|
||||
class JsonParser {
|
||||
public:
|
||||
V8_WARN_UNUSED_RESULT static MaybeHandle<Object> Parse(
|
||||
Isolate* isolate, Handle<String> source, Handle<Object> reviver) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
class JsonStringifier BASE_EMBEDDED {
|
||||
class JsonStringifier {
|
||||
public:
|
||||
explicit JsonStringifier(Isolate* isolate);
|
||||
|
||||
|
@ -32,7 +32,7 @@ enum AddKeyConversion { DO_NOT_CONVERT, CONVERT_TO_ARRAY_INDEX };
|
||||
// Only unique keys are kept by the KeyAccumulator, strings are stored in a
|
||||
// HashSet for inexpensive lookups. Integer keys are kept in sorted lists which
|
||||
// are more compact and allow for reasonably fast includes check.
|
||||
class KeyAccumulator final BASE_EMBEDDED {
|
||||
class KeyAccumulator final {
|
||||
public:
|
||||
KeyAccumulator(Isolate* isolate, KeyCollectionMode mode,
|
||||
PropertyFilter filter)
|
||||
|
@ -17,7 +17,7 @@ namespace internal {
|
||||
// See:
|
||||
// https://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html
|
||||
template <typename Record>
|
||||
class LockedQueue final BASE_EMBEDDED {
|
||||
class LockedQueue final {
|
||||
public:
|
||||
inline LockedQueue();
|
||||
inline ~LockedQueue();
|
||||
|
@ -58,7 +58,7 @@ class Log {
|
||||
|
||||
// Utility class for formatting log messages. It escapes the given messages
|
||||
// and then appends them to the static buffer in Log.
|
||||
class MessageBuilder BASE_EMBEDDED {
|
||||
class MessageBuilder {
|
||||
public:
|
||||
// Create a message builder starting from position 0.
|
||||
// This acquires the mutex in the log as well.
|
||||
|
@ -15,7 +15,7 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
class V8_EXPORT_PRIVATE LookupIterator final BASE_EMBEDDED {
|
||||
class V8_EXPORT_PRIVATE LookupIterator final {
|
||||
public:
|
||||
enum Configuration {
|
||||
// Configuration bits.
|
||||
|
@ -209,7 +209,7 @@ class NoRootArrayScope {
|
||||
// either registers or immediate values. Used to make sure that the
|
||||
// caller provides exactly the expected number of parameters to the
|
||||
// callee.
|
||||
class ParameterCount BASE_EMBEDDED {
|
||||
class ParameterCount {
|
||||
public:
|
||||
explicit ParameterCount(Register reg) : reg_(reg), immediate_(0) {}
|
||||
explicit ParameterCount(uint16_t imm) : reg_(no_reg), immediate_(imm) {}
|
||||
|
@ -385,7 +385,7 @@ constexpr MSAControlRegister MSACSR = {kMSACSRRegister};
|
||||
// Machine instruction Operands.
|
||||
|
||||
// Class Operand represents a shifter operand in data processing instructions.
|
||||
class Operand BASE_EMBEDDED {
|
||||
class Operand {
|
||||
public:
|
||||
// Immediate.
|
||||
V8_INLINE explicit Operand(int32_t immediate,
|
||||
@ -2212,8 +2212,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
|
||||
friend class EnsureSpace;
|
||||
};
|
||||
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit inline EnsureSpace(Assembler* assembler);
|
||||
};
|
||||
|
@ -392,7 +392,7 @@ constexpr MSAControlRegister MSACSR = {kMSACSRRegister};
|
||||
constexpr int kSmiShift = kSmiTagSize + kSmiShiftSize;
|
||||
constexpr uint64_t kSmiShiftMask = (1UL << kSmiShift) - 1;
|
||||
// Class Operand represents a shifter operand in data processing instructions.
|
||||
class Operand BASE_EMBEDDED {
|
||||
class Operand {
|
||||
public:
|
||||
// Immediate.
|
||||
V8_INLINE explicit Operand(int64_t immediate,
|
||||
@ -2279,8 +2279,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
|
||||
friend class EnsureSpace;
|
||||
};
|
||||
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit inline EnsureSpace(Assembler* assembler);
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ namespace internal {
|
||||
// template <typename ObjectVisitor>
|
||||
// static inline void IterateBody(Map* map, HeapObject* obj, int object_size,
|
||||
// ObjectVisitor* v);
|
||||
class BodyDescriptorBase BASE_EMBEDDED {
|
||||
class BodyDescriptorBase {
|
||||
public:
|
||||
template <typename ObjectVisitor>
|
||||
static inline void IteratePointers(HeapObject* obj, int start_offset,
|
||||
|
@ -1619,7 +1619,7 @@ class Smi: public Object {
|
||||
// during GC other data (e.g. mark bits, forwarding addresses) is sometimes
|
||||
// encoded in the first word. The class MapWord is an abstraction of the
|
||||
// value in a heap object's first word.
|
||||
class MapWord BASE_EMBEDDED {
|
||||
class MapWord {
|
||||
public:
|
||||
// Normal state: the map word contains a map pointer.
|
||||
|
||||
@ -3854,7 +3854,7 @@ class AllocationMemento: public Struct {
|
||||
// Utility superclass for stack-allocated objects that must be updated
|
||||
// on gc. It provides two ways for the gc to update instances, either
|
||||
// iterating or updating after gc.
|
||||
class Relocatable BASE_EMBEDDED {
|
||||
class Relocatable {
|
||||
public:
|
||||
explicit inline Relocatable(Isolate* isolate);
|
||||
inline virtual ~Relocatable();
|
||||
|
@ -31,7 +31,7 @@ enum RobustnessFlag { ROBUST_STRING_TRAVERSAL, FAST_STRING_TRAVERSAL };
|
||||
// shortcutting. Keeping these restrictions in mind has proven to be error-
|
||||
// prone and so we no longer put StringShapes in variables unless there is a
|
||||
// concrete performance benefit at that particular point in the code.
|
||||
class StringShape BASE_EMBEDDED {
|
||||
class StringShape {
|
||||
public:
|
||||
inline explicit StringShape(const String* s);
|
||||
inline explicit StringShape(Map* s);
|
||||
|
@ -370,7 +370,7 @@ class ParserBase {
|
||||
// The parser's current scope is in scope_. BlockState and FunctionState
|
||||
// constructors push on the scope stack and the destructors pop. They are also
|
||||
// used to hold the parser's per-funcion state.
|
||||
class BlockState BASE_EMBEDDED {
|
||||
class BlockState {
|
||||
public:
|
||||
BlockState(Scope** scope_stack, Scope* scope)
|
||||
: scope_stack_(scope_stack), outer_scope_(*scope_stack) {
|
||||
|
@ -31,7 +31,7 @@ class ParserTargetScope;
|
||||
class PendingCompilationErrorHandler;
|
||||
class PreParsedScopeData;
|
||||
|
||||
class FunctionEntry BASE_EMBEDDED {
|
||||
class FunctionEntry {
|
||||
public:
|
||||
enum {
|
||||
kStartPositionIndex,
|
||||
@ -189,7 +189,7 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
||||
bool parse_lazily() const { return mode_ == PARSE_LAZILY; }
|
||||
enum Mode { PARSE_LAZILY, PARSE_EAGERLY };
|
||||
|
||||
class ParsingModeScope BASE_EMBEDDED {
|
||||
class ParsingModeScope {
|
||||
public:
|
||||
ParsingModeScope(Parser* parser, Mode mode)
|
||||
: parser_(parser), old_mode_(parser->mode_) {
|
||||
@ -1134,7 +1134,7 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
||||
// 'continue' statement targets). Upon construction, a new target is
|
||||
// added; it is removed upon destruction.
|
||||
|
||||
class ParserTarget BASE_EMBEDDED {
|
||||
class ParserTarget {
|
||||
public:
|
||||
ParserTarget(ParserBase<Parser>* parser, BreakableStatement* statement)
|
||||
: variable_(&parser->impl()->target_stack_),
|
||||
@ -1154,7 +1154,7 @@ class ParserTarget BASE_EMBEDDED {
|
||||
ParserTarget* previous_;
|
||||
};
|
||||
|
||||
class ParserTargetScope BASE_EMBEDDED {
|
||||
class ParserTargetScope {
|
||||
public:
|
||||
explicit ParserTargetScope(ParserBase<Parser>* parser)
|
||||
: variable_(&parser->impl()->target_stack_),
|
||||
|
@ -373,7 +373,7 @@ C_REGISTERS(DECLARE_C_REGISTER)
|
||||
// Machine instruction Operands
|
||||
|
||||
// Class Operand represents a shifter operand in data processing instructions
|
||||
class Operand BASE_EMBEDDED {
|
||||
class Operand {
|
||||
public:
|
||||
// immediate
|
||||
V8_INLINE explicit Operand(intptr_t immediate,
|
||||
@ -442,7 +442,7 @@ class Operand BASE_EMBEDDED {
|
||||
// Class MemOperand represents a memory operand in load and store instructions
|
||||
// On PowerPC we have base register + 16bit signed value
|
||||
// Alternatively we can have a 16bit signed value immediate
|
||||
class MemOperand BASE_EMBEDDED {
|
||||
class MemOperand {
|
||||
public:
|
||||
explicit MemOperand(Register rn, int32_t offset = 0);
|
||||
|
||||
@ -1632,8 +1632,7 @@ class Assembler : public AssemblerBase {
|
||||
friend class EnsureSpace;
|
||||
};
|
||||
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
|
||||
};
|
||||
|
@ -43,7 +43,7 @@ struct SourceLocation {
|
||||
const int col;
|
||||
};
|
||||
|
||||
class HeapGraphEdge BASE_EMBEDDED {
|
||||
class HeapGraphEdge {
|
||||
public:
|
||||
enum Type {
|
||||
kContextVariable = v8::HeapGraphEdge::kContextVariable,
|
||||
@ -96,7 +96,7 @@ class HeapGraphEdge BASE_EMBEDDED {
|
||||
|
||||
// HeapEntry instances represent an entity from the heap (or a special
|
||||
// virtual node, e.g. root).
|
||||
class HeapEntry BASE_EMBEDDED {
|
||||
class HeapEntry {
|
||||
public:
|
||||
enum Type {
|
||||
kHidden = v8::HeapGraphNode::kHidden,
|
||||
|
@ -18,8 +18,8 @@ namespace internal {
|
||||
// elements, so producer never blocks. Implemented after Herb
|
||||
// Sutter's article:
|
||||
// http://www.ddj.com/high-performance-computing/210604448
|
||||
template<typename Record>
|
||||
class UnboundQueue BASE_EMBEDDED {
|
||||
template <typename Record>
|
||||
class UnboundQueue {
|
||||
public:
|
||||
inline UnboundQueue();
|
||||
inline ~UnboundQueue();
|
||||
|
@ -230,7 +230,7 @@ enum class PropertyCellConstantType {
|
||||
|
||||
// PropertyDetails captures type and attributes for a property.
|
||||
// They are used both in property dictionaries and instance descriptors.
|
||||
class PropertyDetails BASE_EMBEDDED {
|
||||
class PropertyDetails {
|
||||
public:
|
||||
// Property details for dictionary mode properties/elements.
|
||||
PropertyDetails(PropertyKind kind, PropertyAttributes attributes,
|
||||
|
@ -22,7 +22,7 @@ namespace internal {
|
||||
// Each descriptor has a key, property attributes, property type,
|
||||
// property index (in the actual instance-descriptor array) and
|
||||
// optionally a piece of data.
|
||||
class Descriptor final BASE_EMBEDDED {
|
||||
class Descriptor final {
|
||||
public:
|
||||
Descriptor();
|
||||
|
||||
|
@ -37,8 +37,7 @@ class RegExpCompiler;
|
||||
class RegExpNode;
|
||||
class RegExpTree;
|
||||
|
||||
|
||||
class RegExpVisitor BASE_EMBEDDED {
|
||||
class RegExpVisitor {
|
||||
public:
|
||||
virtual ~RegExpVisitor() {}
|
||||
#define MAKE_CASE(Name) \
|
||||
@ -137,8 +136,7 @@ class CharacterRange {
|
||||
uc32 to_;
|
||||
};
|
||||
|
||||
|
||||
class CharacterSet final BASE_EMBEDDED {
|
||||
class CharacterSet final {
|
||||
public:
|
||||
explicit CharacterSet(uc16 standard_set_type)
|
||||
: ranges_(nullptr), standard_set_type_(standard_set_type) {}
|
||||
@ -159,8 +157,7 @@ class CharacterSet final BASE_EMBEDDED {
|
||||
uc16 standard_set_type_;
|
||||
};
|
||||
|
||||
|
||||
class TextElement final BASE_EMBEDDED {
|
||||
class TextElement final {
|
||||
public:
|
||||
enum TextType { ATOM, CHAR_CLASS };
|
||||
|
||||
|
@ -151,8 +151,7 @@ class RegExpBuilder : public ZoneObject {
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
class RegExpParser BASE_EMBEDDED {
|
||||
class RegExpParser {
|
||||
public:
|
||||
RegExpParser(FlatStringReader* in, Handle<String>* error,
|
||||
JSRegExp::Flags flags, Isolate* isolate, Zone* zone);
|
||||
|
@ -341,7 +341,7 @@ class RelocInfo {
|
||||
|
||||
// RelocInfoWriter serializes a stream of relocation info. It writes towards
|
||||
// lower addresses.
|
||||
class RelocInfoWriter BASE_EMBEDDED {
|
||||
class RelocInfoWriter {
|
||||
public:
|
||||
RelocInfoWriter() : pos_(nullptr), last_pc_(nullptr) {}
|
||||
|
||||
|
@ -461,8 +461,7 @@ Handle<JSObject> NewSloppyArguments(Isolate* isolate, Handle<JSFunction> callee,
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
class HandleArguments BASE_EMBEDDED {
|
||||
class HandleArguments {
|
||||
public:
|
||||
explicit HandleArguments(Handle<Object>* array) : array_(array) {}
|
||||
Object* operator[](int index) { return *array_[index]; }
|
||||
@ -471,8 +470,7 @@ class HandleArguments BASE_EMBEDDED {
|
||||
Handle<Object>* array_;
|
||||
};
|
||||
|
||||
|
||||
class ParameterArguments BASE_EMBEDDED {
|
||||
class ParameterArguments {
|
||||
public:
|
||||
explicit ParameterArguments(Object** parameters) : parameters_(parameters) {}
|
||||
Object*& operator[](int index) { return *(parameters_ - index - 1); }
|
||||
|
@ -346,7 +346,7 @@ C_REGISTERS(DECLARE_C_REGISTER)
|
||||
|
||||
// Class Operand represents a shifter operand in data processing instructions
|
||||
// defining immediate numbers and masks
|
||||
class Operand BASE_EMBEDDED {
|
||||
class Operand {
|
||||
public:
|
||||
// immediate
|
||||
V8_INLINE explicit Operand(intptr_t immediate,
|
||||
@ -424,7 +424,7 @@ typedef int32_t Disp;
|
||||
// 1) a base register + 16 bit unsigned displacement
|
||||
// 2) a base register + index register + 16 bit unsigned displacement
|
||||
// 3) a base register + index register + 20 bit signed displacement
|
||||
class MemOperand BASE_EMBEDDED {
|
||||
class MemOperand {
|
||||
public:
|
||||
explicit MemOperand(Register rx, Disp offset = 0);
|
||||
explicit MemOperand(Register rx, Register rb, Disp offset = 0);
|
||||
@ -1663,7 +1663,7 @@ inline void ss_a_format(Opcode op, int f1, int f2, int f3, int f4, int f5) {
|
||||
friend class EnsureSpace;
|
||||
};
|
||||
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ namespace internal {
|
||||
|
||||
class Register;
|
||||
|
||||
class SafepointEntry BASE_EMBEDDED {
|
||||
class SafepointEntry {
|
||||
public:
|
||||
SafepointEntry() : info_(0), bits_(nullptr), trampoline_pc_(-1) {}
|
||||
|
||||
@ -87,8 +87,7 @@ class SafepointEntry BASE_EMBEDDED {
|
||||
int trampoline_pc_;
|
||||
};
|
||||
|
||||
|
||||
class SafepointTable BASE_EMBEDDED {
|
||||
class SafepointTable {
|
||||
public:
|
||||
explicit SafepointTable(Code* code);
|
||||
explicit SafepointTable(Address instruction_start,
|
||||
@ -171,8 +170,7 @@ class SafepointTable BASE_EMBEDDED {
|
||||
DISALLOW_COPY_AND_ASSIGN(SafepointTable);
|
||||
};
|
||||
|
||||
|
||||
class Safepoint BASE_EMBEDDED {
|
||||
class Safepoint {
|
||||
public:
|
||||
typedef enum {
|
||||
kSimple = 0,
|
||||
@ -201,8 +199,7 @@ class Safepoint BASE_EMBEDDED {
|
||||
friend class SafepointTableBuilder;
|
||||
};
|
||||
|
||||
|
||||
class SafepointTableBuilder BASE_EMBEDDED {
|
||||
class SafepointTableBuilder {
|
||||
public:
|
||||
explicit SafepointTableBuilder(Zone* zone)
|
||||
: deoptimization_info_(zone),
|
||||
|
@ -128,7 +128,7 @@ class SplayTree {
|
||||
|
||||
// A locator provides access to a node in the tree without actually
|
||||
// exposing the node.
|
||||
class Locator BASE_EMBEDDED {
|
||||
class Locator {
|
||||
public:
|
||||
explicit Locator(Node* node) : node_(node) { }
|
||||
Locator() : node_(nullptr) {}
|
||||
@ -159,8 +159,8 @@ class SplayTree {
|
||||
// Removes root_ node.
|
||||
void RemoveRootNode(const Key& key);
|
||||
|
||||
template<class Callback>
|
||||
class NodeToPairAdaptor BASE_EMBEDDED {
|
||||
template <class Callback>
|
||||
class NodeToPairAdaptor {
|
||||
public:
|
||||
explicit NodeToPairAdaptor(Callback* callback)
|
||||
: callback_(callback) { }
|
||||
@ -174,7 +174,7 @@ class SplayTree {
|
||||
DISALLOW_COPY_AND_ASSIGN(NodeToPairAdaptor);
|
||||
};
|
||||
|
||||
class NodeDeleter BASE_EMBEDDED {
|
||||
class NodeDeleter {
|
||||
public:
|
||||
NodeDeleter() { }
|
||||
void Call(Node* node) { AllocationPolicy::Delete(node); }
|
||||
|
@ -97,7 +97,7 @@ class V8_EXPORT_PRIVATE TurboAssemblerBase : public Assembler {
|
||||
// Avoids emitting calls to the {Builtins::kAbort} builtin when emitting debug
|
||||
// code during the lifetime of this scope object. For disabling debug code
|
||||
// entirely use the {DontEmitDebugCodeScope} instead.
|
||||
class HardAbortScope BASE_EMBEDDED {
|
||||
class HardAbortScope {
|
||||
public:
|
||||
explicit HardAbortScope(TurboAssemblerBase* assembler)
|
||||
: assembler_(assembler), old_value_(assembler->should_abort_hard()) {
|
||||
|
@ -54,7 +54,7 @@ enum class Root {
|
||||
|
||||
// Abstract base class for visiting, and optionally modifying, the
|
||||
// pointers contained in roots. Used in GC and serialization/deserialization.
|
||||
class RootVisitor BASE_EMBEDDED {
|
||||
class RootVisitor {
|
||||
public:
|
||||
virtual ~RootVisitor() {}
|
||||
|
||||
@ -82,7 +82,7 @@ class RelocIterator;
|
||||
|
||||
// Abstract base class for visiting, and optionally modifying, the
|
||||
// pointers contained in Objects. Used in GC and serialization/deserialization.
|
||||
class ObjectVisitor BASE_EMBEDDED {
|
||||
class ObjectVisitor {
|
||||
public:
|
||||
virtual ~ObjectVisitor() {}
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace internal {
|
||||
// VMState object leaves a state by popping the current state from the
|
||||
// stack.
|
||||
template <StateTag Tag>
|
||||
class VMState BASE_EMBEDDED {
|
||||
class VMState {
|
||||
public:
|
||||
explicit inline VMState(Isolate* isolate);
|
||||
inline ~VMState();
|
||||
@ -27,8 +27,7 @@ class VMState BASE_EMBEDDED {
|
||||
StateTag previous_tag_;
|
||||
};
|
||||
|
||||
|
||||
class ExternalCallbackScope BASE_EMBEDDED {
|
||||
class ExternalCallbackScope {
|
||||
public:
|
||||
inline ExternalCallbackScope(Isolate* isolate, Address callback);
|
||||
inline ~ExternalCallbackScope();
|
||||
|
@ -2433,7 +2433,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
|
||||
// instructions and relocation information. The constructor makes
|
||||
// sure that there is enough space and (in debug mode) the destructor
|
||||
// checks that we did not generate too much.
|
||||
class EnsureSpace BASE_EMBEDDED {
|
||||
class EnsureSpace {
|
||||
public:
|
||||
explicit EnsureSpace(Assembler* assembler) : assembler_(assembler) {
|
||||
if (assembler_->buffer_overflow()) assembler_->GrowBuffer();
|
||||
|
@ -66,7 +66,7 @@ enum StackArgumentsAccessorReceiverMode {
|
||||
ARGUMENTS_DONT_CONTAIN_RECEIVER
|
||||
};
|
||||
|
||||
class StackArgumentsAccessor BASE_EMBEDDED {
|
||||
class StackArgumentsAccessor {
|
||||
public:
|
||||
StackArgumentsAccessor(Register base_reg, int argument_count_immediate,
|
||||
StackArgumentsAccessorReceiverMode receiver_mode =
|
||||
|
Loading…
Reference in New Issue
Block a user