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

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

Issue 818443003: Fix crash in observatory: stub code do not have inlined intervals information. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/stub_code_arm.cc ('k') | runtime/vm/stub_code_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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord); 1254 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord);
1255 } 1255 }
1256 1256
1257 1257
1258 // Loads function into 'temp_reg'. 1258 // Loads function into 'temp_reg'.
1259 void StubCode::GenerateUsageCounterIncrement(Assembler* assembler, 1259 void StubCode::GenerateUsageCounterIncrement(Assembler* assembler,
1260 Register temp_reg) { 1260 Register temp_reg) {
1261 Register ic_reg = R5; 1261 Register ic_reg = R5;
1262 Register func_reg = temp_reg; 1262 Register func_reg = temp_reg;
1263 ASSERT(temp_reg == R6); 1263 ASSERT(temp_reg == R6);
1264 __ Comment("Increment function counter");
1264 __ LoadFieldFromOffset(func_reg, ic_reg, ICData::owner_offset(), kNoPP); 1265 __ LoadFieldFromOffset(func_reg, ic_reg, ICData::owner_offset(), kNoPP);
1265 __ LoadFieldFromOffset( 1266 __ LoadFieldFromOffset(
1266 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord); 1267 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord);
1267 __ AddImmediate(R7, R7, 1, kNoPP); 1268 __ AddImmediate(R7, R7, 1, kNoPP);
1268 __ StoreFieldToOffset( 1269 __ StoreFieldToOffset(
1269 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord); 1270 R7, func_reg, Function::usage_counter_offset(), kNoPP, kWord);
1270 } 1271 }
1271 1272
1272 1273
1273 // Note: R5 must be preserved. 1274 // Note: R5 must be preserved.
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 const Register right = R0; 2097 const Register right = R0;
2097 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP); 2098 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP);
2098 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP); 2099 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP);
2099 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 2100 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
2100 __ ret(); 2101 __ ret();
2101 } 2102 }
2102 2103
2103 } // namespace dart 2104 } // namespace dart
2104 2105
2105 #endif // defined TARGET_ARCH_ARM64 2106 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698