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

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

Issue 841343002: ARM port of r42723. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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
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" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 FATAL2("Edge counter increment length: %" Pd ", expected %" Pd "\n", 1213 FATAL2("Edge counter increment length: %" Pd ", expected %" Pd "\n",
1214 actual, 1214 actual,
1215 expected); 1215 expected);
1216 } 1216 }
1217 #endif // DEBUG 1217 #endif // DEBUG
1218 } 1218 }
1219 1219
1220 1220
1221 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { 1221 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() {
1222 // Used by CodePatcher; so must be constant across all code in an isolate. 1222 // Used by CodePatcher; so must be constant across all code in an isolate.
1223 int32_t size = 3 * Instr::kInstrSize;
1223 #if defined(DEBUG) 1224 #if defined(DEBUG)
1224 return (VerifiedMemory::enabled() ? 42 : 19) * Instr::kInstrSize; 1225 size += 35 * Instr::kInstrSize;
1225 #else
1226 return 3 * Instr::kInstrSize;
1227 #endif // DEBUG 1226 #endif // DEBUG
1227 if (VerifiedMemory::enabled()) {
1228 size += 20 * Instr::kInstrSize;
1229 }
1230 return size;
1228 } 1231 }
1229 1232
1230 1233
1231 void FlowGraphCompiler::EmitOptimizedInstanceCall( 1234 void FlowGraphCompiler::EmitOptimizedInstanceCall(
1232 ExternalLabel* target_label, 1235 ExternalLabel* target_label,
1233 const ICData& ic_data, 1236 const ICData& ic_data,
1234 intptr_t argument_count, 1237 intptr_t argument_count,
1235 intptr_t deopt_id, 1238 intptr_t deopt_id,
1236 intptr_t token_pos, 1239 intptr_t token_pos,
1237 LocationSummary* locs) { 1240 LocationSummary* locs) {
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 DRegister dreg = EvenDRegisterOf(reg); 1888 DRegister dreg = EvenDRegisterOf(reg);
1886 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1889 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1887 } 1890 }
1888 1891
1889 1892
1890 #undef __ 1893 #undef __
1891 1894
1892 } // namespace dart 1895 } // namespace dart
1893 1896
1894 #endif // defined TARGET_ARCH_ARM 1897 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698