OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 static void SetFunctionInfo(Handle<JSFunction> fun, | 67 static void SetFunctionInfo(Handle<JSFunction> fun, |
68 FunctionLiteral* lit, | 68 FunctionLiteral* lit, |
69 bool is_toplevel, | 69 bool is_toplevel, |
70 Handle<Script> script); | 70 Handle<Script> script); |
71 | 71 |
72 static bool RecordPositions(MacroAssembler* masm, | 72 static bool RecordPositions(MacroAssembler* masm, |
73 int pos, | 73 int pos, |
74 bool right_here = false); | 74 bool right_here = false); |
75 | 75 |
| 76 DEFINE_AST_VISITOR_SUBCLASS_METHODS(); |
| 77 |
76 private: | 78 private: |
77 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 79 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
78 }; | 80 }; |
79 | 81 |
80 | 82 |
81 class StringCharLoadGenerator : public AllStatic { | 83 class StringCharLoadGenerator : public AllStatic { |
82 public: | 84 public: |
83 // Generates the code for handling different string types and loading the | 85 // Generates the code for handling different string types and loading the |
84 // indexed character into |result|. We expect |index| as untagged input and | 86 // indexed character into |result|. We expect |index| as untagged input and |
85 // |result| as untagged output. | 87 // |result| as untagged output. |
86 static void Generate(MacroAssembler* masm, | 88 static void Generate(MacroAssembler* masm, |
87 Register string, | 89 Register string, |
88 Register index, | 90 Register index, |
89 Register result, | 91 Register result, |
90 Label* call_runtime); | 92 Label* call_runtime); |
91 | 93 |
92 private: | 94 private: |
93 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); | 95 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); |
94 }; | 96 }; |
95 | 97 |
96 } } // namespace v8::internal | 98 } } // namespace v8::internal |
97 | 99 |
98 #endif // V8_MIPS_CODEGEN_MIPS_H_ | 100 #endif // V8_MIPS_CODEGEN_MIPS_H_ |
OLD | NEW |