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

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

Issue 2120703002: DBC: Enables unboxed doubles (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rename BoxDouble -> WriteIntoDouble Created 4 years, 5 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
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language_dbc.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC.
6 #if defined(TARGET_ARCH_DBC) 6 #if defined(TARGET_ARCH_DBC)
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 26 matching lines...) Expand all
37 FlowGraphCompiler::~FlowGraphCompiler() { 37 FlowGraphCompiler::~FlowGraphCompiler() {
38 // BlockInfos are zone-allocated, so their destructors are not called. 38 // BlockInfos are zone-allocated, so their destructors are not called.
39 // Verify the labels explicitly here. 39 // Verify the labels explicitly here.
40 for (int i = 0; i < block_info_.length(); ++i) { 40 for (int i = 0; i < block_info_.length(); ++i) {
41 ASSERT(!block_info_[i]->jump_label()->IsLinked()); 41 ASSERT(!block_info_[i]->jump_label()->IsLinked());
42 } 42 }
43 } 43 }
44 44
45 45
46 bool FlowGraphCompiler::SupportsUnboxedDoubles() { 46 bool FlowGraphCompiler::SupportsUnboxedDoubles() {
47 #if defined(ARCH_IS_64_BIT)
48 return true;
49 #else
50 // We use 64-bit wide stack slots to unbox doubles.
47 return false; 51 return false;
52 #endif
48 } 53 }
49 54
50 55
51 bool FlowGraphCompiler::SupportsUnboxedMints() { 56 bool FlowGraphCompiler::SupportsUnboxedMints() {
52 return false; 57 return false;
53 } 58 }
54 59
55 60
56 bool FlowGraphCompiler::SupportsUnboxedSimd128() { 61 bool FlowGraphCompiler::SupportsUnboxedSimd128() {
57 return false; 62 return false;
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 520 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
516 UNIMPLEMENTED(); 521 UNIMPLEMENTED();
517 } 522 }
518 523
519 524
520 #undef __ 525 #undef __
521 526
522 } // namespace dart 527 } // namespace dart
523 528
524 #endif // defined TARGET_ARCH_DBC 529 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698