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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 __ X87SetFPUCW(0x037F); | 2310 __ X87SetFPUCW(0x037F); |
2311 } | 2311 } |
2312 | 2312 |
2313 | 2313 |
2314 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2314 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2315 DCHECK(ToRegister(instr->context()).is(esi)); | 2315 DCHECK(ToRegister(instr->context()).is(esi)); |
2316 DCHECK(ToRegister(instr->left()).is(edx)); | 2316 DCHECK(ToRegister(instr->left()).is(edx)); |
2317 DCHECK(ToRegister(instr->right()).is(eax)); | 2317 DCHECK(ToRegister(instr->right()).is(eax)); |
2318 DCHECK(ToRegister(instr->result()).is(eax)); | 2318 DCHECK(ToRegister(instr->result()).is(eax)); |
2319 | 2319 |
2320 Handle<Code> code = | 2320 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
2321 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
2322 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2321 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2323 } | 2322 } |
2324 | 2323 |
2325 | 2324 |
2326 template<class InstrType> | 2325 template<class InstrType> |
2327 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2326 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
2328 int left_block = instr->TrueDestination(chunk_); | 2327 int left_block = instr->TrueDestination(chunk_); |
2329 int right_block = instr->FalseDestination(chunk_); | 2328 int right_block = instr->FalseDestination(chunk_); |
2330 | 2329 |
2331 int next_block = GetNextEmittedBlock(); | 2330 int next_block = GetNextEmittedBlock(); |
(...skipping 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6379 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6378 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6380 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6379 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6381 } | 6380 } |
6382 | 6381 |
6383 | 6382 |
6384 #undef __ | 6383 #undef __ |
6385 | 6384 |
6386 } } // namespace v8::internal | 6385 } } // namespace v8::internal |
6387 | 6386 |
6388 #endif // V8_TARGET_ARCH_X87 | 6387 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |