• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_ARM64_CODEGEN_ARM64_H_
6 #define V8_ARM64_CODEGEN_ARM64_H_
7 
8 #include "src/macro-assembler.h"
9 
10 namespace v8 {
11 namespace internal {
12 
13 class StringCharLoadGenerator : public AllStatic {
14  public:
15   // Generates the code for handling different string types and loading the
16   // indexed character into |result|.  We expect |index| as untagged input and
17   // |result| as untagged output. Register index is asserted to be a 32-bit W
18   // register.
19   static void Generate(MacroAssembler* masm,
20                        Register string,
21                        Register index,
22                        Register result,
23                        Label* call_runtime);
24 
25  private:
26   DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator);
27 };
28 
29 }  // namespace internal
30 }  // namespace v8
31 
32 #endif  // V8_ARM64_CODEGEN_ARM64_H_
33