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

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

Issue 855533002: Isolate/Thread split: Isolate -> Zone for LocationSummary. (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
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.h » ('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) 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_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DECLARE_FLAG(bool, use_osr); 44 DECLARE_FLAG(bool, use_osr);
45 DECLARE_FLAG(int, stacktrace_every); 45 DECLARE_FLAG(int, stacktrace_every);
46 DECLARE_FLAG(charp, stacktrace_filter); 46 DECLARE_FLAG(charp, stacktrace_filter);
47 DECLARE_FLAG(int, deoptimize_every); 47 DECLARE_FLAG(int, deoptimize_every);
48 DECLARE_FLAG(charp, deoptimize_filter); 48 DECLARE_FLAG(charp, deoptimize_filter);
49 DECLARE_FLAG(bool, warn_on_javascript_compatibility); 49 DECLARE_FLAG(bool, warn_on_javascript_compatibility);
50 DEFINE_FLAG(bool, enable_simd_inline, true, 50 DEFINE_FLAG(bool, enable_simd_inline, true,
51 "Enable inlining of SIMD related method calls."); 51 "Enable inlining of SIMD related method calls.");
52 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); 52 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment.");
53 53
54 // Quick access to the locally defined isolate() method.
55 #define I (isolate())
56
54 // Assign locations to incoming arguments, i.e., values pushed above spill slots 57 // Assign locations to incoming arguments, i.e., values pushed above spill slots
55 // with PushArgument. Recursively allocates from outermost to innermost 58 // with PushArgument. Recursively allocates from outermost to innermost
56 // environment. 59 // environment.
57 void CompilerDeoptInfo::AllocateIncomingParametersRecursive( 60 void CompilerDeoptInfo::AllocateIncomingParametersRecursive(
58 Environment* env, 61 Environment* env,
59 intptr_t* stack_height) { 62 intptr_t* stack_height) {
60 if (env == NULL) return; 63 if (env == NULL) return;
61 AllocateIncomingParametersRecursive(env->outer(), stack_height); 64 AllocateIncomingParametersRecursive(env->outer(), stack_height);
62 for (Environment::ShallowIterator it(env); !it.Done(); it.Advance()) { 65 for (Environment::ShallowIterator it(env); !it.Done(); it.Advance()) {
63 if (it.CurrentLocation().IsInvalid() && 66 if (it.CurrentLocation().IsInvalid() &&
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 } 1121 }
1119 } 1122 }
1120 UNREACHABLE(); 1123 UNREACHABLE();
1121 return kNoRegister; 1124 return kNoRegister;
1122 } 1125 }
1123 1126
1124 1127
1125 void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) { 1128 void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) {
1126 ASSERT(!is_optimizing()); 1129 ASSERT(!is_optimizing());
1127 1130
1128 instr->InitializeLocationSummary(isolate(), false); // Not optimizing. 1131 instr->InitializeLocationSummary(I->current_zone(),
1132 false); // Not optimizing.
1129 LocationSummary* locs = instr->locs(); 1133 LocationSummary* locs = instr->locs();
1130 1134
1131 bool blocked_registers[kNumberOfCpuRegisters]; 1135 bool blocked_registers[kNumberOfCpuRegisters];
1132 1136
1133 // Mark all available registers free. 1137 // Mark all available registers free.
1134 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) { 1138 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
1135 blocked_registers[i] = false; 1139 blocked_registers[i] = false;
1136 } 1140 }
1137 1141
1138 // Mark all fixed input, temp and output registers as used. 1142 // Mark all fixed input, temp and output registers as used.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 case kUnboxedMint: 1568 case kUnboxedMint:
1565 return mint_class(); 1569 return mint_class();
1566 default: 1570 default:
1567 UNREACHABLE(); 1571 UNREACHABLE();
1568 return Class::ZoneHandle(); 1572 return Class::ZoneHandle();
1569 } 1573 }
1570 } 1574 }
1571 1575
1572 1576
1573 } // namespace dart 1577 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698