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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Emit frame translation commands for an environment. | 124 // Emit frame translation commands for an environment. |
125 void WriteTranslation(LEnvironment* environment, Translation* translation); | 125 void WriteTranslation(LEnvironment* environment, Translation* translation); |
126 | 126 |
127 // Declare methods that deal with the individual node types. | 127 // Declare methods that deal with the individual node types. |
128 #define DECLARE_DO(type) void Do##type(L##type* node); | 128 #define DECLARE_DO(type) void Do##type(L##type* node); |
129 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 129 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
130 #undef DECLARE_DO | 130 #undef DECLARE_DO |
131 | 131 |
132 private: | 132 private: |
133 StrictModeFlag strict_mode_flag() const { | 133 StrictMode strict_mode() const { return info()->strict_mode(); } |
134 return info()->is_sloppy_mode() ? kSloppyMode : kStrictMode; | |
135 } | |
136 | 134 |
137 LPlatformChunk* chunk() const { return chunk_; } | 135 LPlatformChunk* chunk() const { return chunk_; } |
138 Scope* scope() const { return scope_; } | 136 Scope* scope() const { return scope_; } |
139 HGraph* graph() const { return chunk()->graph(); } | 137 HGraph* graph() const { return chunk()->graph(); } |
140 | 138 |
141 XMMRegister double_scratch0() const { return xmm0; } | 139 XMMRegister double_scratch0() const { return xmm0; } |
142 | 140 |
143 void EmitClassOfTest(Label* if_true, | 141 void EmitClassOfTest(Label* if_true, |
144 Label* if_false, | 142 Label* if_false, |
145 Handle<String> class_name, | 143 Handle<String> class_name, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 Label entry_; | 409 Label entry_; |
412 Label exit_; | 410 Label exit_; |
413 Label done_; | 411 Label done_; |
414 Label* external_exit_; | 412 Label* external_exit_; |
415 int instruction_index_; | 413 int instruction_index_; |
416 }; | 414 }; |
417 | 415 |
418 } } // namespace v8::internal | 416 } } // namespace v8::internal |
419 | 417 |
420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 418 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |