| Index: src/fast-accessor-assembler.h
|
| diff --git a/src/compiler/fast-accessor-assembler.h b/src/fast-accessor-assembler.h
|
| similarity index 83%
|
| rename from src/compiler/fast-accessor-assembler.h
|
| rename to src/fast-accessor-assembler.h
|
| index 1cb751d0265c6d3b7a669df2b8368fe9a7d2d6b5..80d6e95a0863032da5b2651aa7203bd245e5274e 100644
|
| --- a/src/compiler/fast-accessor-assembler.h
|
| +++ b/src/fast-accessor-assembler.h
|
| @@ -8,13 +8,13 @@
|
| #include <stdint.h>
|
| #include <vector>
|
|
|
| -// Clients of this interface shouldn't depend on lots of compiler internals.
|
| -// Do not include anything from src/compiler here!
|
| #include "include/v8-experimental.h"
|
| #include "src/base/macros.h"
|
| #include "src/base/smart-pointers.h"
|
| #include "src/handles.h"
|
|
|
| +// For CodeStubAssembler::Label. (We cannot forward-declare inner classes.)
|
| +#include "src/compiler/code-stub-assembler.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -24,11 +24,8 @@ class Isolate;
|
| class Zone;
|
|
|
| namespace compiler {
|
| -
|
| class Node;
|
| -class RawMachineAssembler;
|
| -class RawMachineLabel;
|
| -
|
| +}
|
|
|
| // This interface "exports" an aggregated subset of RawMachineAssembler, for
|
| // use by the API to implement Fast Dom Accessors.
|
| @@ -75,21 +72,24 @@ class FastAccessorAssembler {
|
| MaybeHandle<Code> Build();
|
|
|
| private:
|
| - ValueId FromRaw(Node* node);
|
| - LabelId FromRaw(RawMachineLabel* label);
|
| - Node* FromId(ValueId value) const;
|
| - RawMachineLabel* FromId(LabelId value) const;
|
| + ValueId FromRaw(compiler::Node* node);
|
| + LabelId FromRaw(compiler::CodeStubAssembler::Label* label);
|
| + compiler::Node* FromId(ValueId value) const;
|
| + compiler::CodeStubAssembler::Label* FromId(LabelId value) const;
|
|
|
| + void Clear();
|
| Zone* zone() { return &zone_; }
|
| + Isolate* isolate() const { return isolate_; }
|
|
|
| Zone zone_;
|
| - base::SmartPointer<RawMachineAssembler> assembler_;
|
| + Isolate* isolate_;
|
| + base::SmartPointer<compiler::CodeStubAssembler> assembler_;
|
|
|
| // To prevent exposing the RMA internals to the outside world, we'll map
|
| // Node + Label pointers integers wrapped in ValueId and LabelId instances.
|
| // These vectors maintain this mapping.
|
| - std::vector<Node*> nodes_;
|
| - std::vector<RawMachineLabel*> labels_;
|
| + std::vector<compiler::Node*> nodes_;
|
| + std::vector<compiler::CodeStubAssembler::Label*> labels_;
|
|
|
| // Remember the current state for easy error checking. (We prefer to be
|
| // strict as this class will be exposed at the API.)
|
| @@ -98,7 +98,6 @@ class FastAccessorAssembler {
|
| DISALLOW_COPY_AND_ASSIGN(FastAccessorAssembler);
|
| };
|
|
|
| -} // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|
|
|