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

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

Issue 1089003002: Implement bigint shift intrinsics on IA32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
11 #include "vm/dart_entry.h" 11 #include "vm/dart_entry.h"
12 #include "vm/flow_graph_compiler.h" 12 #include "vm/flow_graph_compiler.h"
13 #include "vm/object.h" 13 #include "vm/object.h"
14 #include "vm/object_store.h" 14 #include "vm/object_store.h"
15 #include "vm/regexp_assembler.h" 15 #include "vm/regexp_assembler.h"
16 #include "vm/symbols.h" 16 #include "vm/symbols.h"
17 17
18 namespace dart { 18 namespace dart {
19 19
20 DECLARE_FLAG(bool, enable_type_checks); 20 DECLARE_FLAG(bool, enable_type_checks);
21 21
22 // When entering intrinsics code:
23 // R5: IC Data
24 // R4: Arguments descriptor
25 // LR: Return address
26 // The R5, R4 registers can be destroyed only if there is no slow-path, i.e.
27 // if the intrinsified method always executes a return.
28 // The FP register should not be modified, because it is used by the profiler.
22 29
23 #define __ assembler-> 30 #define __ assembler->
24 31
25 32
26 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } 33 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; }
27 34
28 35
29 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { 36 static intptr_t ComputeObjectArrayTypeArgumentsOffset() {
30 const Library& core_lib = Library::Handle(Library::CoreLibrary()); 37 const Library& core_lib = Library::Handle(Library::CoreLibrary());
31 const Class& cls = Class::Handle( 38 const Class& cls = Class::Handle(
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 Isolate* isolate = Isolate::Current(); 2020 Isolate* isolate = Isolate::Current();
2014 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); 2021 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP);
2015 // Set return value to Isolate::current_tag_. 2022 // Set return value to Isolate::current_tag_.
2016 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 2023 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
2017 __ ret(); 2024 __ ret();
2018 } 2025 }
2019 2026
2020 } // namespace dart 2027 } // namespace dart
2021 2028
2022 #endif // defined TARGET_ARCH_ARM64 2029 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698