| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 198 } |
| 199 case kArchJmp: | 199 case kArchJmp: |
| 200 __ jmp(code()->GetLabel(i.InputBlock(0))); | 200 __ jmp(code()->GetLabel(i.InputBlock(0))); |
| 201 break; | 201 break; |
| 202 case kArchNop: | 202 case kArchNop: |
| 203 // don't emit code for nops. | 203 // don't emit code for nops. |
| 204 break; | 204 break; |
| 205 case kArchRet: | 205 case kArchRet: |
| 206 AssembleReturn(); | 206 AssembleReturn(); |
| 207 break; | 207 break; |
| 208 case kArchStackPointer: |
| 209 __ mov(i.OutputRegister(), esp); |
| 210 break; |
| 208 case kArchTruncateDoubleToI: | 211 case kArchTruncateDoubleToI: |
| 209 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 212 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 210 break; | 213 break; |
| 211 case kIA32Add: | 214 case kIA32Add: |
| 212 if (HasImmediateInput(instr, 1)) { | 215 if (HasImmediateInput(instr, 1)) { |
| 213 __ add(i.InputOperand(0), i.InputImmediate(1)); | 216 __ add(i.InputOperand(0), i.InputImmediate(1)); |
| 214 } else { | 217 } else { |
| 215 __ add(i.InputRegister(0), i.InputOperand(1)); | 218 __ add(i.InputRegister(0), i.InputOperand(1)); |
| 216 } | 219 } |
| 217 break; | 220 break; |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 } | 1034 } |
| 1032 } | 1035 } |
| 1033 MarkLazyDeoptSite(); | 1036 MarkLazyDeoptSite(); |
| 1034 } | 1037 } |
| 1035 | 1038 |
| 1036 #undef __ | 1039 #undef __ |
| 1037 | 1040 |
| 1038 } // namespace compiler | 1041 } // namespace compiler |
| 1039 } // namespace internal | 1042 } // namespace internal |
| 1040 } // namespace v8 | 1043 } // namespace v8 |
| OLD | NEW |