OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 196 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
197 | 197 |
198 static const int kUnknownIntValue = -1; | 198 static const int kUnknownIntValue = -1; |
199 | 199 |
200 private: | 200 private: |
201 // Construction/Destruction | 201 // Construction/Destruction |
202 explicit CodeGenerator(MacroAssembler* masm); | 202 explicit CodeGenerator(MacroAssembler* masm); |
203 | 203 |
204 // Accessors | 204 // Accessors |
205 inline bool is_eval(); | 205 inline bool is_eval(); |
206 Scope* scope(); | 206 inline Scope* scope(); |
207 | 207 |
208 // Generating deferred code. | 208 // Generating deferred code. |
209 void ProcessDeferred(); | 209 void ProcessDeferred(); |
210 | 210 |
211 // State | 211 // State |
212 bool has_cc() const { return cc_reg_ != al; } | 212 bool has_cc() const { return cc_reg_ != al; } |
213 JumpTarget* true_target() const { return state_->true_target(); } | 213 JumpTarget* true_target() const { return state_->true_target(); } |
214 JumpTarget* false_target() const { return state_->false_target(); } | 214 JumpTarget* false_target() const { return state_->false_target(); } |
215 | 215 |
216 // We don't track loop nesting level on ARM yet. | 216 // We don't track loop nesting level on ARM yet. |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 Major MajorKey() { return StringCompare; } | 616 Major MajorKey() { return StringCompare; } |
617 int MinorKey() { return 0; } | 617 int MinorKey() { return 0; } |
618 | 618 |
619 void Generate(MacroAssembler* masm); | 619 void Generate(MacroAssembler* masm); |
620 }; | 620 }; |
621 | 621 |
622 | 622 |
623 } } // namespace v8::internal | 623 } } // namespace v8::internal |
624 | 624 |
625 #endif // V8_ARM_CODEGEN_ARM_H_ | 625 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |