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