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

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

Issue 842953002: x64 port of r42717. (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_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/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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 FATAL2("Edge counter increment length: %" Pd ", expected %" Pd "\n", 1279 FATAL2("Edge counter increment length: %" Pd ", expected %" Pd "\n",
1280 actual, 1280 actual,
1281 expected); 1281 expected);
1282 } 1282 }
1283 #endif // DEBUG 1283 #endif // DEBUG
1284 } 1284 }
1285 1285
1286 1286
1287 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { 1287 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() {
1288 // Used by CodePatcher; so must be constant across all code in an isolate. 1288 // Used by CodePatcher; so must be constant across all code in an isolate.
1289 return VerifiedMemory::enabled() ? 73 : 5; 1289 int32_t size = 5;
1290 #if defined(DEBUG)
1291 size += 33; // VerifySmi
1292 #endif // DEBUG
1293 if (VerifiedMemory::enabled()) {
1294 size += 72;
1295 }
1296 return size;
1290 } 1297 }
1291 1298
1292 1299
1293 void FlowGraphCompiler::EmitOptimizedInstanceCall( 1300 void FlowGraphCompiler::EmitOptimizedInstanceCall(
1294 ExternalLabel* target_label, 1301 ExternalLabel* target_label,
1295 const ICData& ic_data, 1302 const ICData& ic_data,
1296 intptr_t argument_count, 1303 intptr_t argument_count,
1297 intptr_t deopt_id, 1304 intptr_t deopt_id,
1298 intptr_t token_pos, 1305 intptr_t token_pos,
1299 LocationSummary* locs) { 1306 LocationSummary* locs) {
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1806 __ movups(reg, Address(RSP, 0)); 1813 __ movups(reg, Address(RSP, 0));
1807 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1814 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1808 } 1815 }
1809 1816
1810 1817
1811 #undef __ 1818 #undef __
1812 1819
1813 } // namespace dart 1820 } // namespace dart
1814 1821
1815 #endif // defined TARGET_ARCH_X64 1822 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698