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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 GENERATING, | 122 GENERATING, |
123 DONE, | 123 DONE, |
124 ABORTED | 124 ABORTED |
125 }; | 125 }; |
126 | 126 |
127 bool is_unused() const { return status_ == UNUSED; } | 127 bool is_unused() const { return status_ == UNUSED; } |
128 bool is_generating() const { return status_ == GENERATING; } | 128 bool is_generating() const { return status_ == GENERATING; } |
129 bool is_done() const { return status_ == DONE; } | 129 bool is_done() const { return status_ == DONE; } |
130 bool is_aborted() const { return status_ == ABORTED; } | 130 bool is_aborted() const { return status_ == ABORTED; } |
131 | 131 |
| 132 int strict_mode_flag() const { |
| 133 return info_->is_strict() ? kStrictMode : kNonStrictMode; |
| 134 } |
| 135 |
132 LChunk* chunk() const { return chunk_; } | 136 LChunk* chunk() const { return chunk_; } |
133 Scope* scope() const { return scope_; } | 137 Scope* scope() const { return scope_; } |
134 HGraph* graph() const { return chunk_->graph(); } | 138 HGraph* graph() const { return chunk_->graph(); } |
135 MacroAssembler* masm() const { return masm_; } | 139 MacroAssembler* masm() const { return masm_; } |
136 | 140 |
137 Register scratch0() { return r9; } | 141 Register scratch0() { return r9; } |
138 DwVfpRegister double_scratch0() { return d0; } | 142 DwVfpRegister double_scratch0() { return d0; } |
139 | 143 |
140 int GetNextEmittedBlock(int block); | 144 int GetNextEmittedBlock(int block); |
141 LInstruction* GetNextInstruction(); | 145 LInstruction* GetNextInstruction(); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 private: | 323 private: |
320 LCodeGen* codegen_; | 324 LCodeGen* codegen_; |
321 Label entry_; | 325 Label entry_; |
322 Label exit_; | 326 Label exit_; |
323 Label* external_exit_; | 327 Label* external_exit_; |
324 }; | 328 }; |
325 | 329 |
326 } } // namespace v8::internal | 330 } } // namespace v8::internal |
327 | 331 |
328 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 332 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |