| Index: src/codegen.h
|
| ===================================================================
|
| --- src/codegen.h (revision 10035)
|
| +++ src/codegen.h (working copy)
|
| @@ -94,6 +94,23 @@
|
| DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator);
|
| };
|
|
|
| +
|
| +class StringCharLoadGenerator : public AllStatic {
|
| + public:
|
| + // Generates the code for handling different string types and loading the
|
| + // indexed character into |result|. We expect |index| as untagged input and
|
| + // |result| as untagged output.
|
| + static void Generate(MacroAssembler* masm,
|
| + Factory* factory,
|
| + Register string,
|
| + Register index,
|
| + Register result,
|
| + Label* call_runtime);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator);
|
| +};
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_CODEGEN_H_
|
|
|