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

Side by Side Diff: runtime/vm/assembler_mips.h

Issue 51333006: Reapply "Do not directly load smi constants larger than a 16 bit..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.h » ('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 #ifndef VM_ASSEMBLER_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
11 11
12 #include "platform/assert.h" 12 #include "platform/assert.h"
13 #include "platform/utils.h" 13 #include "platform/utils.h"
14 #include "vm/constants_mips.h" 14 #include "vm/constants_mips.h"
15 #include "vm/object.h"
15 #include "vm/simulator.h" 16 #include "vm/simulator.h"
16 17
17 // References to documentation in this file refer to: 18 // References to documentation in this file refer to:
18 // "MIPS® Architecture For Programmers Volume I-A: 19 // "MIPS® Architecture For Programmers Volume I-A:
19 // Introduction to the MIPS32® Architecture" in short "VolI-A" 20 // Introduction to the MIPS32® Architecture" in short "VolI-A"
20 // and 21 // and
21 // "MIPS® Architecture For Programmers Volume II-A: 22 // "MIPS® Architecture For Programmers Volume II-A:
22 // The MIPS32® Instruction Set" in short "VolII-A" 23 // The MIPS32® Instruction Set" in short "VolII-A"
23 namespace dart { 24 namespace dart {
24 25
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 // to this frame. 1121 // to this frame.
1121 void EnterDartFrame(intptr_t frame_size); 1122 void EnterDartFrame(intptr_t frame_size);
1122 void LeaveDartFrame(); 1123 void LeaveDartFrame();
1123 void LeaveDartFrameAndReturn(); 1124 void LeaveDartFrameAndReturn();
1124 1125
1125 // Set up a Dart frame for a function compiled for on-stack replacement. 1126 // Set up a Dart frame for a function compiled for on-stack replacement.
1126 // The frame layout is a normal Dart frame, but the frame is partially set 1127 // The frame layout is a normal Dart frame, but the frame is partially set
1127 // up on entry (it is the frame of the unoptimized code). 1128 // up on entry (it is the frame of the unoptimized code).
1128 void EnterOsrFrame(intptr_t extra_size); 1129 void EnterOsrFrame(intptr_t extra_size);
1129 1130
1131 // On some other platforms, we draw a distinction between safe and unsafe
1132 // smis.
1133 static bool IsSafe(const Object& object) { return true; }
1134 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); }
1135
1130 private: 1136 private:
1131 AssemblerBuffer buffer_; 1137 AssemblerBuffer buffer_;
1132 GrowableObjectArray& object_pool_; // Objects and patchable jump targets. 1138 GrowableObjectArray& object_pool_; // Objects and patchable jump targets.
1133 intptr_t prologue_offset_; 1139 intptr_t prologue_offset_;
1134 1140
1135 const bool use_far_branches_; 1141 const bool use_far_branches_;
1136 bool delay_slot_available_; 1142 bool delay_slot_available_;
1137 bool in_delay_slot_; 1143 bool in_delay_slot_;
1138 1144
1139 int32_t AddObject(const Object& obj); 1145 int32_t AddObject(const Object& obj);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 Register value, 1261 Register value,
1256 Label* no_update); 1262 Label* no_update);
1257 1263
1258 DISALLOW_ALLOCATION(); 1264 DISALLOW_ALLOCATION();
1259 DISALLOW_COPY_AND_ASSIGN(Assembler); 1265 DISALLOW_COPY_AND_ASSIGN(Assembler);
1260 }; 1266 };
1261 1267
1262 } // namespace dart 1268 } // namespace dart
1263 1269
1264 #endif // VM_ASSEMBLER_MIPS_H_ 1270 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698