| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 __ pushq(CTX); | 1074 __ pushq(CTX); |
| 1075 __ pushq(RBX); | 1075 __ pushq(RBX); |
| 1076 | 1076 |
| 1077 // Load the isolate out of the context. | 1077 // Load the isolate out of the context. |
| 1078 // RAX: Address being stored | 1078 // RAX: Address being stored |
| 1079 __ movq(CTX, FieldAddress(CTX, Context::isolate_offset())); | 1079 __ movq(CTX, FieldAddress(CTX, Context::isolate_offset())); |
| 1080 | 1080 |
| 1081 // Load top_ out of the StoreBufferBlock and add the address to the pointers_. | 1081 // Load top_ out of the StoreBufferBlock and add the address to the pointers_. |
| 1082 // RAX: Address being stored | 1082 // RAX: Address being stored |
| 1083 // CTX: Isolate | 1083 // CTX: Isolate |
| 1084 intptr_t store_buffer_offset = Isolate::store_buffer_offset(); | 1084 intptr_t store_buffer_offset = Isolate::store_buffer_block_offset(); |
| 1085 __ movl(RBX, | 1085 __ movl(RBX, |
| 1086 Address(CTX, store_buffer_offset + StoreBufferBlock::top_offset())); | 1086 Address(CTX, store_buffer_offset + StoreBufferBlock::top_offset())); |
| 1087 __ movq(Address(CTX, | 1087 __ movq(Address(CTX, |
| 1088 RBX, TIMES_8, | 1088 RBX, TIMES_8, |
| 1089 store_buffer_offset + StoreBufferBlock::pointers_offset()), | 1089 store_buffer_offset + StoreBufferBlock::pointers_offset()), |
| 1090 RAX); | 1090 RAX); |
| 1091 | 1091 |
| 1092 // Increment top_ and check for overflow. | 1092 // Increment top_ and check for overflow. |
| 1093 // RBX: top_ | 1093 // RBX: top_ |
| 1094 // CTX: Isolate | 1094 // CTX: Isolate |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1913 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) { | 1913 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) { |
| 1914 __ movq(RAX, RCX); // error object. | 1914 __ movq(RAX, RCX); // error object. |
| 1915 __ movq(RBP, RDX); // target frame_pointer. | 1915 __ movq(RBP, RDX); // target frame_pointer. |
| 1916 __ movq(RSP, RSI); // target stack_pointer. | 1916 __ movq(RSP, RSI); // target stack_pointer. |
| 1917 __ jmp(RDI); // Jump to the exception handler code. | 1917 __ jmp(RDI); // Jump to the exception handler code. |
| 1918 } | 1918 } |
| 1919 | 1919 |
| 1920 } // namespace dart | 1920 } // namespace dart |
| 1921 | 1921 |
| 1922 #endif // defined TARGET_ARCH_X64 | 1922 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |