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

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

Issue 1054393003: Compress deopt instructions in memory using variable length encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix other architectures Created 5 years, 8 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 69
70 void FlowGraphCompiler::ExitIntrinsicMode() { 70 void FlowGraphCompiler::ExitIntrinsicMode() {
71 ASSERT(intrinsic_mode()); 71 ASSERT(intrinsic_mode());
72 intrinsic_mode_ = false; 72 intrinsic_mode_ = false;
73 assembler()->set_allow_constant_pool(true); 73 assembler()->set_allow_constant_pool(true);
74 } 74 }
75 75
76 76
77 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 77 RawTypedData* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
78 DeoptInfoBuilder* builder, 78 DeoptInfoBuilder* builder,
79 const Array& deopt_table) { 79 const Array& deopt_table) {
80 if (deopt_env_ == NULL) { 80 if (deopt_env_ == NULL) {
81 ++builder->current_info_number_; 81 ++builder->current_info_number_;
82 return DeoptInfo::null(); 82 return TypedData::null();
83 } 83 }
84 84
85 intptr_t stack_height = compiler->StackSize(); 85 intptr_t stack_height = compiler->StackSize();
86 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 86 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
87 87
88 intptr_t slot_ix = 0; 88 intptr_t slot_ix = 0;
89 Environment* current = deopt_env_; 89 Environment* current = deopt_env_;
90 90
91 // Emit all kMaterializeObject instructions describing objects to be 91 // Emit all kMaterializeObject instructions describing objects to be
92 // materialized on the deoptimization as a prefix to the deoptimization info. 92 // materialized on the deoptimization as a prefix to the deoptimization info.
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1836 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1836 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1837 __ PopDouble(reg); 1837 __ PopDouble(reg);
1838 } 1838 }
1839 1839
1840 1840
1841 #undef __ 1841 #undef __
1842 1842
1843 } // namespace dart 1843 } // namespace dart
1844 1844
1845 #endif // defined TARGET_ARCH_ARM64 1845 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698