Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: src/x87/builtins-x87.cc

Issue 1960993002: [X87] [Ignition] Fix V8 x87 code generation bugs when Ingition was enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: format the comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 __ mov(ecx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); 647 __ mov(ecx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
648 __ mov(ecx, FieldOperand(ecx, SharedFunctionInfo::kCodeOffset)); 648 __ mov(ecx, FieldOperand(ecx, SharedFunctionInfo::kCodeOffset));
649 __ lea(ecx, FieldOperand(ecx, Code::kHeaderSize)); 649 __ lea(ecx, FieldOperand(ecx, Code::kHeaderSize));
650 __ mov(FieldOperand(edi, JSFunction::kCodeEntryOffset), ecx); 650 __ mov(FieldOperand(edi, JSFunction::kCodeEntryOffset), ecx);
651 __ RecordWriteCodeEntryField(edi, ecx, ebx); 651 __ RecordWriteCodeEntryField(edi, ecx, ebx);
652 __ jmp(ecx); 652 __ jmp(ecx);
653 } 653 }
654 654
655 655
656 void Builtins::Generate_InterpreterExitTrampoline(MacroAssembler* masm) { 656 void Builtins::Generate_InterpreterExitTrampoline(MacroAssembler* masm) {
657 // Interpreter handler is turbofanned code, need to reset the FPU before
658 // return
659 __ fninit();
660
657 // The return value is in accumulator, which is already in eax. 661 // The return value is in accumulator, which is already in eax.
658 662
659 // Leave the frame (also dropping the register file). 663 // Leave the frame (also dropping the register file).
660 __ leave(); 664 __ leave();
661 665
662 // Drop receiver + arguments and return. 666 // Drop receiver + arguments and return.
663 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister, 667 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister,
664 BytecodeArray::kParameterSizeOffset)); 668 BytecodeArray::kParameterSizeOffset));
665 __ pop(ecx); 669 __ pop(ecx);
666 __ add(esp, ebx); 670 __ add(esp, ebx);
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2935 // And "return" to the OSR entry point of the function. 2939 // And "return" to the OSR entry point of the function.
2936 __ ret(0); 2940 __ ret(0);
2937 } 2941 }
2938 2942
2939 2943
2940 #undef __ 2944 #undef __
2941 } // namespace internal 2945 } // namespace internal
2942 } // namespace v8 2946 } // namespace v8
2943 2947
2944 #endif // V8_TARGET_ARCH_X87 2948 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698