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

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

Issue 1672303002: Fix --no-lazy-dispatchers in the JIT. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/stub_code_mips.cc ('k') | tests/standalone/no_lazy_dispatchers_test.dart » ('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_X64) 6 #if defined(TARGET_ARCH_X64)
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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 } 1448 }
1449 __ pushq(RBX); // Pass IC data object. 1449 __ pushq(RBX); // Pass IC data object.
1450 __ CallRuntime(handle_ic_miss, num_args + 1); 1450 __ CallRuntime(handle_ic_miss, num_args + 1);
1451 // Remove the call arguments pushed earlier, including the IC data object. 1451 // Remove the call arguments pushed earlier, including the IC data object.
1452 for (intptr_t i = 0; i < num_args + 1; i++) { 1452 for (intptr_t i = 0; i < num_args + 1; i++) {
1453 __ popq(RAX); 1453 __ popq(RAX);
1454 } 1454 }
1455 __ popq(RAX); // Pop returned function object into RAX. 1455 __ popq(RAX); // Pop returned function object into RAX.
1456 __ popq(RBX); // Restore IC data array. 1456 __ popq(RBX); // Restore IC data array.
1457 __ popq(R10); // Restore arguments descriptor array. 1457 __ popq(R10); // Restore arguments descriptor array.
1458 if (range_collection_mode == kCollectRanges) { 1458 __ RestoreCodePointer();
1459 __ RestoreCodePointer();
1460 }
1461 __ LeaveStubFrame(); 1459 __ LeaveStubFrame();
1462 Label call_target_function; 1460 Label call_target_function;
1463 if (!FLAG_lazy_dispatchers) { 1461 if (!FLAG_lazy_dispatchers) {
1464 GenerateDispatcherCode(assembler, &call_target_function); 1462 GenerateDispatcherCode(assembler, &call_target_function);
1465 } else { 1463 } else {
1466 __ jmp(&call_target_function); 1464 __ jmp(&call_target_function);
1467 } 1465 }
1468 1466
1469 __ Bind(&found); 1467 __ Bind(&found);
1470 // R13: Pointer to an IC data check group. 1468 // R13: Pointer to an IC data check group.
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 __ Bind(&miss); 2184 __ Bind(&miss);
2187 __ LoadIsolate(RAX); 2185 __ LoadIsolate(RAX);
2188 __ movq(CODE_REG, Address(RAX, Isolate::ic_miss_code_offset())); 2186 __ movq(CODE_REG, Address(RAX, Isolate::ic_miss_code_offset()));
2189 __ movq(RCX, FieldAddress(CODE_REG, Code::entry_point_offset())); 2187 __ movq(RCX, FieldAddress(CODE_REG, Code::entry_point_offset()));
2190 __ ret(); 2188 __ ret();
2191 } 2189 }
2192 2190
2193 } // namespace dart 2191 } // namespace dart
2194 2192
2195 #endif // defined TARGET_ARCH_X64 2193 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | tests/standalone/no_lazy_dispatchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698