| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2070 } | 2070 } |
| 2071 | 2071 |
| 2072 | 2072 |
| 2073 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2073 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
| 2074 DCHECK(ToRegister(instr->context()).is(esi)); | 2074 DCHECK(ToRegister(instr->context()).is(esi)); |
| 2075 DCHECK(ToRegister(instr->left()).is(edx)); | 2075 DCHECK(ToRegister(instr->left()).is(edx)); |
| 2076 DCHECK(ToRegister(instr->right()).is(eax)); | 2076 DCHECK(ToRegister(instr->right()).is(eax)); |
| 2077 DCHECK(ToRegister(instr->result()).is(eax)); | 2077 DCHECK(ToRegister(instr->result()).is(eax)); |
| 2078 | 2078 |
| 2079 Handle<Code> code = CodeFactory::BinaryOpIC( | 2079 Handle<Code> code = CodeFactory::BinaryOpIC( |
| 2080 isolate(), instr->op(), language_mode()).code(); | 2080 isolate(), instr->op(), instr->language_mode()).code(); |
| 2081 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2081 CallCode(code, RelocInfo::CODE_TARGET, instr); |
| 2082 } | 2082 } |
| 2083 | 2083 |
| 2084 | 2084 |
| 2085 template<class InstrType> | 2085 template<class InstrType> |
| 2086 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2086 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
| 2087 int left_block = instr->TrueDestination(chunk_); | 2087 int left_block = instr->TrueDestination(chunk_); |
| 2088 int right_block = instr->FalseDestination(chunk_); | 2088 int right_block = instr->FalseDestination(chunk_); |
| 2089 | 2089 |
| 2090 int next_block = GetNextEmittedBlock(); | 2090 int next_block = GetNextEmittedBlock(); |
| (...skipping 3677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5768 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5768 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5769 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5769 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5770 } | 5770 } |
| 5771 | 5771 |
| 5772 | 5772 |
| 5773 #undef __ | 5773 #undef __ |
| 5774 | 5774 |
| 5775 } } // namespace v8::internal | 5775 } } // namespace v8::internal |
| 5776 | 5776 |
| 5777 #endif // V8_TARGET_ARCH_IA32 | 5777 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |