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

Side by Side Diff: runtime/vm/stub_code_arm.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/object.cc ('k') | runtime/vm/stub_code_arm64.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_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 __ Push(IP); 1448 __ Push(IP);
1449 } 1449 }
1450 // Pass IC data object. 1450 // Pass IC data object.
1451 __ Push(R9); 1451 __ Push(R9);
1452 __ CallRuntime(handle_ic_miss, num_args + 1); 1452 __ CallRuntime(handle_ic_miss, num_args + 1);
1453 // Remove the call arguments pushed earlier, including the IC data object. 1453 // Remove the call arguments pushed earlier, including the IC data object.
1454 __ Drop(num_args + 1); 1454 __ Drop(num_args + 1);
1455 // Pop returned function object into R0. 1455 // Pop returned function object into R0.
1456 // Restore arguments descriptor array and IC data array. 1456 // Restore arguments descriptor array and IC data array.
1457 __ PopList((1 << R0) | (1 << R4) | (1 << R9)); 1457 __ PopList((1 << R0) | (1 << R4) | (1 << R9));
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 __ b(&call_target_function); 1464 __ b(&call_target_function);
1467 } 1465 }
1468 1466
1469 __ Bind(&found); 1467 __ Bind(&found);
1470 // R8: pointer to an IC data check group. 1468 // R8: pointer to an IC data check group.
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2145 __ Bind(&miss); 2143 __ Bind(&miss);
2146 __ LoadIsolate(R2); 2144 __ LoadIsolate(R2);
2147 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset())); 2145 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset()));
2148 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset())); 2146 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset()));
2149 __ Ret(); 2147 __ Ret();
2150 } 2148 }
2151 2149
2152 } // namespace dart 2150 } // namespace dart
2153 2151
2154 #endif // defined TARGET_ARCH_ARM 2152 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698