OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Emit frame translation commands for an environment. | 156 // Emit frame translation commands for an environment. |
157 void WriteTranslation(LEnvironment* environment, Translation* translation); | 157 void WriteTranslation(LEnvironment* environment, Translation* translation); |
158 | 158 |
159 // Declare methods that deal with the individual node types. | 159 // Declare methods that deal with the individual node types. |
160 #define DECLARE_DO(type) void Do##type(L##type* node); | 160 #define DECLARE_DO(type) void Do##type(L##type* node); |
161 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 161 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
162 #undef DECLARE_DO | 162 #undef DECLARE_DO |
163 | 163 |
164 private: | 164 private: |
165 StrictModeFlag strict_mode_flag() const { | 165 StrictMode strict_mode() const { return info()->strict_mode(); } |
166 return info()->is_sloppy_mode() ? kSloppyMode : kStrictMode; | |
167 } | |
168 | 166 |
169 Scope* scope() const { return scope_; } | 167 Scope* scope() const { return scope_; } |
170 | 168 |
171 Register scratch0() { return r9; } | 169 Register scratch0() { return r9; } |
172 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } | 170 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } |
173 | 171 |
174 LInstruction* GetNextInstruction(); | 172 LInstruction* GetNextInstruction(); |
175 | 173 |
176 void EmitClassOfTest(Label* if_true, | 174 void EmitClassOfTest(Label* if_true, |
177 Label* if_false, | 175 Label* if_false, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 LCodeGen* codegen_; | 457 LCodeGen* codegen_; |
460 Label entry_; | 458 Label entry_; |
461 Label exit_; | 459 Label exit_; |
462 Label* external_exit_; | 460 Label* external_exit_; |
463 int instruction_index_; | 461 int instruction_index_; |
464 }; | 462 }; |
465 | 463 |
466 } } // namespace v8::internal | 464 } } // namespace v8::internal |
467 | 465 |
468 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 466 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |