OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #ifndef V8_MIPS_CODEGEN_MIPS_H_ | 6 #ifndef V8_MIPS_CODEGEN_MIPS_H_ |
7 #define V8_MIPS_CODEGEN_MIPS_H_ | 7 #define V8_MIPS_CODEGEN_MIPS_H_ |
8 | 8 |
9 | 9 |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
11 #include "src/macro-assembler.h" | 11 #include "src/macro-assembler.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 | 16 |
17 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | |
18 | |
19 | |
20 class StringCharLoadGenerator : public AllStatic { | 17 class StringCharLoadGenerator : public AllStatic { |
21 public: | 18 public: |
22 // Generates the code for handling different string types and loading the | 19 // Generates the code for handling different string types and loading the |
23 // indexed character into |result|. We expect |index| as untagged input and | 20 // indexed character into |result|. We expect |index| as untagged input and |
24 // |result| as untagged output. | 21 // |result| as untagged output. |
25 static void Generate(MacroAssembler* masm, | 22 static void Generate(MacroAssembler* masm, |
26 Register string, | 23 Register string, |
27 Register index, | 24 Register index, |
28 Register result, | 25 Register result, |
29 Label* call_runtime); | 26 Label* call_runtime); |
(...skipping 15 matching lines...) Expand all Loading... |
45 Register temp2, | 42 Register temp2, |
46 Register temp3); | 43 Register temp3); |
47 | 44 |
48 private: | 45 private: |
49 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); | 46 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); |
50 }; | 47 }; |
51 | 48 |
52 } } // namespace v8::internal | 49 } } // namespace v8::internal |
53 | 50 |
54 #endif // V8_MIPS_CODEGEN_MIPS_H_ | 51 #endif // V8_MIPS_CODEGEN_MIPS_H_ |
OLD | NEW |