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 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2340 } | 2340 } |
2341 | 2341 |
2342 | 2342 |
2343 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2343 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2344 DCHECK(ToRegister(instr->context()).is(esi)); | 2344 DCHECK(ToRegister(instr->context()).is(esi)); |
2345 DCHECK(ToRegister(instr->left()).is(edx)); | 2345 DCHECK(ToRegister(instr->left()).is(edx)); |
2346 DCHECK(ToRegister(instr->right()).is(eax)); | 2346 DCHECK(ToRegister(instr->right()).is(eax)); |
2347 DCHECK(ToRegister(instr->result()).is(eax)); | 2347 DCHECK(ToRegister(instr->result()).is(eax)); |
2348 | 2348 |
2349 Handle<Code> code = CodeFactory::BinaryOpIC( | 2349 Handle<Code> code = CodeFactory::BinaryOpIC( |
2350 isolate(), instr->op(), language_mode()).code(); | 2350 isolate(), instr->op(), instr->language_mode()).code(); |
2351 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2351 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2352 } | 2352 } |
2353 | 2353 |
2354 | 2354 |
2355 template<class InstrType> | 2355 template<class InstrType> |
2356 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2356 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
2357 int left_block = instr->TrueDestination(chunk_); | 2357 int left_block = instr->TrueDestination(chunk_); |
2358 int right_block = instr->FalseDestination(chunk_); | 2358 int right_block = instr->FalseDestination(chunk_); |
2359 | 2359 |
2360 int next_block = GetNextEmittedBlock(); | 2360 int next_block = GetNextEmittedBlock(); |
(...skipping 4014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6375 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6375 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6376 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6376 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6377 } | 6377 } |
6378 | 6378 |
6379 | 6379 |
6380 #undef __ | 6380 #undef __ |
6381 | 6381 |
6382 } } // namespace v8::internal | 6382 } } // namespace v8::internal |
6383 | 6383 |
6384 #endif // V8_TARGET_ARCH_X87 | 6384 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |