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

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

Issue 10928013: Fix build break on Win32 and MacOS related to printf format string checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « runtime/platform/globals.h ('k') | no next file » | 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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 12 matching lines...) Expand all
23 DECLARE_FLAG(bool, print_scopes); 23 DECLARE_FLAG(bool, print_scopes);
24 DECLARE_FLAG(bool, trace_functions); 24 DECLARE_FLAG(bool, trace_functions);
25 25
26 26
27 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 27 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
28 intptr_t stub_ix) { 28 intptr_t stub_ix) {
29 // Calls do not need stubs, they share a deoptimization trampoline. 29 // Calls do not need stubs, they share a deoptimization trampoline.
30 ASSERT(reason() != kDeoptAtCall); 30 ASSERT(reason() != kDeoptAtCall);
31 Assembler* assem = compiler->assembler(); 31 Assembler* assem = compiler->assembler();
32 #define __ assem-> 32 #define __ assem->
33 __ Comment("Deopt stub for id %d", deopt_id()); 33 __ Comment("Deopt stub for id %"Pd"", deopt_id());
34 __ Bind(entry_label()); 34 __ Bind(entry_label());
35 35
36 ASSERT(deoptimization_env() != NULL); 36 ASSERT(deoptimization_env() != NULL);
37 37
38 if (compiler->IsLeaf()) { 38 if (compiler->IsLeaf()) {
39 Label L; 39 Label L;
40 __ pushl(EAX); // Preserve EAX. 40 __ pushl(EAX); // Preserve EAX.
41 __ call(&L); 41 __ call(&L);
42 const intptr_t offset = assem->CodeSize(); 42 const intptr_t offset = assem->CodeSize();
43 __ Bind(&L); 43 __ Bind(&L);
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 __ popl(ECX); 1323 __ popl(ECX);
1324 __ popl(EAX); 1324 __ popl(EAX);
1325 } 1325 }
1326 1326
1327 1327
1328 #undef __ 1328 #undef __
1329 1329
1330 } // namespace dart 1330 } // namespace dart
1331 1331
1332 #endif // defined TARGET_ARCH_IA32 1332 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/platform/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698