| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 } | 2099 } |
| 2100 | 2100 |
| 2101 | 2101 |
| 2102 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2102 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
| 2103 DCHECK(ToRegister(instr->context()).is(rsi)); | 2103 DCHECK(ToRegister(instr->context()).is(rsi)); |
| 2104 DCHECK(ToRegister(instr->left()).is(rdx)); | 2104 DCHECK(ToRegister(instr->left()).is(rdx)); |
| 2105 DCHECK(ToRegister(instr->right()).is(rax)); | 2105 DCHECK(ToRegister(instr->right()).is(rax)); |
| 2106 DCHECK(ToRegister(instr->result()).is(rax)); | 2106 DCHECK(ToRegister(instr->result()).is(rax)); |
| 2107 | 2107 |
| 2108 Handle<Code> code = CodeFactory::BinaryOpIC( | 2108 Handle<Code> code = CodeFactory::BinaryOpIC( |
| 2109 isolate(), instr->op(), language_mode()).code(); | 2109 isolate(), instr->op(), instr->language_mode()).code(); |
| 2110 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2110 CallCode(code, RelocInfo::CODE_TARGET, instr); |
| 2111 } | 2111 } |
| 2112 | 2112 |
| 2113 | 2113 |
| 2114 template<class InstrType> | 2114 template<class InstrType> |
| 2115 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2115 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
| 2116 int left_block = instr->TrueDestination(chunk_); | 2116 int left_block = instr->TrueDestination(chunk_); |
| 2117 int right_block = instr->FalseDestination(chunk_); | 2117 int right_block = instr->FalseDestination(chunk_); |
| 2118 | 2118 |
| 2119 int next_block = GetNextEmittedBlock(); | 2119 int next_block = GetNextEmittedBlock(); |
| (...skipping 3826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5946 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5946 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5947 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5947 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5948 } | 5948 } |
| 5949 | 5949 |
| 5950 | 5950 |
| 5951 #undef __ | 5951 #undef __ |
| 5952 | 5952 |
| 5953 } } // namespace v8::internal | 5953 } } // namespace v8::internal |
| 5954 | 5954 |
| 5955 #endif // V8_TARGET_ARCH_X64 | 5955 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |