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 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 CallIC(stub.GetCode(), expr->BinaryOperationFeedbackId()); | 2287 CallIC(stub.GetCode(), expr->BinaryOperationFeedbackId()); |
2288 patch_site.EmitPatchInfo(); | 2288 patch_site.EmitPatchInfo(); |
2289 __ jmp(&done, Label::kNear); | 2289 __ jmp(&done, Label::kNear); |
2290 | 2290 |
2291 __ bind(&smi_case); | 2291 __ bind(&smi_case); |
2292 switch (op) { | 2292 switch (op) { |
2293 case Token::SAR: | 2293 case Token::SAR: |
2294 __ SmiShiftArithmeticRight(rax, rdx, rcx); | 2294 __ SmiShiftArithmeticRight(rax, rdx, rcx); |
2295 break; | 2295 break; |
2296 case Token::SHL: | 2296 case Token::SHL: |
2297 __ SmiShiftLeft(rax, rdx, rcx); | 2297 __ SmiShiftLeft(rax, rdx, rcx, &stub_call); |
2298 break; | 2298 break; |
2299 case Token::SHR: | 2299 case Token::SHR: |
2300 __ SmiShiftLogicalRight(rax, rdx, rcx, &stub_call); | 2300 __ SmiShiftLogicalRight(rax, rdx, rcx, &stub_call); |
2301 break; | 2301 break; |
2302 case Token::ADD: | 2302 case Token::ADD: |
2303 __ SmiAdd(rax, rdx, rcx, &stub_call); | 2303 __ SmiAdd(rax, rdx, rcx, &stub_call); |
2304 break; | 2304 break; |
2305 case Token::SUB: | 2305 case Token::SUB: |
2306 __ SmiSub(rax, rdx, rcx, &stub_call); | 2306 __ SmiSub(rax, rdx, rcx, &stub_call); |
2307 break; | 2307 break; |
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4810 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4810 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4811 Assembler::target_address_at(call_target_address, | 4811 Assembler::target_address_at(call_target_address, |
4812 unoptimized_code)); | 4812 unoptimized_code)); |
4813 return OSR_AFTER_STACK_CHECK; | 4813 return OSR_AFTER_STACK_CHECK; |
4814 } | 4814 } |
4815 | 4815 |
4816 | 4816 |
4817 } } // namespace v8::internal | 4817 } } // namespace v8::internal |
4818 | 4818 |
4819 #endif // V8_TARGET_ARCH_X64 | 4819 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |