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 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 } | 2042 } |
2043 } | 2043 } |
2044 | 2044 |
2045 | 2045 |
2046 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2046 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2047 DCHECK(ToRegister(instr->context()).is(esi)); | 2047 DCHECK(ToRegister(instr->context()).is(esi)); |
2048 DCHECK(ToRegister(instr->left()).is(edx)); | 2048 DCHECK(ToRegister(instr->left()).is(edx)); |
2049 DCHECK(ToRegister(instr->right()).is(eax)); | 2049 DCHECK(ToRegister(instr->right()).is(eax)); |
2050 DCHECK(ToRegister(instr->result()).is(eax)); | 2050 DCHECK(ToRegister(instr->result()).is(eax)); |
2051 | 2051 |
2052 Handle<Code> code = | 2052 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
2053 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
2054 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2053 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2055 } | 2054 } |
2056 | 2055 |
2057 | 2056 |
2058 template<class InstrType> | 2057 template<class InstrType> |
2059 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2058 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
2060 int left_block = instr->TrueDestination(chunk_); | 2059 int left_block = instr->TrueDestination(chunk_); |
2061 int right_block = instr->FalseDestination(chunk_); | 2060 int right_block = instr->FalseDestination(chunk_); |
2062 | 2061 |
2063 int next_block = GetNextEmittedBlock(); | 2062 int next_block = GetNextEmittedBlock(); |
(...skipping 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5773 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5772 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5774 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5773 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5775 } | 5774 } |
5776 | 5775 |
5777 | 5776 |
5778 #undef __ | 5777 #undef __ |
5779 | 5778 |
5780 } } // namespace v8::internal | 5779 } } // namespace v8::internal |
5781 | 5780 |
5782 #endif // V8_TARGET_ARCH_IA32 | 5781 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |