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

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

Issue 2455983002: Small cleanups and linter fixes. (Closed)
Patch Set: Small cleanups Created 4 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
« no previous file with comments | « runtime/vm/instructions_mips.cc ('k') | runtime/vm/intermediate_language_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) 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" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/instructions.h"
9 #include "vm/instructions_x64.h"
10
8 #include "vm/cpu.h" 11 #include "vm/cpu.h"
9 #include "vm/constants_x64.h" 12 #include "vm/constants_x64.h"
10 #include "vm/instructions.h"
11 #include "vm/object.h" 13 #include "vm/object.h"
12 14
13 namespace dart { 15 namespace dart {
14 16
15 bool DecodeLoadObjectFromPoolOrThread(uword pc, 17 bool DecodeLoadObjectFromPoolOrThread(uword pc,
16 const Code& code, 18 const Code& code,
17 Object* obj) { 19 Object* obj) {
18 ASSERT(code.ContainsInstructionAt(pc)); 20 ASSERT(code.ContainsInstructionAt(pc));
19 21
20 uint8_t* bytes = reinterpret_cast<uint8_t*>(pc); 22 uint8_t* bytes = reinterpret_cast<uint8_t*>(pc);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 uint8_t offset = *reinterpret_cast<uint8_t*>(pc + 3); 61 uint8_t offset = *reinterpret_cast<uint8_t*>(pc + 3);
60 return Thread::ObjectAtOffset(offset, obj); 62 return Thread::ObjectAtOffset(offset, obj);
61 } 63 }
62 64
63 return false; 65 return false;
64 } 66 }
65 67
66 } // namespace dart 68 } // namespace dart
67 69
68 #endif // defined TARGET_ARCH_X64 70 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/instructions_mips.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698