OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/assembler_macros.h" | 9 #include "vm/assembler_macros.h" |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 __ pushl(CTX); | 1088 __ pushl(CTX); |
1089 __ pushl(EBX); | 1089 __ pushl(EBX); |
1090 | 1090 |
1091 // Load the isolate out of the context. | 1091 // Load the isolate out of the context. |
1092 // EAX: Address being stored | 1092 // EAX: Address being stored |
1093 __ movl(CTX, FieldAddress(CTX, Context::isolate_offset())); | 1093 __ movl(CTX, FieldAddress(CTX, Context::isolate_offset())); |
1094 | 1094 |
1095 // Load top_ out of the StoreBufferBlock and add the address to the pointers_. | 1095 // Load top_ out of the StoreBufferBlock and add the address to the pointers_. |
1096 // EAX: Address being stored | 1096 // EAX: Address being stored |
1097 // CTX: Isolate | 1097 // CTX: Isolate |
1098 intptr_t store_buffer_offset = Isolate::store_buffer_offset(); | 1098 intptr_t store_buffer_offset = Isolate::store_buffer_block_offset(); |
1099 __ movl(EBX, | 1099 __ movl(EBX, |
1100 Address(CTX, store_buffer_offset + StoreBufferBlock::top_offset())); | 1100 Address(CTX, store_buffer_offset + StoreBufferBlock::top_offset())); |
1101 __ movl(Address(CTX, | 1101 __ movl(Address(CTX, |
1102 EBX, TIMES_4, | 1102 EBX, TIMES_4, |
1103 store_buffer_offset + StoreBufferBlock::pointers_offset()), | 1103 store_buffer_offset + StoreBufferBlock::pointers_offset()), |
1104 EAX); | 1104 EAX); |
1105 | 1105 |
1106 // Increment top_ and check for overflow. | 1106 // Increment top_ and check for overflow. |
1107 // EBX: top_ | 1107 // EBX: top_ |
1108 // CTX: Isolate | 1108 // CTX: Isolate |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 __ movl(EAX, Address(ESP, 4 * kWordSize)); // Load error object. | 1948 __ movl(EAX, Address(ESP, 4 * kWordSize)); // Load error object. |
1949 __ movl(EBP, Address(ESP, 3 * kWordSize)); // Load target frame_pointer. | 1949 __ movl(EBP, Address(ESP, 3 * kWordSize)); // Load target frame_pointer. |
1950 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Load target PC into EBX. | 1950 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Load target PC into EBX. |
1951 __ movl(ESP, Address(ESP, 2 * kWordSize)); // Load target stack_pointer. | 1951 __ movl(ESP, Address(ESP, 2 * kWordSize)); // Load target stack_pointer. |
1952 __ jmp(EBX); // Jump to the exception handler code. | 1952 __ jmp(EBX); // Jump to the exception handler code. |
1953 } | 1953 } |
1954 | 1954 |
1955 } // namespace dart | 1955 } // namespace dart |
1956 | 1956 |
1957 #endif // defined TARGET_ARCH_IA32 | 1957 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |