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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 GENERATING, | 119 GENERATING, |
120 DONE, | 120 DONE, |
121 ABORTED | 121 ABORTED |
122 }; | 122 }; |
123 | 123 |
124 bool is_unused() const { return status_ == UNUSED; } | 124 bool is_unused() const { return status_ == UNUSED; } |
125 bool is_generating() const { return status_ == GENERATING; } | 125 bool is_generating() const { return status_ == GENERATING; } |
126 bool is_done() const { return status_ == DONE; } | 126 bool is_done() const { return status_ == DONE; } |
127 bool is_aborted() const { return status_ == ABORTED; } | 127 bool is_aborted() const { return status_ == ABORTED; } |
128 | 128 |
129 int strict_mode_flag() const { | 129 StrictModeFlag strict_mode_flag() const { |
130 return info()->is_strict_mode() ? kStrictMode : kNonStrictMode; | 130 return info()->strict_mode_flag(); |
131 } | 131 } |
132 | 132 |
133 LChunk* chunk() const { return chunk_; } | 133 LChunk* chunk() const { return chunk_; } |
134 Scope* scope() const { return scope_; } | 134 Scope* scope() const { return scope_; } |
135 HGraph* graph() const { return chunk_->graph(); } | 135 HGraph* graph() const { return chunk_->graph(); } |
136 | 136 |
137 int GetNextEmittedBlock(int block); | 137 int GetNextEmittedBlock(int block); |
138 LInstruction* GetNextInstruction(); | 138 LInstruction* GetNextInstruction(); |
139 | 139 |
140 void EmitClassOfTest(Label* if_true, | 140 void EmitClassOfTest(Label* if_true, |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 LCodeGen* codegen_; | 370 LCodeGen* codegen_; |
371 Label entry_; | 371 Label entry_; |
372 Label exit_; | 372 Label exit_; |
373 Label* external_exit_; | 373 Label* external_exit_; |
374 int instruction_index_; | 374 int instruction_index_; |
375 }; | 375 }; |
376 | 376 |
377 } } // namespace v8::internal | 377 } } // namespace v8::internal |
378 | 378 |
379 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 379 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |