| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 StrictModeFlag strict_mode_flag() const { |
| 134 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | 134 return info()->is_sloppy_mode() ? kSloppyMode : kStrictMode; |
| 135 } | 135 } |
| 136 | 136 |
| 137 LPlatformChunk* chunk() const { return chunk_; } | 137 LPlatformChunk* chunk() const { return chunk_; } |
| 138 Scope* scope() const { return scope_; } | 138 Scope* scope() const { return scope_; } |
| 139 HGraph* graph() const { return chunk()->graph(); } | 139 HGraph* graph() const { return chunk()->graph(); } |
| 140 | 140 |
| 141 XMMRegister double_scratch0() const { return xmm0; } | 141 XMMRegister double_scratch0() const { return xmm0; } |
| 142 | 142 |
| 143 void EmitClassOfTest(Label* if_true, | 143 void EmitClassOfTest(Label* if_true, |
| 144 Label* if_false, | 144 Label* if_false, |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 Label entry_; | 411 Label entry_; |
| 412 Label exit_; | 412 Label exit_; |
| 413 Label done_; | 413 Label done_; |
| 414 Label* external_exit_; | 414 Label* external_exit_; |
| 415 int instruction_index_; | 415 int instruction_index_; |
| 416 }; | 416 }; |
| 417 | 417 |
| 418 } } // namespace v8::internal | 418 } } // namespace v8::internal |
| 419 | 419 |
| 420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |