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

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

Issue 10968059: Support for unboxed 64-bit integer bitwise operations and equality on ia32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/flow_graph_optimizer.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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
11 #include "vm/ast_printer.h" 11 #include "vm/ast_printer.h"
12 #include "vm/il_printer.h" 12 #include "vm/il_printer.h"
13 #include "vm/locations.h" 13 #include "vm/locations.h"
14 #include "vm/object_store.h" 14 #include "vm/object_store.h"
15 #include "vm/parser.h" 15 #include "vm/parser.h"
16 #include "vm/stub_code.h" 16 #include "vm/stub_code.h"
17 #include "vm/symbols.h" 17 #include "vm/symbols.h"
18 18
19 namespace dart { 19 namespace dart {
20 20
21 DECLARE_FLAG(bool, print_ast); 21 DECLARE_FLAG(bool, print_ast);
22 DECLARE_FLAG(bool, print_scopes); 22 DECLARE_FLAG(bool, print_scopes);
23 DECLARE_FLAG(bool, reject_named_argument_as_positional); 23 DECLARE_FLAG(bool, reject_named_argument_as_positional);
24 DECLARE_FLAG(bool, trace_functions); 24 DECLARE_FLAG(bool, trace_functions);
25 DECLARE_FLAG(bool, use_sse41);
26 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization.");
27
28
29 bool FlowGraphCompiler::SupportsUnboxedMints() {
30 return false;
31 }
25 32
26 33
27 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 34 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
28 intptr_t stub_ix) { 35 intptr_t stub_ix) {
29 // Calls do not need stubs, they share a deoptimization trampoline. 36 // Calls do not need stubs, they share a deoptimization trampoline.
30 ASSERT(reason() != kDeoptAtCall); 37 ASSERT(reason() != kDeoptAtCall);
31 Assembler* assem = compiler->assembler(); 38 Assembler* assem = compiler->assembler();
32 #define __ assem-> 39 #define __ assem->
33 __ Comment("Deopt stub for id %"Pd"", deopt_id()); 40 __ Comment("Deopt stub for id %"Pd"", deopt_id());
34 __ Bind(entry_label()); 41 __ Bind(entry_label());
42 if (FLAG_trap_on_deoptimization) __ int3();
35 43
36 ASSERT(deoptimization_env() != NULL); 44 ASSERT(deoptimization_env() != NULL);
37 45
38 if (compiler->IsLeaf()) { 46 if (compiler->IsLeaf()) {
39 __ Comment("Leaf method, lazy PC marker setup"); 47 __ Comment("Leaf method, lazy PC marker setup");
40 // TODO(srdjan): Can we use TMP instead of RAX? We must guarantee that 48 // TODO(srdjan): Can we use TMP instead of RAX? We must guarantee that
41 // TMP is never part of deoptimization environment. 49 // TMP is never part of deoptimization environment.
42 __ pushq(RAX); // Preserve RAX. 50 __ pushq(RAX); // Preserve RAX.
43 Label L; 51 Label L;
44 __ call(&L); 52 __ call(&L);
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1363 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1356 __ Exchange(mem1, mem2); 1364 __ Exchange(mem1, mem2);
1357 } 1365 }
1358 1366
1359 1367
1360 #undef __ 1368 #undef __
1361 1369
1362 } // namespace dart 1370 } // namespace dart
1363 1371
1364 #endif // defined TARGET_ARCH_X64 1372 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698