| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
| 10 #include "codegen.h" | 10 #include "codegen.h" |
| (...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2307 CallIC(stub.GetCode(), expr->BinaryOperationFeedbackId()); | 2307 CallIC(stub.GetCode(), expr->BinaryOperationFeedbackId()); |
| 2308 patch_site.EmitPatchInfo(); | 2308 patch_site.EmitPatchInfo(); |
| 2309 __ jmp(&done, Label::kNear); | 2309 __ jmp(&done, Label::kNear); |
| 2310 | 2310 |
| 2311 __ bind(&smi_case); | 2311 __ bind(&smi_case); |
| 2312 switch (op) { | 2312 switch (op) { |
| 2313 case Token::SAR: | 2313 case Token::SAR: |
| 2314 __ SmiShiftArithmeticRight(rax, rdx, rcx); | 2314 __ SmiShiftArithmeticRight(rax, rdx, rcx); |
| 2315 break; | 2315 break; |
| 2316 case Token::SHL: | 2316 case Token::SHL: |
| 2317 __ SmiShiftLeft(rax, rdx, rcx); | 2317 __ SmiShiftLeft(rax, rdx, rcx, &stub_call); |
| 2318 break; | 2318 break; |
| 2319 case Token::SHR: | 2319 case Token::SHR: |
| 2320 __ SmiShiftLogicalRight(rax, rdx, rcx, &stub_call); | 2320 __ SmiShiftLogicalRight(rax, rdx, rcx, &stub_call); |
| 2321 break; | 2321 break; |
| 2322 case Token::ADD: | 2322 case Token::ADD: |
| 2323 __ SmiAdd(rax, rdx, rcx, &stub_call); | 2323 __ SmiAdd(rax, rdx, rcx, &stub_call); |
| 2324 break; | 2324 break; |
| 2325 case Token::SUB: | 2325 case Token::SUB: |
| 2326 __ SmiSub(rax, rdx, rcx, &stub_call); | 2326 __ SmiSub(rax, rdx, rcx, &stub_call); |
| 2327 break; | 2327 break; |
| (...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4854 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4854 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4855 Assembler::target_address_at(call_target_address, | 4855 Assembler::target_address_at(call_target_address, |
| 4856 unoptimized_code)); | 4856 unoptimized_code)); |
| 4857 return OSR_AFTER_STACK_CHECK; | 4857 return OSR_AFTER_STACK_CHECK; |
| 4858 } | 4858 } |
| 4859 | 4859 |
| 4860 | 4860 |
| 4861 } } // namespace v8::internal | 4861 } } // namespace v8::internal |
| 4862 | 4862 |
| 4863 #endif // V8_TARGET_ARCH_X64 | 4863 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |