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

Side by Side Diff: runtime/vm/stub_code_ia32.cc

Issue 14309004: Implement long jump in ARM and MIPS simulators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 1900
1901 1901
1902 // Jump to the error handler. 1902 // Jump to the error handler.
1903 // TOS + 0: return address 1903 // TOS + 0: return address
1904 // TOS + 1: program_counter 1904 // TOS + 1: program_counter
1905 // TOS + 2: stack_pointer 1905 // TOS + 2: stack_pointer
1906 // TOS + 3: frame_pointer 1906 // TOS + 3: frame_pointer
1907 // TOS + 4: error object 1907 // TOS + 4: error object
1908 // No Result. 1908 // No Result.
1909 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) { 1909 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) {
1910 ASSERT(kExceptionObjectReg == EAX);
1910 __ movl(EAX, Address(ESP, 4 * kWordSize)); // Load error object. 1911 __ movl(EAX, Address(ESP, 4 * kWordSize)); // Load error object.
1911 __ movl(EBP, Address(ESP, 3 * kWordSize)); // Load target frame_pointer. 1912 __ movl(EBP, Address(ESP, 3 * kWordSize)); // Load target frame_pointer.
1912 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Load target PC into EBX. 1913 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Load target PC into EBX.
1913 __ movl(ESP, Address(ESP, 2 * kWordSize)); // Load target stack_pointer. 1914 __ movl(ESP, Address(ESP, 2 * kWordSize)); // Load target stack_pointer.
1914 __ jmp(EBX); // Jump to the exception handler code. 1915 __ jmp(EBX); // Jump to the exception handler code.
1915 } 1916 }
1916 1917
1917 1918
1918 // Implements equality operator when one of the arguments is null 1919 // Implements equality operator when one of the arguments is null
1919 // (identity check) and updates ICData if necessary. 1920 // (identity check) and updates ICData if necessary.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 __ Bind(&done); 2118 __ Bind(&done);
2118 __ popl(temp); 2119 __ popl(temp);
2119 __ popl(right); 2120 __ popl(right);
2120 __ popl(left); 2121 __ popl(left);
2121 __ ret(); 2122 __ ret();
2122 } 2123 }
2123 2124
2124 } // namespace dart 2125 } // namespace dart
2125 2126
2126 #endif // defined TARGET_ARCH_IA32 2127 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698